]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
barebox.bbclass: set KBUILD_OUTPUT
authorEnrico Jörns <ejo@pengutronix.de>
Tue, 28 Oct 2025 07:36:01 +0000 (08:36 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 30 Oct 2025 11:06:22 +0000 (11:06 +0000)
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.

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>
meta/classes-recipe/barebox.bbclass

index ece8fb64856aad41490c0f3d7e0c0ea08bcbaf45..73615999aa60149803e4409fc6b6b8bf5e91bf70 100644 (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