madwifi: add compilation for arm11
authorFelix Fietkau <nbd@openwrt.org>
Wed, 10 Oct 2012 11:22:12 +0000 (11:22 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 10 Oct 2012 11:22:12 +0000 (11:22 +0000)
Add compilation support for arm11 CPUs (ie cns3xxx)

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
SVN-Revision: 33678

package/madwifi/Makefile

index f915f56..e38d114 100644 (file)
@@ -225,6 +225,10 @@ define Build/Prepare
                $(PKG_BUILD_DIR)/hal/public/*.inc
        $(SED) 's,march=armv4,march=armv5te,' \
                $(PKG_BUILD_DIR)/hal/public/xscale*.inc
+       $(SED) 's,march=armv6j,march=armv6k,' \
+               $(PKG_BUILD_DIR)/hal/public/arm11*.inc
+       $(SED) 's,mtune=arm1136j-s,mtune=mpcore,' \
+               $(PKG_BUILD_DIR)/hal/public/arm11*.inc
 endef
 
 ifeq ($(findstring AHB,$(BUS)),AHB)