[U-Boot-Users] [PATCH]Fix cc-option macro in config.mk

Paolo Broggini pbroggini at softool.ch
Wed Oct 12 15:21:30 CEST 2005


The following patch fix the compilation problem discussed in thread
"Problem building U-Boot for ARM target"

Best regards
-P.Broggini



Signed-off-by: Paolo Broggini <pbroggini at softool.ch>


CHANGELOG:
   Fix cc-option macro in config.mk, $(CFLAGS) dropped.
   Patch by Paolo Broggini, 12 Oct 2005


diff --git a/config.mk b/config.mk
--- a/config.mk
+++ b/config.mk
@@ -90,7 +90,7 @@ HOSTSTRIP	= strip
  # Option checker (courtesy linux kernel) to ensure
  # only supported compiler options are used
  #
-cc-option = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
+cc-option = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \
  		> /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)

  #








More information about the U-Boot mailing list