aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/madwifi/Makefile')
-rw-r--r--package/madwifi/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/package/madwifi/Makefile b/package/madwifi/Makefile
index 8bd6bc1a5c..7657f8d2ee 100644
--- a/package/madwifi/Makefile
+++ b/package/madwifi/Makefile
@@ -43,6 +43,7 @@ endif
BUS:=PCI
ifneq ($(CONFIG_LINUX_2_6_AR531X),)
BUS:=AHB
+ HAL_TARGET:=ap51
endif
ifneq ($(CONFIG_LINUX_2_6_ARUBA),)
BUS:=PCI AHB # no suitable HAL for AHB yet.
@@ -105,16 +106,20 @@ MADWIFI_MAKEOPTS= -C $(PKG_BUILD_DIR) \
ifeq ($(findstring AHB,$(BUS)),AHB)
define Build/Compile/ahb
- $(MAKE) $(MADWIFI_MAKEOPTS) BUS="AHB" modules
+ $(MAKE) $(MADWIFI_MAKEOPTS) BUS="AHB" LDOPTS="--no-warn-mismatch" modules
endef
endif
ifeq ($(findstring PCI,$(BUS)),PCI)
define Build/Compile/pci
- $(MAKE) $(MADWIFI_MAKEOPTS) BUS="PCI" modules
+ $(MAKE) $(MADWIFI_MAKEOPTS) BUS="PCI" LDOPTS="--no-warn-mismatch" modules
endef
endif
+define Build/Configure
+ $(SED) 's,-E[LB] ,,g' $(PKG_BUILD_DIR)/hal/public/*.inc
+endef
+
define Build/Compile
$(call Build/Compile/ahb)
$(call Build/Compile/pci)