summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-03-03 12:47:31 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-03-03 12:47:31 +0000
commitf80c6bae0924999e130f5651a1fd58bd2351f12c (patch)
treec19c3ffcf37bf44ecc5c79e4bdda676ebbbc1d85
parent6dac9240dc509b69363d2a050688764fd78b02aa (diff)
ramips: set -march=24kec for rt305x and rt3883 to enable use of DSP extension
All known rt305x and rt3883 implementations support at least the 24kec instruction set which includes the DSP extension. For rt288x, the previous value mips32r2 is kept. The cpu target is now set per sub-archtecture, according to cpu-feature-overrides.h of each SoC family. [juhosg: define ARCH_PACKAGES variable for rt305x/rt3883 in order to differentiate the packages compiled with the 24Kec option.] Signed-off-by: Daniel Golle <dgolle@allnet.de> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35853 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/ramips/Makefile2
-rw-r--r--target/linux/ramips/rt288x/target.mk1
-rw-r--r--target/linux/ramips/rt305x/target.mk2
-rw-r--r--target/linux/ramips/rt3883/target.mk2
4 files changed, 6 insertions, 1 deletions
diff --git a/target/linux/ramips/Makefile b/target/linux/ramips/Makefile
index 039a57c08..b02c8016e 100644
--- a/target/linux/ramips/Makefile
+++ b/target/linux/ramips/Makefile
@@ -10,7 +10,7 @@ ARCH:=mipsel
BOARD:=ramips
BOARDNAME:=Ralink RT288x/RT3xxx
SUBTARGETS:=rt288x rt305x rt3883
-CFLAGS:=-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -mno-branch-likely
+CFLAGS:=-Os -pipe -fno-caller-saves -mno-branch-likely
FEATURES:=squashfs
LINUX_VERSION:=3.7.9
diff --git a/target/linux/ramips/rt288x/target.mk b/target/linux/ramips/rt288x/target.mk
index cb3b7193d..f826eab88 100644
--- a/target/linux/ramips/rt288x/target.mk
+++ b/target/linux/ramips/rt288x/target.mk
@@ -4,6 +4,7 @@
SUBTARGET:=rt288x
BOARDNAME:=RT288x based boards
+CFLAGS+= -mips32r2 -mtune=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 2c78756cf..e35506022 100644
--- a/target/linux/ramips/rt305x/target.mk
+++ b/target/linux/ramips/rt305x/target.mk
@@ -4,6 +4,8 @@
SUBTARGET:=rt305x
BOARDNAME:=RT305x based boards
+ARCH_PACKAGES:=ramips_24kec
+CFLAGS+= -march=24kec
define Target/Description
Build firmware images for Ralink RT305x based boards.
diff --git a/target/linux/ramips/rt3883/target.mk b/target/linux/ramips/rt3883/target.mk
index 590bb9840..85bfc5aa4 100644
--- a/target/linux/ramips/rt3883/target.mk
+++ b/target/linux/ramips/rt3883/target.mk
@@ -4,6 +4,8 @@
SUBTARGET:=rt3883
BOARDNAME:=RT3662/RT3883 based boards
+ARCH_PACKAGES:=ramips_24kec
+CFLAGS+= -march=24kec
define Target/Description
Build firmware images for Ralink RT3662/RT3883 based boards.