1. Alessio Caiazza
  2. openwrt

Commits

hauke  committed 02c95b0

brcm47xx: activate some compiler optimizations for 74K CPUs

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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@410503c298f89-4303-0410-b956-a3cf2f4a3e73

  • Participants
  • Parent commits a18e402
  • Branches master

Comments (0)

Files changed (5)

File include/target.mk

View file
  • Ignore whitespace
     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

File target/linux/brcm47xx/Makefile

View file
  • Ignore whitespace
 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>
 

File target/linux/brcm47xx/generic/target.mk

View file
  • Ignore whitespace
 BOARDNAME:=Generic
+FEATURES+=pcmcia
 
 define Target/Description
 	Build generic firmware for all Broadcom BCM47xx and BCM53xx MIPS

File target/linux/brcm47xx/legacy/target.mk

View file
  • Ignore whitespace
 FEATURES += low_mem
 BOARDNAME:=Legacy (802.11g)
+FEATURES+=pcmcia
 
 define Target/Description
 	Build generic firmware for legacy 802.11g Broadcom BCM47xx

File target/linux/brcm47xx/mips74k/target.mk

View file
  • Ignore whitespace
 BOARDNAME:=MIPS 74K
+CPU_TYPE:=74kc
+CPU_SUBTYPE:=dsp2
+FEATURES+=mips16
 
 define Target/Description
 	Build firmware for Broadcom BCM47xx and BCM53xx devices with