summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-06-03 12:39:45 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2008-06-03 12:39:45 +0200
commit847934bc960ba1588c87e283118318dfdd78d4c0 (patch)
treeb920bc3db045395baf792a27e31af3f874e4e37f
parentb8725ffe1db57499eff887a8f10b726dc8946a03 (diff)
downloadbarebox-847934bc960ba1588c87e283118318dfdd78d4c0.tar.gz
barebox-847934bc960ba1588c87e283118318dfdd78d4c0.tar.xz
[kbuild] move -nostdinc from architecture Makefiles to toplevel
Makefile
-rw-r--r--Makefile3
-rw-r--r--arch/arm/Makefile3
-rw-r--r--arch/blackfin/Makefile3
-rw-r--r--arch/m68k/Makefile3
-rw-r--r--arch/ppc/Makefile2
-rw-r--r--arch/sandbox/Makefile3
6 files changed, 7 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index ad45bdf937..c516e882f8 100644
--- a/Makefile
+++ b/Makefile
@@ -305,7 +305,8 @@ LINUXINCLUDE := -Iinclude \
$(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \
-include include/linux/autoconf.h
-CPPFLAGS := -D__KERNEL__ -D__U_BOOT__ $(LINUXINCLUDE) -fno-builtin -ffreestanding
+CPPFLAGS := -D__KERNEL__ -D__U_BOOT__ $(LINUXINCLUDE) -fno-builtin -ffreestanding \
+ -nostdinc
CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common -Os
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index efc749912b..1459bbf179 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -1,6 +1,5 @@
-CPPFLAGS += -nostdinc -Wall \
- -pipe -D __ARM__ -fno-strict-aliasing
+CPPFLAGS += -Wall -pipe -D __ARM__ -fno-strict-aliasing
machine-$(CONFIG_ARCH_IMX) := imx
diff --git a/arch/blackfin/Makefile b/arch/blackfin/Makefile
index bf0716329c..39ed013a73 100644
--- a/arch/blackfin/Makefile
+++ b/arch/blackfin/Makefile
@@ -1,6 +1,5 @@
-CPPFLAGS += -nostdinc -Wall \
- -pipe -fno-strict-aliasing
+CPPFLAGS += -Wall -pipe -fno-strict-aliasing
board-$(CONFIG_MACH_IPE337) := ipe337
diff --git a/arch/m68k/Makefile b/arch/m68k/Makefile
index 8429fc02ce..9c36535c58 100644
--- a/arch/m68k/Makefile
+++ b/arch/m68k/Makefile
@@ -18,8 +18,7 @@
# along with U-Boot V2. If not, see <http://www.gnu.org/licenses/>.
#
-CPPFLAGS += -nostdinc -Wall \
- -isystem $(gccincdir) -pipe -D __M68K__ \
+CPPFLAGS += -Wall -isystem $(gccincdir) -pipe -D __M68K__ \
-fno-strict-aliasing
diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile
index 09553d8372..057f8be2ef 100644
--- a/arch/ppc/Makefile
+++ b/arch/ppc/Makefile
@@ -1,5 +1,5 @@
-CPPFLAGS += -nostdinc -Wall -ffixed-r14 \
+CPPFLAGS += -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 79d040ea8b..3ac9b1d95e 100644
--- a/arch/sandbox/Makefile
+++ b/arch/sandbox/Makefile
@@ -1,6 +1,5 @@
-CPPFLAGS += -nostdinc -Wall \
- -pipe -fno-strict-aliasing
+CPPFLAGS += -Wall -pipe -fno-strict-aliasing
machine-y := sandbox