build: unify powerpc target cflags
authorFelix Fietkau <nbd@openwrt.org>
Thu, 26 Sep 2013 17:53:28 +0000 (17:53 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 26 Sep 2013 17:53:28 +0000 (17:53 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38213

include/target.mk
target/linux/mpc52xx/Makefile
target/linux/mpc83xx/Makefile
target/linux/mpc85xx/Makefile
target/linux/ppc40x/Makefile
target/linux/ppc44x/Makefile

index c27e9d3354ec016b3d5c2d7ce1628da4a49b2555..c3b4c5245933793a9ce6ec31608cf3a9082441a7 100644 (file)
@@ -229,6 +229,12 @@ ifeq ($(DUMP),1)
     CPU_CFLAGS_vfp = -mfpu=vfp -mfloat-abi=softfp
     CPU_CFLAGS_vfp3 = -mfpu=vfp3-d16 -mfloat-abi=softfp
   endif
+  ifeq ($(ARCH),powerpc)
+    CPU_CFLAGS_603e:=-mcpu=603e
+    CPU_CFLAGS_8540:=-mcpu=8540
+    CPU_CFLAGS_405:=-mcpu=405
+    CPU_CFLAGS_440:=-mcpu=440
+  endif
   ifeq ($(ARCH),sparc)
     CPU_TYPE = sparc
     CPU_CFLAGS_ultrasparc = -mcpu=ultrasparc
index 7b07058944712e01ed33560493363f3a2845a153..a9657730783482416c843e304965d5ec2df7f36f 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 ARCH:=powerpc
 BOARD:=mpc52xx
 BOARDNAME:=Freescale MPC52xx
-CFLAGS:=-Os -pipe -mcpu=603e
+CPU_TYPE:=603e
 FEATURES:=targz ext4
 
 LINUX_VERSION:=3.8.13
index 1bb0d34bbcba455c15a4c7692ddf3e9172cefbb5..4c25049ee5860dfdd5ce65fa800208a6913644fc 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 ARCH:=powerpc
 BOARD:=mpc83xx
 BOARDNAME:=Freescale MPC83xx
-CFLAGS:=-Os -pipe -mcpu=603e
+CPU_TYPE:=603e
 FEATURES:=squashfs targz
 MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
 
index c8ae94daf0f4cb79a9808e4195f36ad858c07af1..278cdee34578660f867b2407fcc3ca06fb01895e 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 ARCH:=powerpc
 BOARD:=mpc85xx
 BOARDNAME:=Freescale MPC85xx
-CFLAGS:=-Os -pipe -mcpu=8540
+CPU_TYPE:=8540
 FEATURES:=spe_fpu squashfs
 MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
 SUBTARGETS=generic p1020
index 29982df1907bc05f2a0d271229bb8c78f582a673..947c8ebb22e2a93dfe34ac985c31a420cfe10057 100644 (file)
@@ -10,7 +10,7 @@ ARCH:=powerpc
 BOARD:=ppc40x
 BOARDNAME:=AMCC/IBM PPC40x
 FEATURES:=squashfs
-CFLAGS:=-Os -pipe -mcpu=405
+CPU_TYPE:=405
 MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
 
 LINUX_VERSION:=3.10.12
index 661eebc4cb726d80f4e881371ec4e5ed060b708a..6c48c019449f2532a94b08eb009a87f30f17dbea 100644 (file)
@@ -10,7 +10,7 @@ ARCH:=powerpc
 BOARD:=ppc44x
 BOARDNAME:=AMCC/IBM PPC44x
 FEATURES:=squashfs broken
-CFLAGS:=-Os -pipe -mcpu=440
+CPU_TYPE:=440
 MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
 
 LINUX_VERSION:=3.10.12