X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/defb257e7e48cce48fffc86fe3ffa4c1354eae48..28398504ad0bb396806c5499248e3a947851333e:/package/madwifi/Makefile diff --git a/package/madwifi/Makefile b/package/madwifi/Makefile index 962795ab2..dc06effa5 100644 --- a/package/madwifi/Makefile +++ b/package/madwifi/Makefile @@ -77,8 +77,8 @@ endif 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/ @@ -105,19 +105,22 @@ MADWIFI_MAKEOPTS= -C $(PKG_BUILD_DIR) \ 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 @@ -135,7 +138,7 @@ define KernelPackage/madwifi/install 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