brcm47xx: activate some compiler optimizations for 74K CPUs
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 7 Jun 2014 17:36:02 +0000 (17:36 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 7 Jun 2014 17:36:02 +0000 (17:36 +0000)
With this patch the mips74k subtarget will be compiled with optimized
compiler options to generated smaller and faster code. This currently
breaks broadcom-wl, because the binary blob is only compiled with
mipsr1 support.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 41050

include/target.mk
target/linux/brcm47xx/Makefile
target/linux/brcm47xx/generic/target.mk
target/linux/brcm47xx/legacy/target.mk
target/linux/brcm47xx/mips74k/target.mk

index 72a6c34c4baf12db299eaae436eddcac225208f6..09ba911ff42caa7e51debcbd467d5a71a52dc80d 100644 (file)
@@ -214,6 +214,7 @@ ifeq ($(DUMP),1)
     CPU_CFLAGS_mips64 = -mips64 -mtune=mips64 -mabi=64
     CPU_CFLAGS_24kec = -mips32r2 -mtune=24kec
     CPU_CFLAGS_34kc = -mips32r2 -mtune=34kc
+    CPU_CFLAGS_74kc = -mips32r2 -mtune=74kc
     CPU_CFLAGS_dsp = -mdsp
     CPU_CFLAGS_dsp2 = -mdspr2
   endif
index a69851e548479d48fb0533d58cfb31895edc3258..1caf3467f2c033767be2fc631f99340ecd53bbcc 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 ARCH:=mipsel
 BOARD:=brcm47xx
 BOARDNAME:=Broadcom BCM47xx/53xx (MIPS)
-FEATURES:=squashfs usb pcmcia
+FEATURES:=squashfs usb
 SUBTARGETS:=generic mips74k legacy
 MAINTAINER:=Hauke Mehrtens <hauke@hauke-m.de>
 
index 0bcc5f031d2804fd1df5d2adf7d177c92328e7ba..71fde52bc3934c39bb86bdc48cfd0bded07be0c1 100644 (file)
@@ -1,4 +1,5 @@
 BOARDNAME:=Generic
+FEATURES+=pcmcia
 
 define Target/Description
        Build generic firmware for all Broadcom BCM47xx and BCM53xx MIPS
index 5cee32436f219cff45c0aedd034086be724add02..720ea12c636bb85e83b389890ba89694ab1fac1e 100644 (file)
@@ -1,5 +1,6 @@
 FEATURES += low_mem
 BOARDNAME:=Legacy (802.11g)
+FEATURES+=pcmcia
 
 define Target/Description
        Build generic firmware for legacy 802.11g Broadcom BCM47xx
index ab7af28b674baabc3c65b8ce5017cf722b5176d7..ccefa21e0567ffdde477a90ce05a208218737782 100644 (file)
@@ -1,4 +1,7 @@
 BOARDNAME:=MIPS 74K
+CPU_TYPE:=74kc
+CPU_SUBTYPE:=dsp2
+FEATURES+=mips16
 
 define Target/Description
        Build firmware for Broadcom BCM47xx and BCM53xx devices with