[U-Boot-Users] [Patch 04/17 Try 2] U-Boot-V2:ARM: Remove unwanted flags from Makefile

Menon, Nishanth x0nishan at ti.com
Wed Jun 4 07:03:37 CEST 2008


Sascha,
Makefiles were updated in last couple of days.
Retrying with further fixes for sparse to work:
CFLAGS: "-D __ARM__" should have been "-D__ARM__".
Further -nostdinc in Makefile is redfined by
commit ID:847934bc960ba1588c87e283118318dfdd78d4c0
This is unnecessary as NOSTDINC_FLAGS in root Makefile defines it

Signed-off-by: Nishanth Menon<x0nishan at ti.com>

---
 Makefile          |    3 +--
 arch/arm/Makefile |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

Index: u-boot.v2/arch/arm/Makefile
===================================================================
--- u-boot.v2.orig/arch/arm/Makefile    2008-06-03 20:19:34.000000000 -0500
+++ u-boot.v2/arch/arm/Makefile 2008-06-03 20:19:50.000000000 -0500
@@ -1,5 +1,5 @@

-CPPFLAGS += -D __ARM__ -fno-strict-aliasing
+CPPFLAGS += -D__ARM__ -fno-strict-aliasing


 machine-$(CONFIG_ARCH_IMX)        := imx
Index: u-boot.v2/Makefile
===================================================================
--- u-boot.v2.orig/Makefile     2008-06-03 20:19:27.000000000 -0500
+++ u-boot.v2/Makefile  2008-06-03 20:20:17.000000000 -0500
@@ -305,8 +305,7 @@
                    $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \
                   -include include/linux/autoconf.h

-CPPFLAGS        := -D__KERNEL__ -D__U_BOOT__ $(LINUXINCLUDE) -fno-builtin -ffreestanding \
-                  -nostdinc
+CPPFLAGS        := -D__KERNEL__ -D__U_BOOT__ $(LINUXINCLUDE) -fno-builtin -ffreestanding

 CFLAGS          := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
                    -fno-strict-aliasing -fno-common -Os -pipe




More information about the U-Boot mailing list