From b8725ffe1db57499eff887a8f10b726dc8946a03 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 3 Jun 2008 12:37:52 +0200 Subject: [PATCH] [kbuild] move -ffreestanding from architecture Makefiles to toplevel Makefile --- Makefile | 2 +- arch/arm/Makefile | 2 +- arch/blackfin/Makefile | 2 +- arch/m68k/Makefile | 2 +- arch/ppc/Makefile | 2 +- arch/sandbox/Makefile | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 273309c70..ad45bdf93 100644 --- a/Makefile +++ b/Makefile @@ -305,7 +305,7 @@ LINUXINCLUDE := -Iinclude \ $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \ -include include/linux/autoconf.h -CPPFLAGS := -D__KERNEL__ -D__U_BOOT__ $(LINUXINCLUDE) -fno-builtin +CPPFLAGS := -D__KERNEL__ -D__U_BOOT__ $(LINUXINCLUDE) -fno-builtin -ffreestanding CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -fno-common -Os diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 6b25d02cc..efc749912 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -1,5 +1,5 @@ -CPPFLAGS += -ffreestanding -nostdinc -Wall \ +CPPFLAGS += -nostdinc -Wall \ -pipe -D __ARM__ -fno-strict-aliasing diff --git a/arch/blackfin/Makefile b/arch/blackfin/Makefile index 7f42a1d54..bf0716329 100644 --- a/arch/blackfin/Makefile +++ b/arch/blackfin/Makefile @@ -1,5 +1,5 @@ -CPPFLAGS += -ffreestanding -nostdinc -Wall \ +CPPFLAGS += -nostdinc -Wall \ -pipe -fno-strict-aliasing diff --git a/arch/m68k/Makefile b/arch/m68k/Makefile index 463bf7e17..8429fc02c 100644 --- a/arch/m68k/Makefile +++ b/arch/m68k/Makefile @@ -18,7 +18,7 @@ # along with U-Boot V2. If not, see . # -CPPFLAGS += -ffreestanding -nostdinc -Wall \ +CPPFLAGS += -nostdinc -Wall \ -isystem $(gccincdir) -pipe -D __M68K__ \ -fno-strict-aliasing diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile index 18df40944..09553d837 100644 --- a/arch/ppc/Makefile +++ b/arch/ppc/Makefile @@ -1,5 +1,5 @@ -CPPFLAGS += -ffreestanding -nostdinc -Wall -ffixed-r14 \ +CPPFLAGS += -nostdinc -Wall -ffixed-r14 \ -pipe -meabi -Wstrict-prototypes -D __PPC__ -D CONFIG_PPC \ -fno-strict-aliasing diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile index 5dfba59e8..79d040ea8 100644 --- a/arch/sandbox/Makefile +++ b/arch/sandbox/Makefile @@ -1,5 +1,5 @@ -CPPFLAGS += -ffreestanding -nostdinc -Wall \ +CPPFLAGS += -nostdinc -Wall \ -pipe -fno-strict-aliasing machine-y := sandbox