[PATCH v2 1/2] Makefile: Create a file to indicate the config
Simon Glass
sjg at chromium.org
Sun Jan 30 16:52:24 CET 2022
At present it is not actually possible to discover the defconfig file that
was used to build U-Boot, so far as I can tell. Write this out to a file
in the build directory, so this is visible.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
scripts/kconfig/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 12e525ee31f..83a40c7eb3b 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -92,8 +92,10 @@ else
endif
endif
+# Write out the defconfig name to a file so we know which board was configured
%_defconfig: $(obj)/conf
$(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)
+ $(Q)echo $(subst _defconfig,,$@) > .defconfig_name
# Added for U-Boot (backward compatibility)
%_config: %_defconfig
--
2.35.0.rc2.247.g8bbb082509-goog
More information about the U-Boot
mailing list