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

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 Menonx0nishan@ti.com
--- 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

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 Menonx0nishan@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
participants (1)
-
Menon, Nishanth