fix madwifi upstream compile for mips (#3952)
authorFelix Fietkau <nbd@openwrt.org>
Tue, 2 Sep 2008 09:44:50 +0000 (09:44 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 2 Sep 2008 09:44:50 +0000 (09:44 +0000)
SVN-Revision: 12488

package/madwifi/Makefile

index adfd418b20b606fcbcfc74135acf204ef2ed51a0..68bec3014a8b08fc82b2387ffd40cb02d38eb2a4 100644 (file)
@@ -63,10 +63,10 @@ ifneq ($(CONFIG_CPU_MIPS32_R2),)
   endif
 else
   ifeq ($(ARCH),mips)
-    HAL_TARGET:=mips32-be-elf
+    HAL_TARGET:=$(if $(CONFIG_MADWIFI_UPSTREAM),mips-be-elf,mips32-be-elf)
   endif
   ifeq ($(ARCH),mipsel)
-    HAL_TARGET:=mips32-le-elf
+    HAL_TARGET:=$(if $(CONFIG_MADWIFI_UPSTREAM),mips-le-elf,mips32-le-elf)
   endif
 endif
 ifeq ($(ARCH),i386)