Changeset 26130


Ignore:
Timestamp:
2011-03-13T19:38:50+01:00 (7 years ago)
Author:
nbd
Message:

ath9k: split package into kmod-ath9k and kmod-ath9k-common, add a new package for ath9k_htc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/mac80211/Makefile

    r26128 r26130  
    428428endef 
    429429 
    430 define KernelPackage/ath9k 
    431   $(call KernelPackage/mac80211/Default) 
    432   TITLE:=Atheros 802.11n wireless cards support 
     430define KernelPackage/ath9k-common 
     431  $(call KernelPackage/mac80211/Default) 
     432  TITLE:=Atheros 802.11n wireless devices (common code for ath9k and ath9k_htc) 
    433433  URL:=http://linuxwireless.org/en/users/Drivers/ath9k 
    434434  DEPENDS+= @PCI_SUPPORT +kmod-ath 
    435435  FILES:= \ 
    436436        $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_common.ko \ 
    437         $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_hw.ko \ 
     437        $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_hw.ko 
     438  AUTOLOAD:=$(call AutoLoad,27,ath9k_hw ath9k_common) 
     439endef 
     440 
     441define KernelPackage/ath9k 
     442  $(call KernelPackage/mac80211/Default) 
     443  TITLE:=Atheros 802.11n PCI wireless cards support 
     444  URL:=http://linuxwireless.org/en/users/Drivers/ath9k 
     445  DEPENDS+= @PCI_SUPPORT +kmod-ath9k-common 
     446  FILES:= \ 
    438447        $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k.ko 
    439   AUTOLOAD:=$(call AutoLoad,27,ath9k_hw ath9k_common ath9k) 
     448  AUTOLOAD:=$(call AutoLoad,28,ath9k) 
    440449endef 
    441450 
     
    443452This module adds support for wireless adapters based on 
    444453Atheros IEEE 802.11n AR5008 and AR9001 family of chipsets. 
     454endef 
     455 
     456AR7010FW:=ar7010.fw 
     457AR7010_1_1_FW:=ar7010_1_1.fw 
     458AR9271FW:=ar9271.fw 
     459 
     460define Download/ar9271 
     461  FILE:=$(AR9271FW) 
     462  URL:=http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=blob_plain;f=ar9271.fw;h=d0ee74a1c8dccb7cc21f5be90f1d4048fa9dbf9e;hb=HEAD;? 
     463  MD5SUM:=2e6f5045ec4c5a42bb93ced242bad0ba 
     464endef 
     465$(eval $(call Download,ar9271)) 
     466 
     467define Download/ar7010 
     468  FILE:=$(AR7010FW) 
     469  URL:=http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=blob_plain;f=ar7010.fw;h=840005d0f0c81838c581b8cd5d76c8dd3843731c;hb=HEAD;? 
     470  MD5SUM:=59823b82b1f72bed9b044e8cc78ad65c 
     471endef 
     472$(eval $(call Download,ar7010)) 
     473 
     474define Download/ar7010_1_1 
     475  FILE:=$(AR7010_1_1_FW) 
     476  URL:=http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=blob_plain;f=ar7010_1_1.fw;h=684d4cd1a8cac4f58305589e31f9d856d03a8ef0;hb=HEAD;? 
     477  MD5SUM:=544fcbe5a93cfa53c7e6d3ded2b05347 
     478endef 
     479$(eval $(call Download,ar7010_1_1)) 
     480 
     481define KernelPackage/ath9k-htc 
     482  $(call KernelPackage/mac80211/Default) 
     483  TITLE:=Atheros 802.11n USB device support 
     484  URL:=http://linuxwireless.org/en/users/Drivers/ath9k 
     485  DEPENDS+= @USB_SUPPORT +kmod-ath9k-common +kmod-usb-core 
     486  FILES:= \ 
     487        $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_htc.ko 
     488  AUTOLOAD:=$(call AutoLoad,28,ath9k_htc) 
     489endef 
     490 
     491define KernelPackage/ath9k/description 
     492This module adds support for wireless adapters based on 
     493Atheros USB AR9271 and AR7010 family of chipsets. 
    445494endef 
    446495 
     
    911960        CONFIG_ATH5K_AHB=$(if $(CONFIG_TARGET_atheros),y) \ 
    912961        CONFIG_ATH9K=$(if $(CONFIG_PACKAGE_kmod-ath9k),m) \ 
    913         CONFIG_ATH9K_HW=$(if $(CONFIG_PACKAGE_kmod-ath9k),m) \ 
    914         CONFIG_ATH9K_COMMON=$(if $(CONFIG_PACKAGE_kmod-ath9k),m) \ 
     962        CONFIG_ATH9K_HTC=$(if $(CONFIG_PACKAGE_kmod-ath9k-htc),m) \ 
     963        CONFIG_ATH9K_HW=$(if $(CONFIG_PACKAGE_kmod-ath9k-common),m) \ 
     964        CONFIG_ATH9K_COMMON=$(if $(CONFIG_PACKAGE_kmod-ath9k-common),m) \ 
    915965        CONFIG_ATH9K_DEBUGFS=$(if $(CONFIG_PACKAGE_MAC80211_DEBUGFS),y) \ 
    916966        CONFIG_CARL9170=$(if $(CONFIG_PACKAGE_kmod-carl9170),m) \ 
     
    9881038        CONFIG_AR9170_LEDS=$(CONFIG_LEDS_TRIGGERS) \ 
    9891039        CONFIG_IWM= \ 
    990         CONFIG_ATH9K_HTC= \ 
    9911040        CONFIG_MAC80211_RC_MINSTREL_HT=y \ 
    9921041        MADWIFI= \ 
     
    11001149        $(INSTALL_DIR) $(1)/lib/firmware 
    11011150        $(INSTALL_DATA) $(DL_DIR)/$(AR9170FW) $(1)/lib/firmware/ 
     1151endef 
     1152 
     1153define KernelPackage/ath9k-htc/install 
     1154        $(INSTALL_DIR) $(1)/lib/firmware 
     1155        $(INSTALL_DATA) \ 
     1156                $(DL_DIR)/$(AR9271FW) \ 
     1157                $(DL_DIR)/$(AR7010FW) \ 
     1158                $(DL_DIR)/$(AR7010_1_1_FW) \ 
     1159                $(1)/lib/firmware/ 
    11021160endef 
    11031161 
     
    11851243$(eval $(call KernelPackage,zd1211rw)) 
    11861244$(eval $(call KernelPackage,mac80211-hwsim)) 
     1245$(eval $(call KernelPackage,ath9k-common)) 
    11871246$(eval $(call KernelPackage,ath9k)) 
     1247$(eval $(call KernelPackage,ath9k-htc)) 
    11881248$(eval $(call KernelPackage,ath)) 
    11891249$(eval $(call KernelPackage,carl9170)) 
Note: See TracChangeset for help on using the changeset viewer.