summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--arch/arm/Makefile2
-rw-r--r--arch/blackfin/Makefile2
-rw-r--r--arch/m68k/Makefile2
-rw-r--r--arch/ppc/Makefile2
-rw-r--r--arch/sandbox/Makefile2
6 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 273309c705..ad45bdf937 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 6b25d02cc8..efc749912b 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 7f42a1d54c..bf0716329c 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 463bf7e174..8429fc02ce 100644
--- a/arch/m68k/Makefile
+++ b/arch/m68k/Makefile
@@ -18,7 +18,7 @@
# along with U-Boot V2. If not, see <http://www.gnu.org/licenses/>.
#
-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 18df409446..09553d8372 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 5dfba59e81..79d040ea8b 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