[RFC PATCH 2/2] kconfig: U-Boot additions
Simon Glass
sjg at chromium.org
Sat Mar 11 20:35:22 CET 2023
Bring in some U-Boot additions
This seems to build OK, but 'make menuconfig' does not build the
scripts/kconfig/mconf utility.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
scripts/kconfig/Makefile | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index af1c96198f49..6249afec12af 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -3,6 +3,12 @@
# Kernel configuration targets
# These targets are used from top-level makefile
+# Added for U-Boot
+# Linux has defconfig files in arch/$(SRCARCH)/configs/,
+# on the other hand, U-Boot does in configs/.
+# Set SRCARCH to .. fake this Makefile.
+SRCARCH := ..
+
ifdef KBUILD_KCONFIG
Kconfig := $(KBUILD_KCONFIG)
else
@@ -93,6 +99,10 @@ endif
%_defconfig: $(obj)/conf
$(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)
+# Added for U-Boot (backward compatibility)
+%_config: %_defconfig
+ @:
+
configfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/configs/$@)
%.config: $(obj)/conf
--
2.40.0.rc1.284.g88254d51c5-goog
More information about the U-Boot
mailing list