Skip to content

Conversation

@rodionov
Copy link

This enables building LKL outside of source tree.

mkdir /tmp/lkl_out
OUTPUT=/tmp/lkl_out make -C tools/lkl -j32

@rodionov rodionov requested review from tavip and thehajime March 30, 2025 04:43
@rodionov rodionov changed the title Fix OUTPUT environment variable for LKL build and add arch memmove implementation. Fix OUTPUT environment variable for LKL build. Mar 30, 2025
This enables building LKL outside of source tree.

```
mkdir /tmp/lkl_out
OUTPUT=/tmp/lkl_out make -C tools/lkl -j32
```

Signed-off-by: Eugene Rodionov <[email protected]>
@thehajime
Copy link
Member

thanks @rodionov for the patch.

I was wondering if we can use O= variable to the command line instead of OUTPUT=, which is the standard way of kbuild to specify the output directory, and I thought LKL also follows this way.

wish to ask @tavip for the initial design.

Copy link
Member

@tavip tavip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like OUTPUT was introduced a long time ago in 9bf4b14. I am OK leaving as it is for this fix, we could rename it to O in a subsequent PR.

@thehajime
Copy link
Member

It looks like OUTPUT was introduced a long time ago in 9bf4b14.

Oooh, yes, that was me...

without this patch, make -C tools/lkl O=somewhere (not OUTPUT=) failed and with this patch the issue fixes.
I think we can merge this.

@thehajime thehajime merged commit 11f5b7e into lkl:master Mar 31, 2025
13 of 14 checks passed
@thehajime
Copy link
Member

thanks @rodionov @tavip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LKL build doesn't work with OUTPUT variable other than the source tree

3 participants