[PATCH 2/2] kbuild: override host system KCONFIG_DEFCONFIG_LIST
Ahmad Fatoum
a.fatoum at pengutronix.de
Wed Mar 12 23:37:27 PDT 2025
KCONFIG_DEFCONFIG_LIST contains some default locations where a Kernel
config can be found (e.g. /boot/config-$(uname -r)).
Currently, if a config is found in these default locations, it's used as
initial config for barebox as well, which doesn't work well, because
barebox architecture symbols defer quite a bit from the Linux ones.
Let's therefore set the make variable to an empty string to avoid this
issue.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 760fd7381ece..5433927ed197 100644
--- a/Makefile
+++ b/Makefile
@@ -602,10 +602,10 @@ include $(srctree)/arch/$(SRCARCH)/Makefile
export KBUILD_DEFCONFIG CC_VERSION_TEXT
config: outputmakefile scripts_basic FORCE
- $(Q)$(MAKE) $(build)=scripts/kconfig $@
+ $(Q)$(MAKE) $(build)=scripts/kconfig KCONFIG_DEFCONFIG_LIST= $@
%config: outputmakefile scripts_basic FORCE
- $(Q)$(MAKE) $(build)=scripts/kconfig $@
+ $(Q)$(MAKE) $(build)=scripts/kconfig KCONFIG_DEFCONFIG_LIST= $@
else #!config-build
# ===========================================================================
--
2.39.5
More information about the barebox
mailing list