diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-09-26 17:53:28 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-09-26 17:53:28 +0000 |
commit | 0db91251574fd221641a5d89564d244e5406e44f (patch) | |
tree | 6750fa57eee9c074e5ebba8bed57ef493e961de7 | |
parent | ef68210f934b8b7d91fe583bcc4f2d147d1abe50 (diff) | |
download | mtk-20170518-0db91251574fd221641a5d89564d244e5406e44f.zip mtk-20170518-0db91251574fd221641a5d89564d244e5406e44f.tar.gz mtk-20170518-0db91251574fd221641a5d89564d244e5406e44f.tar.bz2 |
build: unify powerpc target cflags
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38213
-rw-r--r-- | include/target.mk | 6 | ||||
-rw-r--r-- | target/linux/mpc52xx/Makefile | 2 | ||||
-rw-r--r-- | target/linux/mpc83xx/Makefile | 2 | ||||
-rw-r--r-- | target/linux/mpc85xx/Makefile | 2 | ||||
-rw-r--r-- | target/linux/ppc40x/Makefile | 2 | ||||
-rw-r--r-- | target/linux/ppc44x/Makefile | 2 |
6 files changed, 11 insertions, 5 deletions
diff --git a/include/target.mk b/include/target.mk index c27e9d3..c3b4c52 100644 --- a/include/target.mk +++ b/include/target.mk @@ -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 diff --git a/target/linux/mpc52xx/Makefile b/target/linux/mpc52xx/Makefile index 7b07058..a965773 100644 --- a/target/linux/mpc52xx/Makefile +++ b/target/linux/mpc52xx/Makefile @@ -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 diff --git a/target/linux/mpc83xx/Makefile b/target/linux/mpc83xx/Makefile index 1bb0d34..4c25049 100644 --- a/target/linux/mpc83xx/Makefile +++ b/target/linux/mpc83xx/Makefile @@ -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> diff --git a/target/linux/mpc85xx/Makefile b/target/linux/mpc85xx/Makefile index c8ae94d..278cdee 100644 --- a/target/linux/mpc85xx/Makefile +++ b/target/linux/mpc85xx/Makefile @@ -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 diff --git a/target/linux/ppc40x/Makefile b/target/linux/ppc40x/Makefile index 29982df..947c8eb 100644 --- a/target/linux/ppc40x/Makefile +++ b/target/linux/ppc40x/Makefile @@ -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 diff --git a/target/linux/ppc44x/Makefile b/target/linux/ppc44x/Makefile index 661eebc..6c48c01 100644 --- a/target/linux/ppc44x/Makefile +++ b/target/linux/ppc44x/Makefile @@ -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 |