Skip to content
Snippets Groups Projects
Commit 2027e99e authored by Andrew Davis's avatar Andrew Davis Committed by Tom Rini
Browse files

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: default avatarAndrew Davis <afd@ti.com>
Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarNishanth Menon <nm@ti.com>
parent bf2df680
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment