diff options
author | Andrew Davis <afd@ti.com> | 2023-11-01 12:05:18 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-01-12 08:34:19 -0500 |
commit | 2027e99e61aab6fd8b06e2d752e0e538cff26eb6 (patch) | |
tree | 79a09ba118b2b4d3001bfd478206734d2727f4f7 /scripts | |
parent | bf2df680286956b3187b1820ae54c5a0fb594857 (diff) | |
download | u-boot-2027e99e61aab6fd8b06e2d752e0e538cff26eb6.tar.gz u-boot-2027e99e61aab6fd8b06e2d752e0e538cff26eb6.tar.bz2 u-boot-2027e99e61aab6fd8b06e2d752e0e538cff26eb6.zip |
Makefile: Run defconfig files through the C preprocessor
This allows us to use some of the normal preprocessor directives inside
defconfig files. Such as #define and #include.
Signed-off-by: Andrew Davis <afd@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 2d97aab8d2..5ce5845e82 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -93,7 +93,8 @@ endif endif %_defconfig: $(obj)/conf - $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig) + $(Q)$(CPP) -nostdinc -I $(srctree) -undef -x assembler-with-cpp $(srctree)/arch/$(SRCARCH)/configs/$@ -o generated_defconfig + $(Q)$< $(silent) --defconfig=generated_defconfig $(Kconfig) # Added for U-Boot (backward compatibility) %_config: %_defconfig |