Makefile 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647
  1. #
  2. # Copyright (C) 2007-2012 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=mac80211
  10. PKG_VERSION:=2012-09-07
  11. PKG_RELEASE:=3
  12. PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
  13. PKG_MD5SUM:=59e0a114ee4b755a6e47cb6cd0f32ebc
  14. PKG_SOURCE:=compat-wireless-$(PKG_VERSION).tar.bz2
  15. PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/compat-wireless-$(PKG_VERSION)
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_MAINTAINER:=Felix Fietkau <[email protected]>
  18. PKG_DRIVERS = \
  19. ath5k libertas-usb libertas-sd p54-common p54-pci p54-usb p54-spi \
  20. rt2x00-lib rt2x00-pci rt2x00-usb rt2x00-soc rt2800-lib rt2400-pci \
  21. rt2500-pci rt2500-usb rt61-pci rt73-usb rt2800-pci rt2800-usb \
  22. rtl8180 rtl8187 zd1211rw mac80211-hwsim carl9170 b43 b43legacy \
  23. ath9k-common ath9k ath9k-htc ath net-libipw net-ipw2100 net-ipw2200 \
  24. mwl8k net-hermes net-hermes-pci net-hermes-plx net-hermes-pcmcia \
  25. iwl-legacy iwl3945 iwl4965 iwlagn wl12xx lib80211
  26. PKG_CONFIG_DEPENDS:= \
  27. CONFIG_PACKAGE_kmod-mac80211 \
  28. $(patsubst %,CONFIG_PACKAGE_kmod-%,$(PKG_DRIVERS)) \
  29. CONFIG_PACKAGE_MAC80211_DEBUGFS \
  30. CONFIG_PACKAGE_MAC80211_MESH \
  31. CONFIG_PACKAGE_ATH_DEBUG \
  32. CONFIG_PACKAGE_B43_DEBUG \
  33. CONFIG_PACKAGE_B43_PIO \
  34. CONFIG_PACKAGE_B43_N_PHY \
  35. CONFIG_ATH_USER_REGD \
  36. CARL9170_FW_VERSION:=1.9.6
  37. include $(INCLUDE_DIR)/package.mk
  38. WMENU:=Wireless Drivers
  39. define KernelPackage/mac80211/Default
  40. SUBMENU:=$(WMENU)
  41. URL:=http://linuxwireless.org/
  42. MAINTAINER:=Felix Fietkau <[email protected]>
  43. DEPENDS:=@(!(TARGET_avr32||TARGET_ps3||TARGET_pxcab)||BROKEN)
  44. endef
  45. define KernelPackage/cfg80211
  46. $(call KernelPackage/mac80211/Default)
  47. TITLE:=cfg80211 - wireless configuration API
  48. DEPENDS+= +iw
  49. FILES:= \
  50. $(PKG_BUILD_DIR)/compat/compat.ko \
  51. $(PKG_BUILD_DIR)/net/wireless/cfg80211.ko
  52. AUTOLOAD:=$(call AutoLoad,20,compat cfg80211)
  53. endef
  54. define KernelPackage/cfg80211/description
  55. cfg80211 is the Linux wireless LAN (802.11) configuration API.
  56. endef
  57. define KernelPackage/mac80211
  58. $(call KernelPackage/mac80211/Default)
  59. TITLE:=Linux 802.11 Wireless Networking Stack
  60. DEPENDS+= +kmod-crypto-core +kmod-crypto-arc4 +kmod-crypto-aes +kmod-cfg80211
  61. KCONFIG:=\
  62. CONFIG_AVERAGE=y
  63. FILES:= $(PKG_BUILD_DIR)/net/mac80211/mac80211.ko
  64. AUTOLOAD:=$(call AutoLoad,21,mac80211)
  65. MENU:=1
  66. endef
  67. define KernelPackage/mac80211/config
  68. if PACKAGE_kmod-mac80211
  69. config PACKAGE_MAC80211_DEBUGFS
  70. bool "Export mac80211 internals in DebugFS"
  71. default y
  72. help
  73. Select this to see extensive information about
  74. the internal state of mac80211 in debugfs.
  75. Say N unless you know you need this.
  76. config PACKAGE_MAC80211_MESH
  77. bool "Enable 802.11s mesh support"
  78. default y
  79. endif
  80. endef
  81. define KernelPackage/mac80211/description
  82. Generic IEEE 802.11 Networking Stack (mac80211)
  83. endef
  84. PKG_LINUX_FIRMWARE_NAME:=linux-firmware
  85. PKG_LINUX_FIRMWARE_VERSION:=0d6729f2b0bc6254d3628eb831bc80a36b5a17db
  86. PKG_LINUX_FIRMWARE_SOURCE:=$(PKG_LINUX_FIRMWARE_NAME)-$(PKG_LINUX_FIRMWARE_VERSION).tar.bz2
  87. PKG_LINUX_FIRMWARE_PROTO:=git
  88. PKG_LINUX_FIRMWARE_SOURCE_URL:=git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
  89. PKG_LINUX_FIRMWARE_SUBDIR:=$(PKG_LINUX_FIRMWARE_NAME)-$(PKG_LINUX_FIRMWARE_VERSION)
  90. PKG_LINUX_FIRMWARE_MIRROR_MD5SUM:=5086f5da17c6043f09391c6c16dc0177
  91. define Download/linux-firmware
  92. FILE:=$(PKG_LINUX_FIRMWARE_SOURCE)
  93. URL:=$(PKG_LINUX_FIRMWARE_SOURCE_URL)
  94. MD5SUM:=$(PKG_LINUX_FIRMWARE_MD5SUM)
  95. PROTO:=$(PKG_LINUX_FIRMWARE_PROTO)
  96. VERSION:=$(PKG_LINUX_FIRMWARE_VERSION)
  97. SUBDIR:=$(PKG_LINUX_FIRMWARE_SUBDIR)
  98. MIRROR_MD5SUM:=$(PKG_LINUX_FIRMWARE_MIRROR_MD5SUM)
  99. endef
  100. $(eval $(call Download,linux-firmware))
  101. # Prism54 drivers
  102. P54PCIFW:=2.13.12.0.arm
  103. P54USBFW:=2.13.24.0.lm87.arm
  104. P54SPIFW:=2.13.0.0.a.13.14.arm
  105. CARL9170_FW:=carl9170-1.fw
  106. define Download/p54usb
  107. FILE:=$(P54USBFW)
  108. URL:=http://daemonizer.de/prism54/prism54-fw/fw-usb
  109. MD5SUM:=8e8ab005a4f8f0123bcdc51bc25b47f6
  110. endef
  111. $(eval $(call Download,p54usb))
  112. define Download/p54pci
  113. FILE:=$(P54PCIFW)
  114. URL:=http://daemonizer.de/prism54/prism54-fw/fw-softmac
  115. MD5SUM:=ff7536af2092b1c4b21315bd103ef4c4
  116. endef
  117. $(eval $(call Download,p54pci))
  118. define Download/p54spi
  119. FILE:=$(P54SPIFW)
  120. URL:=http://daemonizer.de/prism54/prism54-fw/stlc4560
  121. MD5SUM:=42661f8ecbadd88012807493f596081d
  122. endef
  123. $(eval $(call Download,p54spi))
  124. define Download/carl9170
  125. FILE:=$(CARL9170_FW)-$(CARL9170_FW_VERSION)
  126. URL:=http://downloads.openwrt.org/sources/
  127. MD5SUM:=2fa6ed98d53d0b5fbcc136d1cf5e9609
  128. endef
  129. $(eval $(call Download,carl9170))
  130. define KernelPackage/p54/Default
  131. $(call KernelPackage/mac80211/Default)
  132. TITLE:=Prism54 Drivers
  133. endef
  134. define KernelPackage/p54/description
  135. Kernel module for Prism54 chipsets (mac80211)
  136. endef
  137. define KernelPackage/p54-common
  138. $(call KernelPackage/p54/Default)
  139. DEPENDS+= @PCI_SUPPORT||@USB_SUPPORT||@TARGET_omap24xx +kmod-mac80211 +kmod-lib-crc-ccitt
  140. TITLE+= (COMMON)
  141. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/p54/p54common.ko
  142. AUTOLOAD:=$(call AutoLoad,30,p54common)
  143. endef
  144. define KernelPackage/p54-pci
  145. $(call KernelPackage/p54/Default)
  146. TITLE+= (PCI)
  147. DEPENDS+= @PCI_SUPPORT +kmod-p54-common
  148. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/p54/p54pci.ko
  149. AUTOLOAD:=$(call AutoLoad,31,p54pci)
  150. endef
  151. define KernelPackage/p54-usb
  152. $(call KernelPackage/p54/Default)
  153. TITLE+= (USB)
  154. DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-p54-common
  155. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/p54/p54usb.ko
  156. AUTOLOAD:=$(call AutoLoad,31,p54usb)
  157. endef
  158. define KernelPackage/p54-spi
  159. $(call KernelPackage/p54/Default)
  160. TITLE+= (SPI)
  161. DEPENDS+= @TARGET_omap24xx +kmod-p54-common
  162. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/p54/p54spi.ko
  163. AUTOLOAD:=$(call AutoLoad,31,p54spi)
  164. endef
  165. NEED_RT2X00_LIB_CRYPTO:=y
  166. NEED_RT2X00_LIB_FIRMWARE:=y
  167. NEED_RT2X00_LIB_EEPROM:=y
  168. NEED_RT2X00_LIB_HT:=y
  169. NEED_RT2X00_LIB_LEDS:=y
  170. define KernelPackage/rt2x00/Default
  171. $(call KernelPackage/mac80211/Default)
  172. TITLE:=Ralink Drivers for RT2x00 cards
  173. endef
  174. define KernelPackage/rt2x00-lib
  175. $(call KernelPackage/rt2x00/Default)
  176. DEPENDS+= @(PCI_SUPPORT||USB_SUPPORT||TARGET_ramips) +kmod-mac80211 +kmod-lib-crc-itu-t
  177. TITLE+= (LIB)
  178. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2x00lib.ko
  179. AUTOLOAD:=$(call AutoLoad,25,rt2x00lib)
  180. MENU:=1
  181. endef
  182. define KernelPackage/rt2x00-lib/config
  183. if PACKAGE_kmod-rt2x00-lib
  184. config PACKAGE_RT2X00_LIB_DEBUGFS
  185. bool "Enable rt2x00 debugfs support"
  186. depends PACKAGE_MAC80211_DEBUGFS
  187. help
  188. Enable creation of debugfs files for the rt2x00 drivers.
  189. These debugfs files support both reading and writing of the
  190. most important register types of the rt2x00 hardware.
  191. config PACKAGE_RT2X00_DEBUG
  192. bool "Enable rt2x00 debug output"
  193. help
  194. Enable debugging output for all rt2x00 modules
  195. endif
  196. endef
  197. define KernelPackage/rt2x00-pci
  198. $(call KernelPackage/rt2x00/Default)
  199. DEPENDS+= @(PCI_SUPPORT||TARGET_ramips) +kmod-rt2x00-lib +kmod-eeprom-93cx6
  200. TITLE+= (PCI)
  201. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2x00pci.ko
  202. AUTOLOAD:=$(call AutoLoad,26,rt2x00pci)
  203. endef
  204. define KernelPackage/rt2x00-usb
  205. $(call KernelPackage/rt2x00/Default)
  206. DEPENDS+= @USB_SUPPORT +kmod-rt2x00-lib +kmod-usb-core
  207. TITLE+= (USB)
  208. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2x00usb.ko
  209. AUTOLOAD:=$(call AutoLoad,26,rt2x00usb)
  210. endef
  211. define KernelPackage/rt2x00-soc
  212. $(call KernelPackage/rt2x00/Default)
  213. DEPENDS+= @TARGET_ramips +kmod-rt2x00-lib
  214. TITLE+= (SoC)
  215. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2x00soc.ko
  216. AUTOLOAD:=$(call AutoLoad,26,rt2x00soc)
  217. endef
  218. define KernelPackage/rt2800-lib
  219. $(call KernelPackage/rt2x00/Default)
  220. DEPENDS+= @(PCI_SUPPORT||USB_SUPPORT||TARGET_ramips) +kmod-rt2x00-lib +TARGET_ramips:kmod-rt2x00-soc +@DRIVER_11N_SUPPORT
  221. TITLE+= (rt2800 LIB)
  222. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2800lib.ko
  223. AUTOLOAD:=$(call AutoLoad,27,rt2800lib)
  224. endef
  225. define KernelPackage/rt2400-pci
  226. $(call KernelPackage/rt2x00/Default)
  227. DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci
  228. TITLE+= (RT2400 PCI)
  229. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2400pci.ko
  230. AUTOLOAD:=$(call AutoLoad,27,rt2400pci)
  231. endef
  232. define KernelPackage/rt2500-pci
  233. $(call KernelPackage/rt2x00/Default)
  234. DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci
  235. TITLE+= (RT2500 PCI)
  236. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2500pci.ko
  237. AUTOLOAD:=$(call AutoLoad,27,rt2500pci)
  238. endef
  239. define KernelPackage/rt2500-usb
  240. $(call KernelPackage/rt2x00/Default)
  241. DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb
  242. TITLE+= (RT2500 USB)
  243. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2500usb.ko
  244. AUTOLOAD:=$(call AutoLoad,27,rt2500usb)
  245. endef
  246. define KernelPackage/rt61-pci
  247. $(call KernelPackage/rt2x00/Default)
  248. DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci
  249. TITLE+= (RT2x61 PCI)
  250. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt61pci.ko
  251. AUTOLOAD:=$(call AutoLoad,27,rt61pci)
  252. endef
  253. define KernelPackage/rt73-usb
  254. $(call KernelPackage/rt2x00/Default)
  255. DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb
  256. TITLE+= (RT73 USB)
  257. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt73usb.ko
  258. AUTOLOAD:=$(call AutoLoad,27,rt73usb)
  259. endef
  260. define KernelPackage/rt2800-pci
  261. $(call KernelPackage/rt2x00/Default)
  262. DEPENDS+= @(PCI_SUPPORT||TARGET_ramips) +kmod-rt2x00-pci +kmod-rt2800-lib +kmod-lib-crc-ccitt +TARGET_ramips:kmod-rt2x00-soc
  263. TITLE+= (RT2860 PCI)
  264. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2800pci.ko
  265. AUTOLOAD:=$(call AutoLoad,28,rt2800pci)
  266. endef
  267. define KernelPackage/rt2800-usb
  268. $(call KernelPackage/rt2x00/Default)
  269. DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb +kmod-rt2800-lib +kmod-lib-crc-ccitt
  270. TITLE+= (RT2870 USB)
  271. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2800usb.ko
  272. AUTOLOAD:=$(call AutoLoad,28,rt2800usb)
  273. endef
  274. define KernelPackage/rtl818x/Default
  275. $(call KernelPackage/mac80211/Default)
  276. TITLE:=Realtek Drivers for RTL818x devices
  277. URL:=http://wireless.kernel.org/en/users/Drivers/rtl8187
  278. DEPENDS+= +kmod-eeprom-93cx6 +kmod-mac80211
  279. endef
  280. define KernelPackage/rtl8180
  281. $(call KernelPackage/rtl818x/Default)
  282. DEPENDS+= @PCI_SUPPORT
  283. TITLE+= (RTL8180 PCI)
  284. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rtl818x/rtl8180/rtl8180.ko
  285. AUTOLOAD:=$(call AutoLoad,27,rtl8180)
  286. endef
  287. define KernelPackage/rtl8187
  288. $(call KernelPackage/rtl818x/Default)
  289. DEPENDS+= @USB_SUPPORT +kmod-usb-core
  290. TITLE+= (RTL8187 USB)
  291. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rtl818x/rtl8187/rtl8187.ko
  292. AUTOLOAD:=$(call AutoLoad,27,rtl8187)
  293. endef
  294. ZD1211FW_NAME:=zd1211-firmware
  295. ZD1211FW_VERSION:=1.4
  296. define Download/zd1211rw
  297. FILE:=$(ZD1211FW_NAME)-$(ZD1211FW_VERSION).tar.bz2
  298. URL:=@SF/zd1211/
  299. MD5SUM:=19f28781d76569af8551c9d11294c870
  300. endef
  301. $(eval $(call Download,zd1211rw))
  302. define KernelPackage/zd1211rw
  303. $(call KernelPackage/mac80211/Default)
  304. TITLE:=Zydas ZD1211 support
  305. DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-mac80211
  306. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/zd1211rw/zd1211rw.ko
  307. AUTOLOAD:=$(call AutoLoad,60,zd1211rw)
  308. endef
  309. define KernelPackage/ath/config
  310. if PACKAGE_kmod-ath
  311. config ATH_USER_REGD
  312. bool "Force Atheros drivers to respect the user's regdomain settings"
  313. help
  314. Atheros' idea of regulatory handling is that the EEPROM of the card defines
  315. the regulatory limits and the user is only allowed to restrict the settings
  316. even further, even if the country allows frequencies or power levels that
  317. are forbidden by the EEPROM settings.
  318. Select this option if you want the driver to respect the user's decision about
  319. regulatory settings.
  320. config PACKAGE_ATH_DEBUG
  321. bool "Atheros wireless debugging"
  322. help
  323. Say Y, if you want to debug atheros wireless drivers.
  324. Right now only ath9k makes use of this.
  325. endif
  326. endef
  327. define KernelPackage/ath
  328. $(call KernelPackage/mac80211/Default)
  329. TITLE:=Atheros common driver part
  330. DEPENDS+= @PCI_SUPPORT||USB_SUPPORT||TARGET_ar71xx||TARGET_atheros +kmod-mac80211
  331. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath.ko
  332. AUTOLOAD:=$(call AutoLoad,26,ath)
  333. MENU:=1
  334. endef
  335. define KernelPackage/ath/description
  336. This module contains some common parts needed by Atheros Wireless drivers.
  337. endef
  338. define KernelPackage/ath5k
  339. $(call KernelPackage/mac80211/Default)
  340. TITLE:=Atheros 5xxx wireless cards support
  341. URL:=http://linuxwireless.org/en/users/Drivers/ath5k
  342. DEPENDS+= @PCI_SUPPORT||@TARGET_atheros +kmod-ath
  343. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath5k/ath5k.ko
  344. AUTOLOAD:=$(call AutoLoad,27,ath5k)
  345. endef
  346. define KernelPackage/ath5k/description
  347. This module adds support for wireless adapters based on
  348. Atheros 5xxx chipset.
  349. endef
  350. define KernelPackage/ath9k-common
  351. $(call KernelPackage/mac80211/Default)
  352. TITLE:=Atheros 802.11n wireless devices (common code for ath9k and ath9k_htc)
  353. URL:=http://linuxwireless.org/en/users/Drivers/ath9k
  354. DEPENDS+= @PCI_SUPPORT||USB_SUPPORT||TARGET_ar71xx +kmod-ath +@DRIVER_11N_SUPPORT
  355. FILES:= \
  356. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_common.ko \
  357. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_hw.ko
  358. AUTOLOAD:=$(call AutoLoad,27,ath9k_hw ath9k_common)
  359. endef
  360. define KernelPackage/ath9k
  361. $(call KernelPackage/mac80211/Default)
  362. TITLE:=Atheros 802.11n PCI wireless cards support
  363. URL:=http://linuxwireless.org/en/users/Drivers/ath9k
  364. DEPENDS+= @PCI_SUPPORT||TARGET_ar71xx +kmod-ath9k-common
  365. FILES:= \
  366. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k.ko
  367. AUTOLOAD:=$(call AutoLoad,28,ath9k)
  368. endef
  369. define KernelPackage/ath9k/description
  370. This module adds support for wireless adapters based on
  371. Atheros IEEE 802.11n AR5008 and AR9001 family of chipsets.
  372. endef
  373. define KernelPackage/ath9k-htc
  374. $(call KernelPackage/mac80211/Default)
  375. TITLE:=Atheros 802.11n USB device support
  376. URL:=http://linuxwireless.org/en/users/Drivers/ath9k
  377. DEPENDS+= @USB_SUPPORT +kmod-ath9k-common +kmod-usb-core
  378. FILES:= \
  379. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
  380. AUTOLOAD:=$(call AutoLoad,55,ath9k_htc)
  381. endef
  382. define KernelPackage/ath9k-htc/description
  383. This module adds support for wireless adapters based on
  384. Atheros USB AR9271 and AR7010 family of chipsets.
  385. endef
  386. define KernelPackage/carl9170
  387. $(call KernelPackage/mac80211/Default)
  388. TITLE:=Driver for Atheros AR9170 USB sticks
  389. DEPENDS:=@USB_SUPPORT +kmod-mac80211 +kmod-ath +kmod-usb-core +kmod-input-core +@DRIVER_11N_SUPPORT
  390. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/carl9170/carl9170.ko
  391. AUTOLOAD:=$(call AutoLoad,60,carl9170)
  392. endef
  393. define KernelPackage/carl9170/install
  394. $(INSTALL_DIR) $(1)/lib/firmware
  395. $(INSTALL_DATA) $(DL_DIR)/$(CARL9170_FW)-$(CARL9170_FW_VERSION) $(1)/lib/firmware/$(CARL9170_FW)
  396. endef
  397. define KernelPackage/lib80211
  398. $(call KernelPackage/mac80211/Default)
  399. TITLE:=802.11 Networking stack
  400. FILES:= \
  401. $(PKG_BUILD_DIR)/net/wireless/lib80211.ko \
  402. $(PKG_BUILD_DIR)/net/wireless/lib80211_crypt_wep.ko \
  403. $(PKG_BUILD_DIR)/net/wireless/lib80211_crypt_ccmp.ko \
  404. $(PKG_BUILD_DIR)/net/wireless/lib80211_crypt_tkip.ko
  405. AUTOLOAD:=$(call AutoLoad,21, \
  406. lib80211 \
  407. lib80211_crypt_wep \
  408. lib80211_crypt_ccmp \
  409. lib80211_crypt_tkip \
  410. )
  411. endef
  412. define KernelPackage/lib80211/description
  413. Kernel modules for 802.11 Networking stack
  414. Includes:
  415. - lib80211
  416. - lib80211_crypt_wep
  417. - lib80211_crypt_tkip
  418. - lib80211_crytp_ccmp
  419. endef
  420. define KernelPackage/libertas-usb
  421. $(call KernelPackage/mac80211/Default)
  422. DEPENDS+= @USB_SUPPORT +kmod-cfg80211 +kmod-usb-core +kmod-lib80211 +@DRIVER_WEXT_SUPPORT
  423. TITLE:=Marvell 88W8015 Wireless Driver
  424. FILES:= \
  425. $(PKG_BUILD_DIR)/drivers/net/wireless/libertas/libertas.ko \
  426. $(PKG_BUILD_DIR)/drivers/net/wireless/libertas/usb8xxx.ko
  427. AUTOLOAD:=$(call AutoLoad,27,libertas usb8xxx)
  428. endef
  429. define KernelPackage/libertas-sd
  430. $(call KernelPackage/mac80211/Default)
  431. DEPENDS+= +kmod-cfg80211 +kmod-lib80211 +@DRIVER_WEXT_SUPPORT
  432. TITLE:=Marvell 88W8686 Wireless Driver
  433. FILES:= \
  434. $(PKG_BUILD_DIR)/drivers/net/wireless/libertas/libertas.ko \
  435. $(PKG_BUILD_DIR)/drivers/net/wireless/libertas/libertas_sdio.ko
  436. AUTOLOAD:=$(call AutoLoad,91,libertas libertas_sdio)
  437. endef
  438. define KernelPackage/mac80211-hwsim
  439. $(call KernelPackage/mac80211/Default)
  440. TITLE:=mac80211 HW simulation device
  441. DEPENDS+= +kmod-mac80211
  442. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/mac80211_hwsim.ko
  443. AUTOLOAD:=$(call AutoLoad,60,mac80211_hwsim)
  444. endef
  445. define KernelPackage/net-libipw
  446. $(call KernelPackage/mac80211/Default)
  447. TITLE:=libipw for ipw2100 and ipw2200
  448. DEPENDS:=@PCI_SUPPORT +kmod-crypto-core +kmod-crypto-arc4 +kmod-crypto-aes +kmod-crypto-michael-mic +kmod-lib80211 +kmod-cfg80211 +@DRIVER_WEXT_SUPPORT
  449. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ipw2x00/libipw.ko
  450. AUTOLOAD:=$(call AutoLoad,49,libipw)
  451. endef
  452. define KernelPackage/net-libipw/description
  453. Hardware independent IEEE 802.11 networking stack for ipw2100 and ipw2200.
  454. endef
  455. IPW2100_NAME:=ipw2100-fw
  456. IPW2100_VERSION:=1.3
  457. define Download/net-ipw2100
  458. URL:=http://bughost.org/firmware/
  459. FILE:=$(IPW2100_NAME)-$(IPW2100_VERSION).tgz
  460. MD5SUM=46aa75bcda1a00efa841f9707bbbd113
  461. endef
  462. $(eval $(call Download,net-ipw2100))
  463. define KernelPackage/net-ipw2100
  464. $(call KernelPackage/mac80211/Default)
  465. TITLE:=Intel IPW2100 driver
  466. DEPENDS:=@PCI_SUPPORT +kmod-net-libipw
  467. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ipw2x00/ipw2100.ko
  468. AUTOLOAD:=$(call AutoLoad,50,ipw2100)
  469. endef
  470. define KernelPackage/net-ipw2100/description
  471. Kernel support for Intel IPW2100
  472. Includes:
  473. - ipw2100
  474. endef
  475. IPW2200_NAME:=ipw2200-fw
  476. IPW2200_VERSION:=3.1
  477. define Download/net-ipw2200
  478. URL:=http://bughost.org/firmware/
  479. FILE:=$(IPW2200_NAME)-$(IPW2200_VERSION).tgz
  480. MD5SUM=eaba788643c7cc7483dd67ace70f6e99
  481. endef
  482. $(eval $(call Download,net-ipw2200))
  483. define KernelPackage/net-ipw2200
  484. $(call KernelPackage/mac80211/Default)
  485. TITLE:=Intel IPW2200 driver
  486. DEPENDS:=@PCI_SUPPORT +kmod-net-libipw
  487. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ipw2x00/ipw2200.ko
  488. AUTOLOAD:=$(call AutoLoad,50,ipw2200)
  489. endef
  490. define KernelPackage/net-ipw2200/description
  491. Kernel support for Intel IPW2200
  492. Includes:
  493. - ipw2200
  494. endef
  495. define KernelPackage/net-hermes
  496. $(call KernelPackage/mac80211/Default)
  497. TITLE:=Hermes 802.11b chipset support
  498. DEPENDS:=@PCI_SUPPORT||PCMCIA_SUPPORT +kmod-cfg80211 +@DRIVER_WEXT_SUPPORT
  499. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/orinoco/orinoco.ko
  500. AUTOLOAD:=$(call AutoLoad,50,orinoco)
  501. endef
  502. define KernelPackage/net-hermes/description
  503. Kernel support for Hermes 802.11b chipsets
  504. endef
  505. define KernelPackage/net-hermes-pci
  506. $(call KernelPackage/mac80211/Default)
  507. TITLE:=Intersil Prism 2.5 PCI support
  508. DEPENDS:=@PCI_SUPPORT +kmod-net-hermes
  509. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/orinoco/orinoco_pci.ko
  510. AUTOLOAD:=$(call AutoLoad,55,orinoco_pci)
  511. endef
  512. define KernelPackage/net-hermes-pci/description
  513. Kernel modules for Intersil Prism 2.5 PCI support
  514. endef
  515. define KernelPackage/net-hermes-plx
  516. $(call KernelPackage/mac80211/Default)
  517. TITLE:=PLX9052 based PCI adaptor
  518. DEPENDS:=@PCI_SUPPORT +kmod-net-hermes
  519. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/orinoco/orinoco_plx.ko
  520. AUTOLOAD:=$(call AutoLoad,55,orinoco_plx)
  521. endef
  522. define KernelPackage/net-hermes-plx/description
  523. Kernel modules for Hermes in PLX9052 based PCI adaptors
  524. endef
  525. define KernelPackage/net-hermes-pcmcia
  526. $(call KernelPackage/mac80211/Default)
  527. TITLE:=Hermes based PCMCIA adaptors
  528. DEPENDS:=@PCMCIA_SUPPORT +kmod-net-hermes @BROKEN
  529. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/orinoco/orinoco_cs.ko
  530. AUTOLOAD:=$(call AutoLoad,55,orinoco_cs)
  531. endef
  532. define KernelPackage/net-hermes-pcmcia/description
  533. Kernel modules for Hermes based PCMCIA adaptors
  534. endef
  535. define KernelPackage/iwlagn
  536. $(call KernelPackage/mac80211/Default)
  537. DEPENDS:= +kmod-mac80211 @PCI_SUPPORT
  538. TITLE:=Intel AGN Wireless support
  539. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/iwlwifi/iwlwifi.ko
  540. AUTOLOAD:=$(call AutoLoad,60,iwlwifi)
  541. MENU:=1
  542. endef
  543. define KernelPackage/iwlagn/description
  544. iwlagn kernel module for Intel 5000/5150/1000/6000/6050/6005/6030/100 support
  545. endef
  546. define KernelPackage/iwlagn/config
  547. if PACKAGE_kmod-iwlagn
  548. config IWL5000_FW
  549. bool "Intel 5000 Firmware"
  550. default y
  551. help
  552. Download and install firmware for:
  553. Intel Wireless WiFi 5100AGN, 5300AGN, and 5350AGN
  554. config IWL5150_FW
  555. bool "Intel 5150 Firmware"
  556. default y
  557. help
  558. Download and install firmware for:
  559. Intel Wireless WiFi 5150AGN
  560. config IWL1000_FW
  561. bool "Intel 1000 Firmware"
  562. default y
  563. help
  564. Download and install firmware for:
  565. Intel Centrino Wireless-N 1000
  566. config IWL6000_FW
  567. bool "Intel 6000 Firmware"
  568. default y
  569. help
  570. Download and install firmware for:
  571. Intel Centrino Ultimate-N 6300 and Advanced-N 6200
  572. config IWL6050_FW
  573. bool "Intel 6050 Firmware"
  574. default y
  575. help
  576. Download and install firmware for:
  577. Intel Centrino Advanced-N + WiMAX 6250 and Wireless-N + WiMAX 6150
  578. config IWL6005_FW
  579. bool "Intel 6005 Firmware"
  580. default y
  581. help
  582. Download and install firmware for:
  583. Intel Centrino Advanced-N 6205
  584. config IWL6030_FW
  585. bool "Intel 6030 Firmware"
  586. default y
  587. help
  588. Download and install firmware for:
  589. Intel Centrino Advanced-N 6230, Wireless-N 1030, Wireless-N 130 and Advanced-N 6235
  590. config IWL100_FW
  591. bool "Intel 100 Firmware"
  592. default y
  593. help
  594. Download and install firmware for:
  595. Intel Centrino Wireless-N 100
  596. config IWL2000_FW
  597. bool "Intel 2000 Firmware"
  598. default y
  599. help
  600. Download and install firmware for:
  601. Intel Centrino Wireless-N 2200
  602. config IWL2030_FW
  603. bool "Intel 2030 Firmware"
  604. default y
  605. help
  606. Download and install firmware for:
  607. Intel Centrino Wireless-N 2230
  608. config IWL105_FW
  609. bool "Intel 105 Firmware"
  610. default y
  611. help
  612. Download and install firmware for:
  613. Intel Centrino Wireless-N 105
  614. config IWL135_FW
  615. bool "Intel 135 Firmware"
  616. default y
  617. help
  618. Download and install firmware for:
  619. Intel Centrino Wireless-N 135
  620. endif
  621. endef
  622. define KernelPackage/iwl-legacy
  623. $(call KernelPackage/mac80211/Default)
  624. DEPENDS:= +kmod-mac80211 @PCI_SUPPORT
  625. TITLE:=Intel legacy Wireless support
  626. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/iwlegacy/iwlegacy.ko
  627. AUTOLOAD:=$(call AutoLoad,60,iwlegacy)
  628. endef
  629. define KernelPackage/iwl-legacy/description
  630. iwl-legacy kernel module for legacy Intel wireless support
  631. endef
  632. define KernelPackage/iwl3945
  633. $(call KernelPackage/mac80211/Default)
  634. DEPENDS:= +kmod-mac80211 +kmod-iwl-legacy
  635. TITLE:=Intel iwl3945 Wireless support
  636. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/iwlegacy/iwl3945.ko
  637. AUTOLOAD:=$(call AutoLoad,61,iwl3945)
  638. endef
  639. define KernelPackage/iwl3945/description
  640. iwl3945 kernel module for Intel 3945 support
  641. endef
  642. define KernelPackage/iwl4965
  643. $(call KernelPackage/mac80211/Default)
  644. DEPENDS:= +kmod-mac80211 +kmod-iwl-legacy
  645. TITLE:=Intel iwl4965 Wireless support
  646. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/iwlegacy/iwl4965.ko
  647. AUTOLOAD:=$(call AutoLoad,61,iwl4965)
  648. endef
  649. define KernelPackage/iwl4965/description
  650. iwl4965 kernel module for Intel 4965 support
  651. endef
  652. define KernelPackage/mwl8k
  653. $(call KernelPackage/mac80211/Default)
  654. TITLE:=Driver for Marvell TOPDOG 802.11 Wireless cards
  655. URL:=http://wireless.kernel.org/en/users/Drivers/mwl8k
  656. DEPENDS+= @PCI_SUPPORT +kmod-mac80211
  657. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/mwl8k.ko
  658. AUTOLOAD:=$(call AutoLoad,27,mwl8k)
  659. endef
  660. define KernelPackage/mwl8k/description
  661. Kernel modules for Marvell TOPDOG 802.11 Wireless cards
  662. endef
  663. define KernelPackage/wl12xx
  664. $(call KernelPackage/mac80211/Default)
  665. TITLE:=Driver for TI WL12xx
  666. URL:=http://wireless.kernel.org/en/users/Drivers/wl12xx
  667. DEPENDS+= @TARGET_omap4 +kmod-mac80211
  668. FILES:= \
  669. $(PKG_BUILD_DIR)/drivers/net/wireless/ti/wl12xx/wl12xx.ko \
  670. $(PKG_BUILD_DIR)/drivers/net/wireless/ti/wlcore/wlcore.ko \
  671. $(PKG_BUILD_DIR)/drivers/net/wireless/ti/wlcore/wlcore_sdio.ko
  672. AUTOLOAD:=$(call AutoLoad,61,wlcore wlcore_sdio wl12xx)
  673. endef
  674. define KernelPackage/wl12xx/description
  675. Kernel modules for TI WL12xx
  676. endef
  677. #Broadcom firmware
  678. ifneq ($(CONFIG_B43_FW_5_10),)
  679. PKG_B43_FWV4_NAME:=broadcom-wl
  680. PKG_B43_FWV4_VERSION:=5.10.56.27.3
  681. PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/driver/wl_apsta/wl_prebuilt.o
  682. PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)_mipsel.tar.bz2
  683. PKG_B43_FWV4_SOURCE_URL:=http://mirror2.openwrt.org/sources/
  684. PKG_B43_FWV4_MD5SUM:=3363e3a6b3d9d73c49dea870c7834eac
  685. else
  686. ifneq ($(CONFIG_B43_FW_4_178),)
  687. PKG_B43_FWV4_NAME:=broadcom-wl
  688. PKG_B43_FWV4_VERSION:=4.178.10.4
  689. PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/linux/wl_apsta.o
  690. PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).tar.bz2
  691. PKG_B43_FWV4_SOURCE_URL:=http://mirror2.openwrt.org/sources/
  692. PKG_B43_FWV4_MD5SUM:=14477e8cbbb91b11896affac9b219fdb
  693. else
  694. ifneq ($(CONFIG_B43_FW_5_100_138),)
  695. PKG_B43_FWV4_NAME:=broadcom-wl
  696. PKG_B43_FWV4_VERSION:=5.100.138
  697. PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/linux/wl_apsta.o
  698. PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).tar.bz2
  699. PKG_B43_FWV4_SOURCE_URL:=http://www.lwfinger.com/b43-firmware/
  700. PKG_B43_FWV4_MD5SUM:=f4e357b09eaf5d8b1f1920cf3493a555
  701. else
  702. PKG_B43_FWV4_NAME:=broadcom-wl
  703. PKG_B43_FWV4_VERSION:=4.150.10.5
  704. PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/driver/wl_apsta_mimo.o
  705. PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).tar.bz2
  706. PKG_B43_FWV4_SOURCE_URL:=http://mirror2.openwrt.org/sources/
  707. PKG_B43_FWV4_MD5SUM:=0c6ba9687114c6b598e8019e262d9a60
  708. endif
  709. endif
  710. endif
  711. ifneq ($(CONFIG_B43_OPENFIRMWARE),)
  712. PKG_B43_FWV4_NAME:=broadcom-wl
  713. PKG_B43_FWV4_VERSION:=5.2
  714. PKG_B43_FWV4_OBJECT:=openfwwf-$(PKG_B43_FWV4_VERSION)
  715. PKG_B43_FWV4_SOURCE:=openfwwf-$(PKG_B43_FWV4_VERSION).tar.gz
  716. PKG_B43_FWV4_SOURCE_URL:=http://www.ing.unibs.it/openfwwf/firmware/
  717. PKG_B43_FWV4_MD5SUM:=e045a135453274e439ae183f8498b0fa
  718. endif
  719. PKG_B43_FWV3_NAME:=wl_apsta
  720. PKG_B43_FWV3_VERSION:=3.130.20.0
  721. PKG_B43_FWV3_SOURCE:=$(PKG_B43_FWV3_NAME)-$(PKG_B43_FWV3_VERSION).o
  722. PKG_B43_FWV3_SOURCE_URL:=http://downloads.openwrt.org/sources/
  723. PKG_B43_FWV3_MD5SUM:=e08665c5c5b66beb9c3b2dd54aa80cb3
  724. define Download/b43
  725. FILE:=$(PKG_B43_FWV4_SOURCE)
  726. URL:=$(PKG_B43_FWV4_SOURCE_URL)
  727. MD5SUM:=$(PKG_B43_FWV4_MD5SUM)
  728. endef
  729. $(eval $(call Download,b43))
  730. define Download/b43legacy
  731. FILE:=$(PKG_B43_FWV3_SOURCE)
  732. URL:=$(PKG_B43_FWV3_SOURCE_URL)
  733. MD5SUM:=$(PKG_B43_FWV3_MD5SUM)
  734. endef
  735. $(eval $(call Download,b43legacy))
  736. define KernelPackage/b43
  737. $(call KernelPackage/mac80211/Default)
  738. TITLE:=Broadcom 43xx wireless support
  739. URL:=http://linuxwireless.org/en/users/Drivers/b43
  740. KCONFIG:= \
  741. CONFIG_HW_RANDOM=y
  742. DEPENDS+= +kmod-mac80211 +!TARGET_brcm47xx:kmod-bcma +!(TARGET_brcm47xx||TARGET_brcm63xx):kmod-ssb
  743. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/b43/b43.ko
  744. AUTOLOAD:=$(call AutoLoad,30,b43)
  745. MENU:=1
  746. endef
  747. define KernelPackage/b43/config
  748. if PACKAGE_kmod-b43
  749. choice
  750. prompt "b43 firmware version"
  751. default B43_FW_5_100_138
  752. help
  753. This option allows you to select the version of the b43 firmware.
  754. config B43_FW_4_150
  755. bool "Firmware 410.2160 from driver 4.150.10.5 (old stable)"
  756. help
  757. Stable firmware for BCM43xx devices.
  758. If unsure, select this.
  759. config B43_FW_4_178
  760. bool "Firmware 478.104 from driver 4.178.10.4"
  761. help
  762. Experimental firmware for BCM43xx devices.
  763. This firmware is not tested as much as the "stable" firmware.
  764. If unsure, select the "stable" firmware.
  765. config B43_FW_5_10
  766. bool "Firmware 508.1084 from driver 5.10.56.27"
  767. help
  768. Newer experimental firmware for BCM43xx devices.
  769. This firmware is mostly untested. It is needed for some N-PHY devices.
  770. If unsure, select the "stable" firmware.
  771. config B43_FW_5_100_138
  772. bool "Firmware 666.2 from driver 5.100.138 (stable)"
  773. help
  774. Newer experimental firmware for BCM43xx devices.
  775. This firmware is mostly untested. It is needed for some N-PHY devices.
  776. If unsure, select the "stable" firmware.
  777. config B43_OPENFIRMWARE
  778. bool "Open FirmWare for WiFi networks"
  779. help
  780. Opensource firmware for BCM43xx devices.
  781. Do _not_ select this, unless you know what you are doing.
  782. The Opensource firmware is not suitable for embedded devices, yet.
  783. It does not support QoS, which is bad for AccessPoints.
  784. It does not support hardware crypto acceleration, which is a showstopper
  785. for embedded devices with low CPU resources.
  786. If unsure, select the "stable" firmware.
  787. endchoice
  788. config B43_FW_SQUASH
  789. bool "Remove unnecessary firmware files"
  790. depends on !B43_OPENFIRMWARE
  791. default y
  792. help
  793. This options allows you to remove unnecessary b43 firmware files
  794. from the final rootfs image. This can reduce the rootfs size by
  795. up to 200k.
  796. If unsure, say Y.
  797. config B43_FW_SQUASH_COREREVS
  798. string "Core revisions to include"
  799. depends on B43_FW_SQUASH
  800. default "5,6,7,8,9,10,11,13,14,15,16"
  801. help
  802. This is a comma seperated list of core revision numbers.
  803. Example (keep files for rev5 only):
  804. 5
  805. Example (keep files for rev5 and rev11):
  806. 5,11
  807. config B43_FW_SQUASH_PHYTYPES
  808. string "PHY types to include"
  809. depends on B43_FW_SQUASH
  810. default "G,LP,N"
  811. help
  812. This is a comma seperated list of PHY types:
  813. A => A-PHY
  814. AG => Dual A-PHY G-PHY
  815. G => G-PHY
  816. LP => LP-PHY
  817. N => N-PHY
  818. HT => HT-PHY
  819. LCN => LCN-PHY
  820. Example (keep files for G-PHY only):
  821. G
  822. Example (keep files for G-PHY and N-PHY):
  823. G,N
  824. config PACKAGE_B43_DEBUG
  825. bool "Enable debug output and debugfs for b43"
  826. default n
  827. help
  828. Enable additional debug output and runtime sanity checks for b43
  829. and enables the debugfs interface.
  830. If unsure, say N.
  831. config PACKAGE_B43_PIO
  832. bool "Enable support for PIO transfer mode"
  833. default n
  834. help
  835. Enable support for using PIO instead of DMA. Unless you have DMA
  836. transfer problems you don't need this.
  837. If unsure, say N.
  838. config PACKAGE_B43_PHY_N
  839. bool "Enable support for N-PHYs"
  840. default y
  841. help
  842. Enable support for BCM4321 and BCM4322.
  843. Currently only 11g speed is available.
  844. If unsure, say Y.
  845. config PACKAGE_B43_PHY_HT
  846. bool "Enable support for HT-PHYs"
  847. default n
  848. help
  849. Currently broken.
  850. If unsure, say N.
  851. config PACKAGE_B43_PHY_LCN
  852. bool "Enable support for LCN-PHYs"
  853. depends on BROKEN
  854. default n
  855. help
  856. Currently broken.
  857. If unsure, say N.
  858. endif
  859. endef
  860. define KernelPackage/b43/description
  861. Kernel module for Broadcom 43xx wireless support (mac80211 stack) new
  862. endef
  863. define KernelPackage/b43legacy
  864. $(call KernelPackage/mac80211/Default)
  865. TITLE:=Broadcom 43xx-legacy wireless support
  866. URL:=http://linuxwireless.org/en/users/Drivers/b43
  867. KCONFIG:= \
  868. CONFIG_HW_RANDOM=y
  869. DEPENDS+= +kmod-mac80211 +!(TARGET_brcm47xx||TARGET_brcm63xx):kmod-ssb
  870. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/b43legacy/b43legacy.ko
  871. AUTOLOAD:=$(call AutoLoad,30,b43legacy)
  872. MENU:=1
  873. endef
  874. define KernelPackage/b43legacy/config
  875. if PACKAGE_kmod-b43legacy
  876. config B43LEGACY_FW_SQUASH
  877. bool "Remove unnecessary firmware files"
  878. default y
  879. help
  880. This options allows you to remove unnecessary b43legacy firmware files
  881. from the final rootfs image. This can reduce the rootfs size by
  882. up to 50k.
  883. If unsure, say Y.
  884. config B43LEGACY_FW_SQUASH_COREREVS
  885. string "Core revisions to include"
  886. depends on B43LEGACY_FW_SQUASH
  887. default "1,2,3,4"
  888. help
  889. This is a comma seperated list of core revision numbers.
  890. Example (keep files for rev4 only):
  891. 4
  892. Example (keep files for rev2 and rev4):
  893. 2,4
  894. endif
  895. endef
  896. define KernelPackage/b43legacy/description
  897. Kernel module for Broadcom 43xx-legacy wireless support (mac80211 stack) new
  898. endef
  899. define KernelPackage/brcmutil
  900. $(call KernelPackage/mac80211/Default)
  901. TITLE:=Broadcom IEEE802.11n common driver parts
  902. URL:=http://linuxwireless.org/en/users/Drivers/brcm80211
  903. DEPENDS+=@PCI_SUPPORT||USB_SUPPORT
  904. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/brcm80211/brcmutil/brcmutil.ko
  905. AUTOLOAD:=$(call AutoLoad,30,brcmutil)
  906. MENU:=1
  907. endef
  908. define KernelPackage/brcmutil/description
  909. This module contains some common parts needed by Broadcom Wireless drivers brcmsmac and brcmfmac.
  910. endef
  911. define KernelPackage/brcmutil/config
  912. if PACKAGE_kmod-brcmutil
  913. config PACKAGE_BRCM80211_DEBUG
  914. bool "Broadcom wireless driver debugging"
  915. help
  916. Say Y, if you want to debug brcmsmac and brcmfmac wireless driver.
  917. endif
  918. endef
  919. PKG_BRCMSMAC_FW_NAME:=broadcom-wl
  920. PKG_BRCMSMAC_FW_VERSION:=5.100.138
  921. PKG_BRCMSMAC_FW_OBJECT:=$(PKG_BRCMSMAC_FW_NAME)-$(PKG_BRCMSMAC_FW_VERSION)/linux/wl_apsta.o
  922. PKG_BRCMSMAC_FW_SOURCE:=$(PKG_BRCMSMAC_FW_NAME)-$(PKG_BRCMSMAC_FW_VERSION).tar.bz2
  923. PKG_BRCMSMAC_FW_SOURCE_URL:=http://www.lwfinger.com/b43-firmware/
  924. PKG_BRCMSMAC_FW_MD5SUM:=f4e357b09eaf5d8b1f1920cf3493a555
  925. define KernelPackage/brcmsmac
  926. $(call KernelPackage/mac80211/Default)
  927. TITLE:=Broadcom IEEE802.11n PCIe SoftMAC WLAN driver
  928. URL:=http://linuxwireless.org/en/users/Drivers/brcm80211
  929. DEPENDS+= +kmod-mac80211 +@DRIVER_11N_SUPPORT +!TARGET_brcm47xx:kmod-bcma +kmod-lib-cordic +kmod-lib-crc8 +kmod-brcmutil
  930. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/brcm80211/brcmsmac/brcmsmac.ko
  931. AUTOLOAD:=$(call AutoLoad,31,brcmsmac)
  932. MENU:=1
  933. endef
  934. define KernelPackage/brcmsmac/description
  935. Kernel module for Broadcom IEEE802.11n PCIe Wireless cards
  936. endef
  937. define KernelPackage/brcmsmac/config
  938. if PACKAGE_kmod-brcmsmac
  939. config BRCMSMAC_USE_FW_FROM_WL
  940. bool "Use firmware extracted from broadcom proprietary driver"
  941. default y
  942. help
  943. Instead of using the official brcmsmac firmware a firmware
  944. version 666.2 extracted from the proprietary Broadcom driver
  945. is used. This is needed to get core rev 17 used in bcm4716
  946. to work.
  947. If unsure, say Y.
  948. endif
  949. endef
  950. define KernelPackage/brcmfmac
  951. $(call KernelPackage/mac80211/Default)
  952. TITLE:=Broadcom IEEE802.11n USB FullMAC WLAN driver
  953. URL:=http://linuxwireless.org/en/users/Drivers/brcm80211
  954. DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-cfg80211 +@DRIVER_11N_SUPPORT +kmod-brcmutil
  955. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/brcm80211/brcmfmac/brcmfmac.ko
  956. AUTOLOAD:=$(call AutoLoad,60,brcmfmac)
  957. endef
  958. define KernelPackage/brcmfmac/description
  959. Kernel module for Broadcom IEEE802.11n USB Wireless cards
  960. endef
  961. BUILDFLAGS:= \
  962. -I$(PKG_BUILD_DIR)/include \
  963. -DCONFIG_CFG80211_INTERNAL_REGDB=y \
  964. $(foreach opt,$(CONFOPTS),-DCONFIG_$(opt)) \
  965. $(if $(CONFIG_PCI),-DCONFIG_B43_PCI_AUTOSELECT -DCONFIG_B43_PCICORE_AUTOSELECT) \
  966. $(if $(CONFIG_LEDS_TRIGGERS), -DCONFIG_MAC80211_LEDS -DCONFIG_LEDS_TRIGGERS -DCONFIG_B43_LEDS -DCONFIG_B43LEGACY_LEDS) \
  967. -DCONFIG_B43_HWRNG -DCONFIG_B43LEGACY_HWRNG \
  968. $(if $(CONFIG_PCI),-DCONFIG_ATH9K_PCI) \
  969. $(if $(CONFIG_TARGET_ar71xx),-DCONFIG_ATH9K_AHB) \
  970. $(if $(CONFIG_PACKAGE_MAC80211_DEBUGFS), -DCONFIG_CFG80211_DEBUGFS -DCONFIG_MAC80211_DEBUGFS -DCONFIG_ATH9K_DEBUGFS -DCONFIG_CARL9170_DEBUGFS -DCONFIG_ATH9K_HTC_DEBUGFS -DCONFIG_ATH5K_DEBUG) \
  971. $(if $(CONFIG_PACKAGE_MAC80211_MESH),-DCONFIG_MAC80211_MESH) \
  972. $(if $(CONFIG_PACKAGE_ATH_DEBUG),-DCONFIG_ATH_DEBUG -DCONFIG_ATH9K_PKTLOG) \
  973. -D__CONFIG_MAC80211_RC_DEFAULT=minstrel \
  974. -DCONFIG_MAC80211_RC_MINSTREL_HT \
  975. $(if $(CONFIG_ATH_USER_REGD),-DATH_USER_REGD=1) \
  976. $(if $(CONFIG_PACKAGE_B43_DEBUG),-DCONFIG_B43_DEBUG) \
  977. $(if $(CONFIG_PACKAGE_B43_PIO),-DCONFIG_B43_PIO) \
  978. $(if $(CONFIG_PACKAGE_B43_PIO),-DCONFIG_B43_BCMA_PIO) \
  979. $(if $(CONFIG_PACKAGE_B43_PHY_N),-DCONFIG_B43_PHY_N) \
  980. $(if $(CONFIG_PACKAGE_B43_PHY_HT),-DCONFIG_B43_PHY_HT) \
  981. $(if $(CONFIG_PACKAGE_B43_PHY_LCN),-DCONFIG_B43_PHY_LCN) \
  982. -DCONFIG_B43_BCMA -DCONFIG_B43_BCMA_EXTRA \
  983. -DCONFIG_B43_SSB \
  984. $(if $(CONFIG_PACKAGE_RT2X00_LIB_DEBUGFS),-DCONFIG_RT2X00_LIB_DEBUGFS) \
  985. $(if $(CONFIG_PACKAGE_RT2X00_DEBUG),-DCONFIG_RT2X00_DEBUG) \
  986. $(if $(NEED_RT2X00_LIB_HT),-DCONFIG_RT2X00_LIB_HT) \
  987. $(if $(NEED_RT2X00_LIB_CRYPTO),-DCONFIG_RT2X00_LIB_CRYPTO) \
  988. $(if $(NEED_RT2X00_LIB_FIRMWARE),-DCONFIG_RT2X00_LIB_FIRMWARE) \
  989. $(if $(NEED_RT2X00_LIB_EEPROM),-DCONFIG_RT2X00_LIB_EEPROM) \
  990. $(if $(NEED_RT2X00_LIB_LEDS),-DCONFIG_RT2X00_LIB_LEDS) \
  991. $(if $(CONFIG_PACKAGE_kmod-rt2x00-pci),-DCONFIG_RT2X00_LIB_PCI) \
  992. $(if $(CONFIG_PACKAGE_kmod-rt2x00-usb),-DCONFIG_RT2X00_LIB_USB) \
  993. $(if $(CONFIG_PACKAGE_kmod-rt2x00-usb),-DCONFIG_RT2800USB_RT53XX) \
  994. $(if $(CONFIG_PACKAGE_kmod-rt2x00-soc),-DCONFIG_RT2X00_LIB_SOC) \
  995. $(if $(CONFIG_TARGET_atheros),-DCONFIG_ATH5K_AHB,-DCONFIG_ATH5K_PCI) \
  996. $(if $(CONFIG_PACKAGE_kmod-iwl3945),-DCONFIG_IWL3945) \
  997. $(if $(CONFIG_PACKAGE_kmod-iwl4965),-DCONFIG_COMPAT_IWL4965) \
  998. $(if $(CONFIG_PACKAGE_kmod-wl12xx),-DCONFIG_WL12XX -DCONFIG_COMPAT_WL12XX_SDIO) \
  999. $(if $(CONFIG_PACKAGE_BRCM80211_DEBUG),-DCONFIG_BRCMDBG) \
  1000. $(if $(CONFIG_PACKAGE_kmod-brcmfmac),-DCONFIG_BRCMFMAC_USB)
  1001. MAKE_OPTS:= \
  1002. CROSS_COMPILE="$(KERNEL_CROSS)" \
  1003. ARCH="$(LINUX_KARCH)" \
  1004. EXTRA_CFLAGS="$(BUILDFLAGS)" \
  1005. $(foreach opt,$(CONFOPTS),CONFIG_$(opt)=m) \
  1006. CONFIG_CFG80211_INTERNAL_REGDB=y \
  1007. CONFIG_CFG80211=$(if $(CONFIG_PACKAGE_kmod-cfg80211),m) \
  1008. CONFIG_MAC80211=$(if $(CONFIG_PACKAGE_kmod-mac80211),m) \
  1009. CONFIG_MAC80211_RC_MINSTREL=y \
  1010. CONFIG_MAC80211_MESH=$(CONFIG_PACKAGE_MAC80211_MESH) \
  1011. CONFIG_MAC80211_LEDS=$(CONFIG_LEDS_TRIGGERS) \
  1012. CONFIG_CFG80211_DEBUGFS=$(if $(CONFIG_PACKAGE_MAC80211_DEBUGFS),y) \
  1013. CONFIG_MAC80211_DEBUGFS=$(if $(CONFIG_PACKAGE_MAC80211_DEBUGFS),y) \
  1014. CONFIG_B43_PCMCIA=n CONFIG_B43_PIO=n \
  1015. CONFIG_B43_PCI_AUTOSELECT=$(if $(CONFIG_PCI),y) \
  1016. CONFIG_B43_PCICORE_AUTOSELECT=$(if $(CONFIG_PCI),y) \
  1017. CONFIG_B43LEGACY_LEDS=$(CONFIG_LEDS_TRIGGERS) \
  1018. CONFIG_B43_LEDS=$(CONFIG_LEDS_TRIGGERS) \
  1019. CONFIG_B43_HWRNG=$(if $(CONFIG_HW_RANDOM),y) \
  1020. CONFIG_B43LEGACY_HWRNG=$(if $(CONFIG_HW_RANDOM),y) \
  1021. CONFIG_B43=$(if $(CONFIG_PACKAGE_kmod-b43),m) \
  1022. CONFIG_B43LEGACY=$(if $(CONFIG_PACKAGE_kmod-b43legacy),m) \
  1023. CONFIG_B43_DEBUG=$(if $(CONFIG_PACKAGE_B43_DEBUG),y) \
  1024. CONFIG_B43_PIO=$(if $(CONFIG_PACKAGE_B43_PIO),y) \
  1025. CONFIG_B43_BCMA_PIO=$(if $(CONFIG_PACKAGE_B43_PIO),y) \
  1026. CONFIG_B43_PHY_N=$(if $(CONFIG_PACKAGE_B43_PHY_N),y) \
  1027. CONFIG_B43_PHY_HT=$(if $(CONFIG_PACKAGE_B43_PHY_HT),y) \
  1028. CONFIG_B43_PHY_LCN=$(if $(CONFIG_PACKAGE_B43_PHY_LCN),y) \
  1029. CONFIG_B43_BCMA=y \
  1030. CONFIG_B43_SSB=y \
  1031. CONFIG_ATH_COMMON=$(if $(CONFIG_PACKAGE_kmod-ath),m) \
  1032. CONFIG_ATH_DEBUG=$(if $(CONFIG_PACKAGE_ATH_DEBUG),y) \
  1033. CONFIG_ATH9K_PKTLOG=$(if $(CONFIG_PACKAGE_ATH_DEBUG),y) \
  1034. CONFIG_ATH5K=$(if $(CONFIG_PACKAGE_kmod-ath5k),m) \
  1035. CONFIG_ATH5K_PCI=$(if $(CONFIG_TARGET_atheros),,y) \
  1036. CONFIG_ATH5K_AHB=$(if $(CONFIG_TARGET_atheros),y) \
  1037. CONFIG_ATH5K_DEBUG=$(if $(CONFIG_PACKAGE_MAC80211_DEBUGFS),y) \
  1038. CONFIG_ATH9K=$(if $(CONFIG_PACKAGE_kmod-ath9k),m) \
  1039. CONFIG_ATH9K_PCI=$(CONFIG_PCI) \
  1040. CONFIG_ATH9K_AHB=$(if $(CONFIG_TARGET_ar71xx),y) \
  1041. CONFIG_ATH9K_HTC=$(if $(CONFIG_PACKAGE_kmod-ath9k-htc),m) \
  1042. CONFIG_ATH9K_HTC_DEBUGFS=$(if $(CONFIG_PACKAGE_MAC80211_DEBUGFS),y) \
  1043. CONFIG_ATH9K_HW=$(if $(CONFIG_PACKAGE_kmod-ath9k-common),m) \
  1044. CONFIG_ATH9K_COMMON=$(if $(CONFIG_PACKAGE_kmod-ath9k-common),m) \
  1045. CONFIG_ATH9K_DEBUGFS=$(if $(CONFIG_PACKAGE_MAC80211_DEBUGFS),y) \
  1046. CONFIG_CARL9170=$(if $(CONFIG_PACKAGE_kmod-carl9170),m) \
  1047. CONFIG_CARL9170_DEBUGFS=$(if $(CONFIG_PACKAGE_MAC80211_DEBUGFS),y) \
  1048. CONFIG_COMPAT_ZD1211RW=$(if $(CONFIG_PACKAGE_kmod-zd1211rw),m) \
  1049. CONFIG_P54_COMMON=$(if $(CONFIG_PACKAGE_kmod-p54-common),m) \
  1050. CONFIG_P54_PCI=$(if $(CONFIG_PACKAGE_kmod-p54-pci),m) \
  1051. CONFIG_P54_USB=$(if $(CONFIG_PACKAGE_kmod-p54-usb),m) \
  1052. CONFIG_P54_SPI=$(if $(CONFIG_PACKAGE_kmod-p54-spi),m) \
  1053. CONFIG_P54_SPI_DEFAULT_EEPROM=n \
  1054. CONFIG_RT2X00=$(if $(CONFIG_PACKAGE_kmod-rt2x00-lib),m) \
  1055. CONFIG_RT2X00_LIB=$(if $(CONFIG_PACKAGE_kmod-rt2x00-lib),m) \
  1056. CONFIG_RT2X00_LIB_PCI=$(if $(CONFIG_PACKAGE_kmod-rt2x00-pci),m) \
  1057. CONFIG_RT2X00_LIB_USB=$(if $(CONFIG_PACKAGE_kmod-rt2x00-usb),m) \
  1058. CONFIG_RT2X00_LIB_SOC=$(if $(CONFIG_PACKAGE_kmod-rt2x00-soc),m) \
  1059. CONFIG_RT2X00_LIB_DEBUGFS=$(CONFIG_PACKAGE_RT2X00_LIB_DEBUGFS) \
  1060. CONFIG_RT2X00_LIB_CRYPTO=$(NEED_RT2X00_LIB_CRYPTO) \
  1061. CONFIG_RT2X00_LIB_FIRMWARE=$(NEED_RT2X00_LIB_FIRMWARE) \
  1062. CONFIG_RT2X00_LIB_EEPROM=$(NEED_RT2X00_LIB_EEPROM) \
  1063. CONFIG_RT2X00_LIB_HT=$(NEED_RT2X00_LIB_HT) \
  1064. CONFIG_RT2X00_LIB_LEDS=$(NEED_RT2X00_LIB_LEDS) \
  1065. CONFIG_RT2400PCI=$(if $(CONFIG_PACKAGE_kmod-rt2400-pci),m) \
  1066. CONFIG_RT2500PCI=$(if $(CONFIG_PACKAGE_kmod-rt2500-pci),m) \
  1067. CONFIG_RT2500USB=$(if $(CONFIG_PACKAGE_kmod-rt2500-usb),m) \
  1068. CONFIG_RT61PCI=$(if $(CONFIG_PACKAGE_kmod-rt61-pci),m) \
  1069. CONFIG_RT73USB=$(if $(CONFIG_PACKAGE_kmod-rt73-usb),m) \
  1070. CONFIG_RT2800_LIB=$(if $(CONFIG_PACKAGE_kmod-rt2800-lib),m) \
  1071. CONFIG_RT2800PCI=$(if $(CONFIG_PACKAGE_kmod-rt2800-pci),m) \
  1072. CONFIG_RT2800USB=$(if $(CONFIG_PACKAGE_kmod-rt2800-usb),m) \
  1073. CONFIG_RTL8180=$(if $(CONFIG_PACKAGE_kmod-rtl8180),m) \
  1074. CONFIG_RTL8187=$(if $(CONFIG_PACKAGE_kmod-rtl8187),m) \
  1075. CONFIG_RTL8192CE= \
  1076. CONFIG_RTLWIFI= \
  1077. CONFIG_MAC80211_HWSIM=$(if $(CONFIG_PACKAGE_kmod-mac80211-hwsim),m) \
  1078. CONFIG_PCMCIA= \
  1079. CONFIG_LIBIPW=$(if $(CONFIG_PACKAGE_kmod-net-libipw),m) \
  1080. CONFIG_LIBERTAS=$(if $(CONFIG_PACKAGE_kmod-libertas-sd)$(CONFIG_PACKAGE_kmod-libertas-usb),m) \
  1081. CONFIG_LIBERTAS_CS= \
  1082. CONFIG_LIBERTAS_SPI= \
  1083. CONFIG_COMPAT_LIBERTAS_SDIO=$(if $(CONFIG_PACKAGE_kmod-libertas-sd),m) \
  1084. CONFIG_LIBERTAS_THINFIRM= \
  1085. CONFIG_LIBERTAS_USB=$(if $(CONFIG_PACKAGE_kmod-libertas-usb),m) \
  1086. CONFIG_IPW2100=$(if $(CONFIG_PACKAGE_kmod-net-ipw2100),m) \
  1087. CONFIG_IPW2200=$(if $(CONFIG_PACKAGE_kmod-net-ipw2200),m) \
  1088. CONFIG_NL80211=y \
  1089. CONFIG_LIB80211=$(if $(CONFIG_PACKAGE_kmod-lib80211),m) \
  1090. CONFIG_LIB80211_CRYPT_WEP=$(if $(CONFIG_PACKAGE_kmod-lib80211),m) \
  1091. CONFIG_LIB80211_CRYPT_CCMP=$(if $(CONFIG_PACKAGE_kmod-lib80211),m) \
  1092. CONFIG_LIB80211_CRYPT_TKIP=$(if $(CONFIG_PACKAGE_kmod-lib80211),m) \
  1093. CONFIG_IWLWIFI=$(if $(CONFIG_PACKAGE_kmod-iwlagn),m) \
  1094. CONFIG_IWLEGACY=$(if $(CONFIG_PACKAGE_kmod-iwl-legacy),m) \
  1095. CONFIG_COMPAT_IWL4965=$(if $(CONFIG_PACKAGE_kmod-iwl4965),m) \
  1096. CONFIG_IWL3945=$(if $(CONFIG_PACKAGE_kmod-iwl3945),m) \
  1097. CONFIG_MWL8K=$(if $(CONFIG_PACKAGE_kmod-mwl8k),m) \
  1098. CONFIG_ATMEL= \
  1099. CONFIG_PCMCIA_ATMEL= \
  1100. CONFIG_ADM8211= \
  1101. CONFIG_USB_NET_RNDIS_HOST= \
  1102. CONFIG_USB_NET_RNDIS_WLAN= \
  1103. CONFIG_USB_NET_CDCETHER= \
  1104. CONFIG_USB_USBNET= \
  1105. CONFIG_AT76C50X_USB= \
  1106. CONFIG_WL_TI=$(if $(CONFIG_PACKAGE_kmod-wl12xx),m) \
  1107. CONFIG_WLCORE=$(if $(CONFIG_PACKAGE_kmod-wl12xx),m) \
  1108. CONFIG_WL12XX=$(if $(CONFIG_PACKAGE_kmod-wl12xx),m) \
  1109. CONFIG_WLCORE_SDIO=$(if $(CONFIG_PACKAGE_kmod-wl12xx),m) \
  1110. CONFIG_EEPROM_93CX6= \
  1111. CONFIG_HERMES=$(if $(CONFIG_PACKAGE_kmod-net-hermes),m) \
  1112. CONFIG_HERMES_CACHE_FW_ON_INIT= \
  1113. CONFIG_PCI_HERMES=$(if $(CONFIG_PACKAGE_kmod-net-hermes-pci),m) \
  1114. CONFIG_PLX_HERMES=$(if $(CONFIG_PACKAGE_kmod-net-hermes-plx),m) \
  1115. CONFIG_PCMCIA_HERMES=$(if $(CONFIG_PACKAGE_kmod-net-hermes-pcmcia),m) \
  1116. CONFIG_HERMES_PRISM= \
  1117. CONFIG_APPLE_AIRPORT= \
  1118. CONFIG_TMD_HERMES= \
  1119. CONFIG_NORTEL_HERMES= \
  1120. CONFIG_PCMCIA_SPECTRUM= \
  1121. CONFIG_ORINOCO_USB= \
  1122. CONFIG_IWM= \
  1123. CONFIG_MWIFIEX= \
  1124. CONFIG_ATH6KL= \
  1125. CONFIG_MAC80211_RC_MINSTREL_HT=y \
  1126. MADWIFI= \
  1127. CONFIG_B44= \
  1128. CONFIG_ATL1= \
  1129. CONFIG_ATL2= \
  1130. CONFIG_ATL1E= \
  1131. CONFIG_ATL1C= \
  1132. CONFIG_BRCMUTIL=$(if $(CONFIG_PACKAGE_kmod-brcmutil),m) \
  1133. CONFIG_BRCMSMAC=$(if $(CONFIG_PACKAGE_kmod-brcmsmac),m) \
  1134. CONFIG_BRCMFMAC=$(if $(CONFIG_PACKAGE_kmod-brcmfmac),m) \
  1135. CONFIG_BRCMFMAC_USB=$(if $(CONFIG_PACKAGE_kmod-brcmfmac),y) \
  1136. CONFIG_BRCMDBG=$(if $(CONFIG_PACKAGE_BRCM80211_DEBUG),y) \
  1137. KLIB_BUILD="$(LINUX_DIR)" \
  1138. MODPROBE=true \
  1139. KLIB=$(TARGET_MODULES_DIR) \
  1140. KERNEL_SUBLEVEL=$(lastword $(subst ., ,$(KERNEL_PATCHVER))) \
  1141. KBUILD_LDFLAGS_MODULE_PREREQ=
  1142. ifeq ($(CONFIG_PACKAGE_kmod-libertas-sd)$(CONFIG_PACKAGE_kmod-libertas-usb)$(CONFIG_PACKAGE_kmod-rt2x00-lib),)
  1143. MAKE_OPTS += CONFIG_COMPAT_KFIFO=
  1144. endif
  1145. define Build/Prepare
  1146. rm -rf $(PKG_BUILD_DIR)
  1147. mkdir -p $(PKG_BUILD_DIR)
  1148. $(PKG_UNPACK)
  1149. $(Build/Patch)
  1150. $(TAR) -C $(PKG_BUILD_DIR) -xzf $(DL_DIR)/$(IPW2100_NAME)-$(IPW2100_VERSION).tgz
  1151. $(TAR) -C $(PKG_BUILD_DIR) -xzf $(DL_DIR)/$(IPW2200_NAME)-$(IPW2200_VERSION).tgz
  1152. $(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(ZD1211FW_NAME)-$(ZD1211FW_VERSION).tar.bz2
  1153. $(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(PKG_LINUX_FIRMWARE_SOURCE)
  1154. rm -rf $(PKG_BUILD_DIR)/include/linux/ssb
  1155. rm -rf $(PKG_BUILD_DIR)/include/linux/bcma
  1156. rm -rf $(PKG_BUILD_DIR)/include/net/bluetooth/
  1157. rm -f $(PKG_BUILD_DIR)/include/linux/eeprom_93cx6.h
  1158. rm -f $(PKG_BUILD_DIR)/include/linux/wl12xx.h
  1159. rm -f $(PKG_BUILD_DIR)/include/linux/spi/libertas_spi.h
  1160. rm -f $(PKG_BUILD_DIR)/include/net/ieee80211.h
  1161. echo 'compat-wireless-$(PKG_VERSION)-$(PKG_RELEASE)-$(REVISION)' > $(PKG_BUILD_DIR)/compat_version
  1162. $(CP) ./files/regdb.txt $(PKG_BUILD_DIR)/net/wireless/db.txt
  1163. endef
  1164. ifneq ($(CONFIG_PACKAGE_kmod-cfg80211)$(CONFIG_PACKAGE_kmod-lib80211),)
  1165. define Build/Compile/kmod
  1166. rm -rf $(PKG_BUILD_DIR)/modules
  1167. +$(MAKE) $(PKG_JOBS) -C "$(PKG_BUILD_DIR)" $(MAKE_OPTS) modules
  1168. endef
  1169. endif
  1170. define Build/Configure
  1171. cmp $(PKG_BUILD_DIR)/include/linux/ath9k_platform.h $(LINUX_DIR)/include/linux/ath9k_platform.h
  1172. cmp $(PKG_BUILD_DIR)/include/linux/ath5k_platform.h $(LINUX_DIR)/include/linux/ath5k_platform.h
  1173. cmp $(PKG_BUILD_DIR)/include/linux/rt2x00_platform.h $(LINUX_DIR)/include/linux/rt2x00_platform.h
  1174. endef
  1175. define Build/Compile
  1176. $(call Build/Compile/kmod)
  1177. endef
  1178. define Build/InstallDev
  1179. mkdir -p \
  1180. $(1)/usr/include/mac80211 \
  1181. $(1)/usr/include/mac80211/ath \
  1182. $(1)/usr/include/net/mac80211
  1183. $(CP) $(PKG_BUILD_DIR)/net/mac80211/*.h $(PKG_BUILD_DIR)/include/* $(1)/usr/include/mac80211/
  1184. $(CP) $(PKG_BUILD_DIR)/net/mac80211/rate.h $(1)/usr/include/net/mac80211/
  1185. $(CP) $(PKG_BUILD_DIR)/drivers/net/wireless/ath/*.h $(1)/usr/include/mac80211/ath/
  1186. endef
  1187. define KernelPackage/libertas-usb/install
  1188. $(INSTALL_DIR) $(1)/lib/firmware
  1189. $(INSTALL_DATA) \
  1190. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/libertas/usb8388_v9.bin \
  1191. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/libertas/usb8682.bin \
  1192. $(1)/lib/firmware/
  1193. endef
  1194. define KernelPackage/libertas-sd/install
  1195. $(INSTALL_DIR) $(1)/lib/firmware/libertas
  1196. $(INSTALL_DATA) \
  1197. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/libertas/sd8385_helper.bin \
  1198. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/libertas/sd8385.bin \
  1199. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/libertas/sd8686_v9_helper.bin \
  1200. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/libertas/sd8686_v9.bin \
  1201. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/libertas/sd8688_helper.bin \
  1202. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/libertas/sd8688.bin \
  1203. $(1)/lib/firmware/libertas
  1204. endef
  1205. define KernelPackage/cfg80211/install
  1206. $(INSTALL_DIR) $(1)/lib/wifi
  1207. $(INSTALL_DATA) ./files/lib/wifi/mac80211.sh $(1)/lib/wifi
  1208. endef
  1209. define KernelPackage/p54-pci/install
  1210. $(INSTALL_DIR) $(1)/lib/firmware
  1211. $(INSTALL_DATA) $(DL_DIR)/$(P54PCIFW) $(1)/lib/firmware/isl3886pci
  1212. endef
  1213. define KernelPackage/p54-usb/install
  1214. $(INSTALL_DIR) $(1)/lib/firmware
  1215. $(INSTALL_DATA) $(DL_DIR)/$(P54USBFW) $(1)/lib/firmware/isl3887usb
  1216. endef
  1217. define KernelPackage/p54-spi/install
  1218. $(INSTALL_DIR) $(1)/lib/firmware
  1219. $(INSTALL_DATA) $(DL_DIR)/$(P54SPIFW) $(1)/lib/firmware/3826.arm
  1220. endef
  1221. define KernelPackage/rt61-pci/install
  1222. $(INSTALL_DIR) $(1)/lib/firmware
  1223. $(INSTALL_DATA) \
  1224. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2561.bin \
  1225. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2561s.bin \
  1226. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2661.bin \
  1227. $(1)/lib/firmware/
  1228. endef
  1229. define KernelPackage/rt73-usb/install
  1230. $(INSTALL_DIR) $(1)/lib/firmware
  1231. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt73.bin $(1)/lib/firmware/
  1232. endef
  1233. define KernelPackage/rt2800-pci/install
  1234. $(INSTALL_DIR) $(1)/lib/firmware
  1235. $(INSTALL_DATA) \
  1236. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2860.bin \
  1237. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt3290.bin \
  1238. $(1)/lib/firmware
  1239. endef
  1240. define KernelPackage/rt2800-usb/install
  1241. $(INSTALL_DIR) $(1)/lib/firmware
  1242. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2870.bin $(1)/lib/firmware/
  1243. endef
  1244. define KernelPackage/wl12xx/install
  1245. $(INSTALL_DIR) $(1)/lib/firmware/ti-connectivity
  1246. $(INSTALL_DATA) \
  1247. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl127x-fw-5-mr.bin \
  1248. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl127x-fw-5-plt.bin \
  1249. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl127x-fw-5-sr.bin \
  1250. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl1271-nvs.bin \
  1251. $(1)/lib/firmware/ti-connectivity
  1252. endef
  1253. define KernelPackage/zd1211rw/install
  1254. $(INSTALL_DIR) $(1)/lib/firmware/zd1211
  1255. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(ZD1211FW_NAME)/zd1211* $(1)/lib/firmware/zd1211
  1256. endef
  1257. define KernelPackage/ath9k-htc/install
  1258. $(INSTALL_DIR) $(1)/lib/firmware
  1259. $(INSTALL_DATA) \
  1260. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/htc_9271.fw \
  1261. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/htc_7010.fw \
  1262. $(1)/lib/firmware/
  1263. endef
  1264. define KernelPackage/mwl8k/install
  1265. $(INSTALL_DIR) $(1)/lib/firmware/mwl8k
  1266. $(INSTALL_DATA) \
  1267. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/mwl8k/fmimage_8366_ap-2.fw \
  1268. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/mwl8k/fmimage_8366.fw \
  1269. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/mwl8k/helper_8366.fw \
  1270. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/mwl8k/fmimage_8687.fw \
  1271. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/mwl8k/helper_8687.fw \
  1272. $(1)/lib/firmware/mwl8k/
  1273. endef
  1274. define KernelPackage/net-ipw2100/install
  1275. $(INSTALL_DIR) $(1)/lib/firmware
  1276. $(INSTALL_DATA) $(PKG_BUILD_DIR)/ipw2100-$(IPW2100_VERSION)*.fw $(1)/lib/firmware
  1277. endef
  1278. define KernelPackage/net-ipw2200/install
  1279. $(INSTALL_DIR) $(1)/lib/firmware
  1280. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(IPW2200_NAME)-$(IPW2200_VERSION)/ipw2200*.fw $(1)/lib/firmware
  1281. endef
  1282. define KernelPackage/iwlagn/install
  1283. $(INSTALL_DIR) $(1)/lib/firmware
  1284. ifneq ($(CONFIG_IWL5000_FW),)
  1285. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-5000-5.ucode $(1)/lib/firmware
  1286. endif
  1287. ifneq ($(CONFIG_IWL5150_FW),)
  1288. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-5150-2.ucode $(1)/lib/firmware
  1289. endif
  1290. ifneq ($(CONFIG_IWL1000_FW),)
  1291. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-1000-5.ucode $(1)/lib/firmware
  1292. endif
  1293. ifneq ($(CONFIG_IWL6000_FW),)
  1294. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-6000-4.ucode $(1)/lib/firmware
  1295. endif
  1296. ifneq ($(CONFIG_IWL6050_FW),)
  1297. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-6050-5.ucode $(1)/lib/firmware
  1298. endif
  1299. ifneq ($(CONFIG_IWL6005_FW),)
  1300. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-6000g2a-6.ucode $(1)/lib/firmware
  1301. endif
  1302. ifneq ($(CONFIG_IWL6030_FW),)
  1303. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-6000g2b-6.ucode $(1)/lib/firmware
  1304. endif
  1305. ifneq ($(CONFIG_IWL100_FW),)
  1306. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-100-5.ucode $(1)/lib/firmware
  1307. endif
  1308. ifneq ($(CONFIG_IWL2000_FW),)
  1309. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-2000-6.ucode $(1)/lib/firmware
  1310. endif
  1311. ifneq ($(CONFIG_IWL2030_FW),)
  1312. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-2030-6.ucode $(1)/lib/firmware
  1313. endif
  1314. ifneq ($(CONFIG_IWL105_FW),)
  1315. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-105-6.ucode $(1)/lib/firmware
  1316. endif
  1317. ifneq ($(CONFIG_IWL135_FW),)
  1318. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-135-6.ucode $(1)/lib/firmware
  1319. endif
  1320. endef
  1321. define KernelPackage/iwl3945/install
  1322. $(INSTALL_DIR) $(1)/lib/firmware
  1323. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-3945-2.ucode $(1)/lib/firmware
  1324. endef
  1325. define KernelPackage/iwl4965/install
  1326. $(INSTALL_DIR) $(1)/lib/firmware
  1327. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-4965-2.ucode $(1)/lib/firmware
  1328. endef
  1329. define KernelPackage/b43/install
  1330. rm -rf $(1)/lib/firmware/
  1331. ifeq ($(CONFIG_B43_OPENFIRMWARE),y)
  1332. tar xzf "$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C "$(PKG_BUILD_DIR)"
  1333. else
  1334. tar xjf "$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C "$(PKG_BUILD_DIR)"
  1335. endif
  1336. $(INSTALL_DIR) $(1)/lib/firmware/
  1337. ifeq ($(CONFIG_B43_OPENFIRMWARE),y)
  1338. $(MAKE) -C "$(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/"
  1339. $(INSTALL_DIR) $(1)/lib/firmware/b43-open/
  1340. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/ucode5.fw $(1)/lib/firmware/b43-open/ucode5.fw
  1341. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/b0g0bsinitvals5.fw $(1)/lib/firmware/b43-open/b0g0bsinitvals5.fw
  1342. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/b0g0initvals5.fw $(1)/lib/firmware/b43-open/b0g0initvals5.fw
  1343. else
  1344. b43-fwcutter -w $(1)/lib/firmware/ $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)
  1345. endif
  1346. ifneq ($(CONFIG_B43_FW_SQUASH),)
  1347. b43-fwsquash.py "$(CONFIG_B43_FW_SQUASH_PHYTYPES)" "$(CONFIG_B43_FW_SQUASH_COREREVS)" "$(1)/lib/firmware/b43"
  1348. endif
  1349. endef
  1350. define KernelPackage/b43legacy/install
  1351. $(INSTALL_DIR) $(1)/lib/firmware/
  1352. b43-fwcutter --unsupported -w $(1)/lib/firmware/ $(DL_DIR)/$(PKG_B43_FWV3_SOURCE)
  1353. ifneq ($(CONFIG_B43LEGACY_FW_SQUASH),)
  1354. b43-fwsquash.py "G" "$(CONFIG_B43LEGACY_FW_SQUASH_COREREVS)" "$(1)/lib/firmware/b43legacy"
  1355. endif
  1356. endef
  1357. define KernelPackage/brcmsmac/install
  1358. $(INSTALL_DIR) $(1)/lib/firmware/brcm
  1359. ifeq ($(CONFIG_BRCMSMAC_USE_FW_FROM_WL),y)
  1360. tar xjf "$(DL_DIR)/$(PKG_BRCMSMAC_FW_SOURCE)" -C "$(PKG_BUILD_DIR)"
  1361. b43-fwcutter --brcmsmac -w $(1)/lib/firmware/ $(PKG_BUILD_DIR)/$(PKG_BRCMSMAC_FW_OBJECT)
  1362. else
  1363. $(INSTALL_DATA) \
  1364. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/bcm43xx-0.fw \
  1365. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/bcm43xx_hdr-0.fw \
  1366. $(1)/lib/firmware/brcm/
  1367. endif
  1368. endef
  1369. define KernelPackage/brcmfmac/install
  1370. $(INSTALL_DIR) $(1)/lib/firmware/brcm
  1371. $(INSTALL_DATA) \
  1372. $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/brcmfmac43236b.bin \
  1373. $(1)/lib/firmware/brcm/
  1374. endef
  1375. $(eval $(call KernelPackage,ath5k))
  1376. $(eval $(call KernelPackage,lib80211))
  1377. $(eval $(call KernelPackage,libertas-usb))
  1378. $(eval $(call KernelPackage,libertas-sd))
  1379. $(eval $(call KernelPackage,cfg80211))
  1380. $(eval $(call KernelPackage,mac80211))
  1381. $(eval $(call KernelPackage,p54-common))
  1382. $(eval $(call KernelPackage,p54-pci))
  1383. $(eval $(call KernelPackage,p54-usb))
  1384. $(eval $(call KernelPackage,p54-spi))
  1385. $(eval $(call KernelPackage,rt2x00-lib))
  1386. $(eval $(call KernelPackage,rt2x00-pci))
  1387. $(eval $(call KernelPackage,rt2x00-usb))
  1388. $(eval $(call KernelPackage,rt2x00-soc))
  1389. $(eval $(call KernelPackage,rt2800-lib))
  1390. $(eval $(call KernelPackage,rt2400-pci))
  1391. $(eval $(call KernelPackage,rt2500-pci))
  1392. $(eval $(call KernelPackage,rt2500-usb))
  1393. $(eval $(call KernelPackage,rt61-pci))
  1394. $(eval $(call KernelPackage,rt73-usb))
  1395. $(eval $(call KernelPackage,rt2800-pci))
  1396. $(eval $(call KernelPackage,rt2800-usb))
  1397. $(eval $(call KernelPackage,rtl8180))
  1398. $(eval $(call KernelPackage,rtl8187))
  1399. $(eval $(call KernelPackage,zd1211rw))
  1400. $(eval $(call KernelPackage,mac80211-hwsim))
  1401. $(eval $(call KernelPackage,ath9k-common))
  1402. $(eval $(call KernelPackage,ath9k))
  1403. $(eval $(call KernelPackage,ath9k-htc))
  1404. $(eval $(call KernelPackage,ath))
  1405. $(eval $(call KernelPackage,carl9170))
  1406. $(eval $(call KernelPackage,b43))
  1407. $(eval $(call KernelPackage,b43legacy))
  1408. $(eval $(call KernelPackage,brcmutil))
  1409. $(eval $(call KernelPackage,brcmsmac))
  1410. $(eval $(call KernelPackage,brcmfmac))
  1411. $(eval $(call KernelPackage,net-libipw))
  1412. $(eval $(call KernelPackage,net-ipw2100))
  1413. $(eval $(call KernelPackage,net-ipw2200))
  1414. $(eval $(call KernelPackage,iwlagn))
  1415. $(eval $(call KernelPackage,iwl-legacy))
  1416. $(eval $(call KernelPackage,iwl4965))
  1417. $(eval $(call KernelPackage,iwl3945))
  1418. $(eval $(call KernelPackage,mwl8k))
  1419. $(eval $(call KernelPackage,net-hermes))
  1420. $(eval $(call KernelPackage,net-hermes-pci))
  1421. $(eval $(call KernelPackage,net-hermes-plx))
  1422. $(eval $(call KernelPackage,net-hermes-pcmcia))
  1423. $(eval $(call KernelPackage,wl12xx))