]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Makefile: don't use CFLAGS for environment text file
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 2 Aug 2024 13:50:23 +0000 (15:50 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 11 Aug 2024 05:54:58 +0000 (07:54 +0200)
We use KCPPFLAGS to let the user set flags when invoking the C precompiler.
These should also be used when generating the environment text file.

Reported-by: Dave Jones <dave.jones@canonical.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Makefile

index 2861b4d1402b55e8f628e230bdb8e6e2bbad5bbf..21aa068ca71935a864cc353e84d7650b311ac43f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1839,7 +1839,7 @@ 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 -undef \
+               $(CPP) -P $(cpp_flags) -x assembler-with-cpp -undef \
                        -D__ASSEMBLY__ \
                        -D__UBOOT_CONFIG__ \
                        -I . -I include -I $(srctree)/include \