]> git.ipfire.org Git - thirdparty/u-boot.git/blobdiff - Makefile
Makefile: pass -undef option to cmd_gen_envp
[thirdparty/u-boot.git] / Makefile
index 2643d1839b63bfffe45d601a028ae2eaa6ca2208..673290d46058f296260e6acadb9948a3493569d2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1821,7 +1821,8 @@ ENV_FILE := $(if $(ENV_SOURCE_FILE),$(ENV_FILE_CFG),$(wildcard $(ENV_FILE_BOARD)
 quiet_cmd_gen_envp = ENVP    $@
       cmd_gen_envp = \
        if [ -s "$(ENV_FILE)" ]; then \
-               $(CPP) -P $(CFLAGS) -x assembler-with-cpp -D__ASSEMBLY__ \
+               $(CPP) -P $(CFLAGS) -x assembler-with-cpp -undef \
+                       -D__ASSEMBLY__ \
                        -D__UBOOT_CONFIG__ \
                        -I . -I include -I $(srctree)/include \
                        -include linux/kconfig.h -include include/config.h \