From: Heinrich Schuchardt Date: Fri, 2 Aug 2024 13:50:23 +0000 (+0200) Subject: Makefile: don't use CFLAGS for environment text file X-Git-Url: http://git.dujemihanovic.xyz/%22/img/sics.gif/%22/static/git-favicon.png?a=commitdiff_plain;h=2956a84ba70176333743773c9a2bf0353add65c9;p=u-boot.git Makefile: don't use CFLAGS for environment text file 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 Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- diff --git a/Makefile b/Makefile index 2861b4d140..21aa068ca7 100644 --- 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 \