barebox.bbclass: set KBUILD_OUTPUT

Sets KBUILD_OUTPUT to the build directory to ensure using the valid
path in e.g. menuconfig or devshell.

An externally set KBUILD_OUTPUT could otherwise confuse the build
process and create the .config from an invalid folder.

This is what the kernel recipes also do.

(From OE-Core rev: 7e72477b8f4c323e3ea0497877c1b6486b2547a5)

Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Enrico Jörns 2025-10-28 08:36:01 +01:00 committed by Richard Purdie
parent 2d7b511b20
commit 78bd8888af

View File

@ -16,6 +16,8 @@ DEPENDS += "bison-native flex-native lz4-native"
S = "${UNPACKDIR}/barebox-${PV}"
B = "${WORKDIR}/build"
KBUILD_OUTPUT = "${B}"
OE_TERMINAL_EXPORTS += "KBUILD_OUTPUT"
require conf/image-uefi.conf