Skip to contentSkip to conversation

barebox.bbclass: set KBUILD_OUTPUT

PATCH New Enrico Jörns 1 participant 1 message Oct 28, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/classes-recipe/barebox.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes-recipe/barebox.bbclass +2 -0
index ece8fb6485..73615999aa 100644
@@ -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
 
Signature · 1 line
2.47.3