aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-09-26 17:53:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-09-26 17:53:14 +0000
commitb2e35bbd7b6c12b82f7d22356b0369dc81116ec3 (patch)
tree335126c919cdb8e6fa1782cdf30ae1f66d961305 /target/linux/ramips
parent7c0ac121b2abc064149e64755938da0fef9001e0 (diff)
downloadmaster-187ad058-b2e35bbd7b6c12b82f7d22356b0369dc81116ec3.tar.gz
master-187ad058-b2e35bbd7b6c12b82f7d22356b0369dc81116ec3.tar.bz2
master-187ad058-b2e35bbd7b6c12b82f7d22356b0369dc81116ec3.zip
build: unify mips target cflags
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38210 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/Makefile1
-rw-r--r--target/linux/ramips/mt7620a/target.mk3
-rw-r--r--target/linux/ramips/rt288x/target.mk2
-rw-r--r--target/linux/ramips/rt305x/target.mk3
-rw-r--r--target/linux/ramips/rt3883/target.mk3
5 files changed, 7 insertions, 5 deletions
diff --git a/target/linux/ramips/Makefile b/target/linux/ramips/Makefile
index 512a78f414..9a13a2c9a1 100644
--- a/target/linux/ramips/Makefile
+++ b/target/linux/ramips/Makefile
@@ -10,7 +10,6 @@ ARCH:=mipsel
BOARD:=ramips
BOARDNAME:=Ralink RT288x/RT3xxx
SUBTARGETS:=rt305x rt3883 mt7620a rt288x
-CFLAGS:=-Os -pipe -mno-branch-likely
FEATURES:=squashfs gpio
LINUX_VERSION:=3.10.12
diff --git a/target/linux/ramips/mt7620a/target.mk b/target/linux/ramips/mt7620a/target.mk
index 4d4dd28ae9..3f4104d982 100644
--- a/target/linux/ramips/mt7620a/target.mk
+++ b/target/linux/ramips/mt7620a/target.mk
@@ -6,7 +6,8 @@ SUBTARGET:=mt7620a
BOARDNAME:=MT7620a based boards
ARCH_PACKAGES:=ramips_24kec
FEATURES+=usb
-CFLAGS+= -march=24kec -mdsp
+CPU_TYPE:=24kec
+CPU_SUBTYPE:=dsp
define Target/Description
Build firmware images for Ralink MT7620a based boards.
diff --git a/target/linux/ramips/rt288x/target.mk b/target/linux/ramips/rt288x/target.mk
index f826eab88e..2b11e4843e 100644
--- a/target/linux/ramips/rt288x/target.mk
+++ b/target/linux/ramips/rt288x/target.mk
@@ -4,7 +4,7 @@
SUBTARGET:=rt288x
BOARDNAME:=RT288x based boards
-CFLAGS+= -mips32r2 -mtune=mips32r2
+CPU_TYPE:=mips32r2
define Target/Description
Build firmware images for Ralink RT288x based boards.
diff --git a/target/linux/ramips/rt305x/target.mk b/target/linux/ramips/rt305x/target.mk
index 527b829cb9..a98f415452 100644
--- a/target/linux/ramips/rt305x/target.mk
+++ b/target/linux/ramips/rt305x/target.mk
@@ -6,7 +6,8 @@ SUBTARGET:=rt305x
BOARDNAME:=RT3x5x/RT5350 based boards
ARCH_PACKAGES:=ramips_24kec
FEATURES+=usb
-CFLAGS+= -march=24kec -mdsp
+CPU_TYPE:=24kec
+CPU_SUBTYPE:=dsp
define Target/Description
Build firmware images for Ralink RT3x5x/RT5350 based boards.
diff --git a/target/linux/ramips/rt3883/target.mk b/target/linux/ramips/rt3883/target.mk
index 27c9020b52..8ccd67e4c1 100644
--- a/target/linux/ramips/rt3883/target.mk
+++ b/target/linux/ramips/rt3883/target.mk
@@ -6,7 +6,8 @@ SUBTARGET:=rt3883
BOARDNAME:=RT3662/RT3883 based boards
ARCH_PACKAGES:=ramips_24kec
FEATURES+=usb pci
-CFLAGS+= -march=24kec -mdspr2
+CPU_TYPE:=24kec
+CPU_SUBTYPE:=dsp2
define Target/Description
Build firmware images for Ralink RT3662/RT3883 based boards.