define KernelPackage/madwifi
SUBMENU:=Wireless Drivers
- DEFAULT:=y if LINUX_2_6_BRCM || LINUX_2_6_ARUBA || LINUX_2_4_AR531X || LINUX_2_6_XSCALE, m if ALL
TITLE:=Driver for Atheros wireless chipsets
+ DEPENDS:=+wireless-tools
DESCRIPTION:=\
This package contains a driver for Atheros 802.11a/b/g chipsets.
URL:=http://madwifi.org/
ifeq ($(findstring AHB,$(BUS)),AHB)
define Build/Compile/ahb
- $(MAKE) $(MADWIFI_MAKEOPTS) BUS="AHB" all
+ $(MAKE) $(MADWIFI_MAKEOPTS) BUS="AHB" modules
endef
endif
ifeq ($(findstring PCI,$(BUS)),PCI)
define Build/Compile/pci
- $(MAKE) $(MADWIFI_MAKEOPTS) BUS="PCI" all
+ $(MAKE) $(MADWIFI_MAKEOPTS) BUS="PCI" modules
endef
endif
define Build/Compile
$(call Build/Compile/ahb)
$(call Build/Compile/pci)
+ $(MAKE) $(MADWIFI_MAKEOPTS) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ tools
endef
define Build/InstallDev
mkdir -p $(1)/etc/init.d
mkdir -p $(1)/lib/modules/$(LINUX_VERSION)
mkdir -p $(1)/usr/sbin
- install -m0755 ./files/madwifi.init $(1)/etc/init.d/madwifi
+ $(INSTALL_BIN) ./files/madwifi.init $(1)/etc/init.d/madwifi
$(CP) $(PKG_BUILD_DIR)/tools/{madwifi_multi,80211debug,80211stats,athchans,athctrl,athdebug,athkey,athstats,wlanconfig} $(1)/usr/sbin/
endef