summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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