[U-Boot] [PATCH 4/8] Makefile: allow overriding '-ansi' in LDPPFLAGS

Max Filippov jcmvbkbc at gmail.com
Wed Aug 20 19:42:09 CEST 2014


xtensa linker script cannot be preprocessed with -ansi option specified,
so xtensa needs a way to override it.

Signed-off-by: Max Filippov <jcmvbkbc at gmail.com>
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 666d291..344492f 100644
--- a/Makefile
+++ b/Makefile
@@ -209,6 +209,7 @@ HOSTCXXFLAGS = -O2
 ifeq ($(HOSTOS),cygwin)
 HOSTCFLAGS	+= -ansi
 endif
+LDPPFLAGS	+= -ansi
 
 # Mac OS X / Darwin's C preprocessor is Apple specific.  It
 # generates numerous errors and warnings.  We want to bypass it
@@ -1121,7 +1122,7 @@ depend dep:
 
 # ---------------------------------------------------------------------------
 quiet_cmd_cpp_lds = LDS     $@
-cmd_cpp_lds = $(CPP) -Wp,-MD,$(depfile) $(cpp_flags) $(LDPPFLAGS) -ansi \
+cmd_cpp_lds = $(CPP) -Wp,-MD,$(depfile) $(cpp_flags) $(LDPPFLAGS) \
 		-D__ASSEMBLY__ -x assembler-with-cpp -P -o $@ $<
 
 u-boot.lds: $(LDSCRIPT) prepare FORCE
-- 
1.8.1.4



More information about the U-Boot mailing list