Ignore:
Timestamp:
2008-11-09T23:42:36+01:00 (8 years ago)
Author:
florian
Message:

Build b43, b43legacy and ath9k for kernels >= 2.6.27 from mac80211. Include b43legacy by default in the Generic bcm47xx profile (#4179)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/mac80211/Makefile

    r13146 r13164  
    1919  PKG_VERSION:=2008-08-06 
    2020  PKG_SOURCE_URL:=http://www.orbit-lab.org/kernel/compat-wireless-2.6/2008/08 
    21   PATCH_DIR:=./patches-old 
     21  PATCH_DIR:=$(if $(CONFIG_TARGET_brcm47xx),./patches-brcm,./patches-old) 
    2222endif 
    2323 
     
    3131  SUBMENU:=Wireless Drivers 
    3232  TITLE:=Linux 802.11 Wireless Networking Stack 
     33  URL:=http://linuxwireless.org/ 
    3334  DEPENDS:=@LINUX_2_6 +kmod-crypto-arc4 +kmod-crypto-aes +wireless-tools @!TARGET_avr32 
    3435  FILES:= \ 
     
    139140define KernelPackage/rt2800-pci 
    140141$(call KernelPackage/rt2x00/Default) 
    141   DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci @LINUX_2_6_27 
     142  DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci @LINUX_2_6_27||@LINUX_2_6_28 
    142143  TITLE+= (RT2860 PCI) 
    143144  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2800pci.$(LINUX_KMOD_SUFFIX) 
     
    157158  SUBMENU:=Wireless Drivers 
    158159  TITLE:=Zydas ZD1211 support 
    159   DEPENDS:=@LINUX_2_6_24||@LINUX_2_6_25||@LINUX_2_6_26||@LINUX_2_6_27 @USB_SUPPORT +kmod-usb-core +kmod-mac80211 
     160  DEPENDS:= @USB_SUPPORT +kmod-usb-core +kmod-mac80211 
    160161  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/zd1211rw/zd1211rw.$(LINUX_KMOD_SUFFIX) 
    161162  AUTOLOAD:=$(call AutoLoad,60,zd1211rw) 
     
    165166  SUBMENU:=Wireless Drivers 
    166167  TITLE:=Atheros 5xxx wireless cards support 
     168  URL:=http://linuxwireless.org/en/users/Drivers/ath5k 
    167169  DEPENDS+= @PCI_SUPPORT +kmod-mac80211 
    168170  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath5k/ath5k.$(LINUX_KMOD_SUFFIX) 
    169171  AUTOLOAD:=$(call AutoLoad,27,ath5k) 
     172endef 
     173 
     174define KernelPackage/ath5k/description 
     175This module adds support for wireless adapters based on 
     176Atheros 5xxx chipset. 
     177endef 
     178 
     179define KernelPackage/ath9k-new 
     180  SUBMENU:=Wireless Drivers 
     181  TITLE:=Atheros 802.11n wireless cards support 
     182  URL:=http://linuxwireless.org/en/users/Drivers/ath9k 
     183  DEPENDS+= @PCI_SUPPORT +kmod-mac80211 @LINUX_2_6_27||@LINUX_2_6_28 @!kmod-ath9k 
     184  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath9k/ath9k.$(LINUX_KMOD_SUFFIX) 
     185  AUTOLOAD:=$(call AutoLoad,27,ath9k) 
     186endef 
     187 
     188define KernelPackage/ath9k-new/description 
     189This module adds support for wireless adapters based on 
     190Atheros IEEE 802.11n AR5008 and AR9001 family of chipsets. 
    170191endef 
    171192 
     
    176197  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/mac80211_hwsim.$(LINUX_KMOD_SUFFIX) 
    177198  AUTOLOAD:=$(call AutoLoad,60,mac80211_hwsim) 
     199endef 
     200 
     201#Broadcom firmware 
     202PKG_B43_FWV4_NAME:=broadcom-wl 
     203PKG_B43_FWV4_VERSION:=4.150.10.5 
     204PKG_B43_FWV4_OBJECT:=driver/wl_apsta_mimo.o 
     205PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).tar.bz2 
     206PKG_B43_FWV4_SOURCE_URL:=http://mirror2.openwrt.org/sources/ 
     207PKG_B43_FWV4_MD5SUM:=0c6ba9687114c6b598e8019e262d9a60 
     208 
     209PKG_B43_FWV3_NAME:=wl_apsta 
     210PKG_B43_FWV3_VERSION:=3.130.20.0 
     211PKG_B43_FWV3_SOURCE:=$(PKG_B43_FWV3_NAME)-$(PKG_B43_FWV3_VERSION).o 
     212PKG_B43_FWV3_SOURCE_URL:=http://downloads.openwrt.org/sources/ 
     213PKG_B43_FWV3_MD5SUM:=e08665c5c5b66beb9c3b2dd54aa80cb3 
     214 
     215PKG_B43_FWCUTTER_NAME:=b43-fwcutter 
     216PKG_B43_FWCUTTER_VERSION:=011 
     217PKG_B43_FWCUTTER_SOURCE:=$(PKG_B43_FWCUTTER_NAME)-$(PKG_B43_FWCUTTER_VERSION).tar.bz2 
     218PKG_B43_FWCUTTER_SOURCE_URL:=http://bu3sch.de/b43/fwcutter/ 
     219PKG_B43_FWCUTTER_MD5SUM:=3db2f4de85a459451f5b391cf67a8d44 
     220 
     221define Download/b43-common 
     222  FILE:=$(PKG_B43_FWCUTTER_SOURCE) 
     223  URL:=$(PKG_B43_FWCUTTER_SOURCE_URL) 
     224  MD5SUM:=$(PKG_B43_FWCUTTER_MD5SUM) 
     225endef 
     226$(eval $(call Download,b43-common)) 
     227 
     228define Download/b43 
     229  FILE:=$(PKG_B43_FWV4_SOURCE) 
     230  URL:=$(PKG_B43_FWV4_SOURCE_URL) 
     231  MD5SUM:=$(PKG_B43_FWV4_MD5SUM) 
     232endef 
     233$(eval $(call Download,b43)) 
     234 
     235define Download/b43legacy 
     236  FILE:=$(PKG_B43_FWV3_SOURCE) 
     237  URL:=$(PKG_B43_FWV3_SOURCE_URL) 
     238  MD5SUM:=$(PKG_B43_FWV3_MD5SUM) 
     239endef 
     240$(eval $(call Download,b43legacy)) 
     241 
     242define KernelPackage/b43-common 
     243  SUBMENU:=Wireless Drivers 
     244  TITLE:=Generic stuff for Broadcom wireless devices 
     245  URL:=http://linuxwireless.org/en/users/Drivers/b43 
     246  DEPENDS:=@TARGET_brcm47xx +kmod-mac80211 
     247endef 
     248 
     249define KernelPackage/b43 
     250$(call KernelPackage/b43-common) 
     251  TITLE:=Broadcom 43xx wireless support 
     252  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/b43/b43.$(LINUX_KMOD_SUFFIX) 
     253  AUTOLOAD:=$(call AutoLoad,30,b43) 
     254endef 
     255 
     256define KernelPackage/b43/description 
     257Kernel module for Broadcom 43xx wireless support (mac80211 stack) new 
     258endef 
     259 
     260define KernelPackage/b43legacy 
     261$(call KernelPackage/b43-common) 
     262  TITLE:=Broadcom 43xx-legacy wireless support 
     263  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/b43legacy/b43legacy.$(LINUX_KMOD_SUFFIX) 
     264  AUTOLOAD:=$(call AutoLoad,30,b43legacy) 
     265endef 
     266 
     267define KernelPackage/b43legacy/description 
     268Kernel module for Broadcom 43xx-legacy wireless support (mac80211 stack) new 
    178269endef 
    179270 
     
    209300        $(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(ZD1211FW_NAME)-$(ZD1211FW_VERSION).tar.bz2 
    210301        $(if $(CONFIG_TARGET_brcm47xx),rm -rf $(PKG_BUILD_DIR)/include/linux/ssb) 
     302        rm $(PKG_BUILD_DIR)/include/net/ieee80211_crypt.h 
     303        rm $(PKG_BUILD_DIR)/include/net/ieee80211.h 
     304        rm $(PKG_BUILD_DIR)/include/net/ieee80211_radiotap.h 
     305        rm $(PKG_BUILD_DIR)/include/linux/eeprom_93cx6.h 
    211306endef 
    212307 
     
    250345        $(INSTALL_DIR) $(1)/lib/firmware/zd1211 
    251346        $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(ZD1211FW_NAME)/zd1211* $(1)/lib/firmware/zd1211 
     347endef 
     348 
     349define Build/b43-common 
     350        tar xjf "$(DL_DIR)/$(PKG_B43_FWCUTTER_SOURCE)" -C "$(PKG_BUILD_DIR)" 
     351        $(MAKE) -C "$(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_NAME)-$(PKG_B43_FWCUTTER_VERSION)" \ 
     352                CFLAGS="-I$(STAGING_DIR_HOST)/include -include endian.h" 
     353endef 
     354 
     355define KernelPackage/b43/install 
     356        $(call Build/b43-common) 
     357        tar xjf "$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C "$(PKG_BUILD_DIR)" 
     358        $(INSTALL_DIR) $(1)/lib/firmware/ 
     359 
     360        $(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_NAME)-$(PKG_B43_FWCUTTER_VERSION)/b43-fwcutter \ 
     361        -w $(1)/lib/firmware/ \ 
     362        $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/$(PKG_B43_FWV4_OBJECT) 
     363endef 
     364 
     365define KernelPackage/b43legacy/install 
     366        $(call Build/b43-common) 
     367        $(INSTALL_DIR) $(1)/lib/firmware/ 
     368 
     369        $(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_NAME)-$(PKG_B43_FWCUTTER_VERSION)/b43-fwcutter \ 
     370        -w $(1)/lib/firmware/ \ 
     371        $(DL_DIR)/$(PKG_B43_FWV3_SOURCE) 
    252372endef 
    253373 
     
    265385$(eval $(call KernelPackage,zd1211rw)) 
    266386$(eval $(call KernelPackage,mac80211-hwsim)) 
     387$(eval $(call KernelPackage,ath9k-new)) 
     388$(eval $(call KernelPackage,b43)) 
     389$(eval $(call KernelPackage,b43legacy)) 
Note: See TracChangeset for help on using the changeset viewer.