diff --git a/target/linux/ramips/Makefile b/target/linux/ramips/Makefile index 039a57c08da..b02c8016edd 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 cb3b7193d52..f826eab88e1 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 2c78756cf17..e355060228e 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 590bb98409b..85bfc5aa4e3 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.