CFLAGS: "-D __ARM__" should have been "-D__ARM__". This breaks sparse check.
Further common flags defines else where are being re-defined here. This patch 
removes them.

Signed-off-by: Nishanth Menon<[EMAIL PROTECTED]>

---
 arch/arm/Makefile |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Index: u-boot-v2.git/arch/arm/Makefile
===================================================================
--- u-boot-v2.git.orig/arch/arm/Makefile        2008-05-20 17:19:43.000000000 
-0500
+++ u-boot-v2.git/arch/arm/Makefile     2008-05-20 17:26:33.000000000 -0500
@@ -1,6 +1,6 @@
 
-CPPFLAGS += -fno-builtin -ffreestanding -nostdinc -Wall        \
-       -pipe -D __ARM__ -fno-strict-aliasing
+CPPFLAGS += -fno-builtin -ffreestanding\
+       -pipe -D__ARM__
 
 
 machine-$(CONFIG_ARCH_IMX)        := imx
@@ -20,7 +20,8 @@
 TEXT_BASE = $(CONFIG_TEXT_BASE)
 
 CPPFLAGS += -mabi=apcs-gnu -DTEXT_BASE=$(TEXT_BASE) -P
-CFLAGS := -fno-common -msoft-float -Os
+CFLAGS += -Os
+
 
 # Add cleanup flags
 CPPFLAGS += -fdata-sections -ffunction-sections

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to