mac80211: move marvell firmware to the linux-firmware package
[openwrt/staging/yousong.git] / package / kernel / mac80211 / Makefile
1 #
2 # Copyright (C) 2007-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=mac80211
12
13 PKG_VERSION:=2015-12-03
14 PKG_RELEASE:=2
15 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
16 PKG_BACKPORT_VERSION:=
17 PKG_MD5SUM:=7a1dc4dc2f509e5532b935b0a0d15103
18
19 PKG_SOURCE:=compat-wireless-$(PKG_VERSION)$(PKG_BACKPORT_VERSION).tar.bz2
20 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/compat-wireless-$(PKG_VERSION)
21 PKG_BUILD_PARALLEL:=1
22
23 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
24
25 PKG_DRIVERS = \
26 adm8211 \
27 ath ath5k ath9k ath9k-common ath9k-htc ath10k \
28 b43 b43legacy \
29 carl9170 \
30 hermes hermes-pci hermes-pcmcia hermes-plx\
31 iwl-legacy iwl3945 iwl4965 iwlwifi \
32 lib80211 \
33 libipw ipw2100 ipw2200 \
34 libertas-sdio libertas-usb \
35 mac80211-hwsim \
36 mt7601u \
37 mwl8k mwifiex-pcie \
38 p54-common p54-pci p54-spi p54-usb \
39 rt2x00-lib rt2x00-pci rt2x00-usb \
40 rt2400-pci rt2500-pci rt2500-usb \
41 rt2800-lib rt2800-mmio rt2800-pci rt2800-soc rt2800-usb \
42 rt61-pci rt73-usb \
43 rtl8180 rtl8187 \
44 rtlwifi rtlwifi-pci rtlwifi-usb rtl8192c-common rtl8192ce rtl8192se \
45 rtl8192de rtl8192cu \
46 rtl8xxxu \
47 wlcore wl12xx wl18xx \
48 zd1211rw
49
50 PKG_CONFIG_DEPENDS:= \
51 CONFIG_PACKAGE_kmod-mac80211 \
52 $(patsubst %,CONFIG_PACKAGE_kmod-%,$(PKG_DRIVERS)) \
53 CONFIG_PACKAGE_MAC80211_DEBUGFS \
54 CONFIG_PACKAGE_MAC80211_MESH \
55 CONFIG_PACKAGE_ATH_DEBUG \
56 CONFIG_PACKAGE_ATH_DFS \
57 CONFIG_PACKAGE_B43_DEBUG \
58 CONFIG_PACKAGE_B43_PIO \
59 CONFIG_PACKAGE_B43_PHY_G \
60 CONFIG_PACKAGE_B43_PHY_N \
61 CONFIG_PACKAGE_B43_PHY_LP \
62 CONFIG_PACKAGE_B43_PHY_HT \
63 CONFIG_PACKAGE_B43_BUSES_BCMA_AND_SSB \
64 CONFIG_PACKAGE_B43_BUSES_BCMA \
65 CONFIG_PACKAGE_B43_BUSES_SSB \
66 CONFIG_PACKAGE_RTLWIFI_DEBUG \
67 CONFIG_ATH_USER_REGD \
68
69 include $(INCLUDE_DIR)/package.mk
70
71 WMENU:=Wireless Drivers
72
73 define KernelPackage/mac80211/Default
74 SUBMENU:=$(WMENU)
75 URL:=https://wireless.wiki.kernel.org/
76 MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
77 endef
78
79 define KernelPackage/cfg80211
80 $(call KernelPackage/mac80211/Default)
81 TITLE:=cfg80211 - wireless configuration API
82 DEPENDS+= +iw
83 FILES:= \
84 $(PKG_BUILD_DIR)/compat/compat.ko \
85 $(PKG_BUILD_DIR)/net/wireless/cfg80211.ko
86 endef
87
88 define KernelPackage/cfg80211/description
89 cfg80211 is the Linux wireless LAN (802.11) configuration API.
90 endef
91
92 define KernelPackage/mac80211
93 $(call KernelPackage/mac80211/Default)
94 TITLE:=Linux 802.11 Wireless Networking Stack
95 DEPENDS+= +kmod-cfg80211 +hostapd-common
96 KCONFIG:=\
97 CONFIG_AVERAGE=y
98 FILES:= $(PKG_BUILD_DIR)/net/mac80211/mac80211.ko
99 MENU:=1
100 endef
101
102 define KernelPackage/mac80211/config
103 if PACKAGE_kmod-mac80211
104
105 config PACKAGE_MAC80211_DEBUGFS
106 bool "Export mac80211 internals in DebugFS"
107 select KERNEL_DEBUG_FS
108 default y
109 help
110 Select this to see extensive information about
111 the internal state of mac80211 in debugfs.
112
113 config PACKAGE_MAC80211_TRACING
114 bool "Enable tracing (mac80211 and supported drivers)"
115 select KERNEL_FTRACE
116 select KERNEL_ENABLE_DEFAULT_TRACERS
117 default n
118 help
119 Select this to enable tracing of mac80211 and
120 related wifi drivers (using trace-cmd).
121
122 config PACKAGE_MAC80211_MESH
123 bool "Enable 802.11s mesh support"
124 default y
125
126 endif
127 endef
128
129 define KernelPackage/mac80211/description
130 Generic IEEE 802.11 Networking Stack (mac80211)
131 endef
132
133 PKG_LINUX_FIRMWARE_NAME:=linux-firmware
134 PKG_LINUX_FIRMWARE_VERSION:=bbe4917c054eb0a73e250c6363341e3bf6725839
135 PKG_LINUX_FIRMWARE_SOURCE:=$(PKG_LINUX_FIRMWARE_NAME)-2015-12-07-$(PKG_LINUX_FIRMWARE_VERSION).tar.xz
136 PKG_LINUX_FIRMWARE_PROTO:=git
137 PKG_LINUX_FIRMWARE_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
138 PKG_LINUX_FIRMWARE_SUBDIR:=$(PKG_LINUX_FIRMWARE_NAME)-$(PKG_LINUX_FIRMWARE_VERSION)
139 #PKG_LINUX_FIRMWARE_MIRROR_MD5SUM:=e219333f01835c6e556875a9e0deb3f9
140
141 define Download/linux-firmware
142 FILE:=$(PKG_LINUX_FIRMWARE_SOURCE)
143 URL:=$(PKG_LINUX_FIRMWARE_SOURCE_URL)
144 MD5SUM:=$(PKG_LINUX_FIRMWARE_MD5SUM)
145 PROTO:=$(PKG_LINUX_FIRMWARE_PROTO)
146 VERSION:=$(PKG_LINUX_FIRMWARE_VERSION)
147 SUBDIR:=$(PKG_LINUX_FIRMWARE_SUBDIR)
148 MIRROR_MD5SUM:=$(PKG_LINUX_FIRMWARE_MIRROR_MD5SUM)
149 endef
150 $(eval $(call Download,linux-firmware))
151
152
153 define KernelPackage/adm8211
154 $(call KernelPackage/mac80211/Default)
155 TITLE:=ADMTek 8211 support
156 DEPENDS+=@PCI_SUPPORT +kmod-mac80211 +kmod-eeprom-93cx6
157 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/admtek/adm8211.ko
158 AUTOLOAD:=$(call AutoProbe,adm8211)
159 endef
160
161 define KernelPackage/ath/config
162 if PACKAGE_kmod-ath
163 config ATH_USER_REGD
164 bool "Force Atheros drivers to respect the user's regdomain settings"
165 help
166 Atheros' idea of regulatory handling is that the EEPROM of the card defines
167 the regulatory limits and the user is only allowed to restrict the settings
168 even further, even if the country allows frequencies or power levels that
169 are forbidden by the EEPROM settings.
170
171 Select this option if you want the driver to respect the user's decision about
172 regulatory settings.
173
174 config PACKAGE_ATH_DEBUG
175 bool "Atheros wireless debugging"
176 help
177 Say Y, if you want to debug atheros wireless drivers.
178 Only ath9k & ath10k make use of this.
179
180 config PACKAGE_ATH_DFS
181 bool "Enable DFS support"
182 default y
183 help
184 Dynamic frequency selection (DFS) is required for most of the 5 GHz band
185 channels in Europe, US, and Japan.
186
187 Select this option if you want to use such channels.
188
189 endif
190 endef
191
192 define KernelPackage/ath
193 $(call KernelPackage/mac80211/Default)
194 TITLE:=Atheros common driver part
195 DEPENDS+= @PCI_SUPPORT||USB_SUPPORT||TARGET_ar71xx||TARGET_ath25 +kmod-mac80211
196 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath.ko
197 MENU:=1
198 endef
199
200 define KernelPackage/ath/description
201 This module contains some common parts needed by Atheros Wireless drivers.
202 endef
203
204 define KernelPackage/ath5k
205 $(call KernelPackage/mac80211/Default)
206 TITLE:=Atheros 5xxx wireless cards support
207 URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath5k
208 DEPENDS+= @PCI_SUPPORT||@TARGET_ath25 +kmod-ath
209 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath5k/ath5k.ko
210 AUTOLOAD:=$(call AutoProbe,ath5k)
211 endef
212
213 define KernelPackage/ath5k/description
214 This module adds support for wireless adapters based on
215 Atheros 5xxx chipset.
216 endef
217
218 define KernelPackage/ath9k-common
219 $(call KernelPackage/mac80211/Default)
220 TITLE:=Atheros 802.11n wireless devices (common code for ath9k and ath9k_htc)
221 URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath9k
222 DEPENDS+= @PCI_SUPPORT||USB_SUPPORT||TARGET_ar71xx +kmod-ath +@DRIVER_11N_SUPPORT +@DRIVER_11W_SUPPORT +@KERNEL_RELAY
223 FILES:= \
224 $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_common.ko \
225 $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_hw.ko
226 endef
227
228 define KernelPackage/ath9k
229 $(call KernelPackage/mac80211/Default)
230 TITLE:=Atheros 802.11n PCI wireless cards support
231 URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath9k
232 DEPENDS+= @PCI_SUPPORT||TARGET_ar71xx +kmod-ath9k-common
233 FILES:= \
234 $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k.ko
235 AUTOLOAD:=$(call AutoProbe,ath9k)
236 endef
237
238 define KernelPackage/ath9k/description
239 This module adds support for wireless adapters based on
240 Atheros IEEE 802.11n AR5008 and AR9001 family of chipsets.
241 endef
242
243 define KernelPackage/ath9k/config
244
245 config ATH9K_SUPPORT_PCOEM
246 bool "Support chips used in PC OEM cards"
247 depends on PACKAGE_kmod-ath9k
248
249 endef
250
251 define KernelPackage/ath9k-htc
252 $(call KernelPackage/mac80211/Default)
253 TITLE:=Atheros 802.11n USB device support
254 URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath9k
255 DEPENDS+= @USB_SUPPORT +kmod-ath9k-common +kmod-usb-core
256 FILES:= \
257 $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
258 AUTOLOAD:=$(call AutoProbe,ath9k_htc)
259 endef
260
261 define KernelPackage/ath9k-htc/description
262 This module adds support for wireless adapters based on
263 Atheros USB AR9271 and AR7010 family of chipsets.
264 endef
265
266 define KernelPackage/ath10k
267 $(call KernelPackage/mac80211/Default)
268 TITLE:=Atheros 802.11ac wireless cards support
269 URL:=https://wireless.wiki.kernel.org/en/users/Drivers/ath10k
270 DEPENDS+= @PCI_SUPPORT +kmod-ath +@DRIVER_11N_SUPPORT +@DRIVER_11W_SUPPORT +@KERNEL_RELAY
271 FILES:= \
272 $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath10k/ath10k_core.ko \
273 $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath10k/ath10k_pci.ko
274 AUTOLOAD:=$(call AutoLoad,55,ath10k_core ath10k_pci)
275 endef
276
277 define KernelPackage/ath10k/description
278 This module adds support for wireless adapters based on
279 Atheros IEEE 802.11ac family of chipsets. For now only
280 PCI is supported.
281 endef
282
283 #Broadcom firmware
284 ifneq ($(CONFIG_B43_FW_6_30),)
285 PKG_B43_FWV4_NAME:=broadcom-wl
286 PKG_B43_FWV4_VERSION:=6.30.163.46
287 PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).wl_apsta.o
288 PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).tar.bz2
289 PKG_B43_FWV4_SOURCE_URL:=http://www.lwfinger.com/b43-firmware/
290 PKG_B43_FWV4_MD5SUM:=6fe97e9368d25342a1ab943d3cf3496d
291 else
292 ifneq ($(CONFIG_B43_FW_5_10),)
293 PKG_B43_FWV4_NAME:=broadcom-wl
294 PKG_B43_FWV4_VERSION:=5.10.56.27.3
295 PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/driver/wl_apsta/wl_prebuilt.o
296 PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)_mipsel.tar.bz2
297 PKG_B43_FWV4_SOURCE_URL:=http://mirror2.openwrt.org/sources/
298 PKG_B43_FWV4_MD5SUM:=3363e3a6b3d9d73c49dea870c7834eac
299 else
300 ifneq ($(CONFIG_B43_FW_4_178),)
301 PKG_B43_FWV4_NAME:=broadcom-wl
302 PKG_B43_FWV4_VERSION:=4.178.10.4
303 PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/linux/wl_apsta.o
304 PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).tar.bz2
305 PKG_B43_FWV4_SOURCE_URL:=http://mirror2.openwrt.org/sources/
306 PKG_B43_FWV4_MD5SUM:=14477e8cbbb91b11896affac9b219fdb
307 else
308 ifneq ($(CONFIG_B43_FW_5_100_138),)
309 PKG_B43_FWV4_NAME:=broadcom-wl
310 PKG_B43_FWV4_VERSION:=5.100.138
311 PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/linux/wl_apsta.o
312 PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).tar.bz2
313 PKG_B43_FWV4_SOURCE_URL:=http://www.lwfinger.com/b43-firmware/
314 PKG_B43_FWV4_MD5SUM:=f4e357b09eaf5d8b1f1920cf3493a555
315 else
316 PKG_B43_FWV4_NAME:=broadcom-wl
317 PKG_B43_FWV4_VERSION:=4.150.10.5
318 PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/driver/wl_apsta_mimo.o
319 PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).tar.bz2
320 PKG_B43_FWV4_SOURCE_URL:=http://mirror2.openwrt.org/sources/
321 PKG_B43_FWV4_MD5SUM:=0c6ba9687114c6b598e8019e262d9a60
322 endif
323 endif
324 endif
325 endif
326 ifneq ($(CONFIG_B43_OPENFIRMWARE),)
327 PKG_B43_FWV4_NAME:=broadcom-wl
328 PKG_B43_FWV4_VERSION:=5.2
329 PKG_B43_FWV4_OBJECT:=openfwwf-$(PKG_B43_FWV4_VERSION)
330 PKG_B43_FWV4_SOURCE:=openfwwf-$(PKG_B43_FWV4_VERSION).tar.gz
331 PKG_B43_FWV4_SOURCE_URL:=http://www.ing.unibs.it/openfwwf/firmware/
332 PKG_B43_FWV4_MD5SUM:=e045a135453274e439ae183f8498b0fa
333 endif
334
335
336 PKG_B43_FWV3_NAME:=wl_apsta
337 PKG_B43_FWV3_VERSION:=3.130.20.0
338 PKG_B43_FWV3_SOURCE:=$(PKG_B43_FWV3_NAME)-$(PKG_B43_FWV3_VERSION).o
339 PKG_B43_FWV3_SOURCE_URL:=http://downloads.openwrt.org/sources/
340 PKG_B43_FWV3_MD5SUM:=e08665c5c5b66beb9c3b2dd54aa80cb3
341
342 define Download/b43
343 FILE:=$(PKG_B43_FWV4_SOURCE)
344 URL:=$(PKG_B43_FWV4_SOURCE_URL)
345 MD5SUM:=$(PKG_B43_FWV4_MD5SUM)
346 endef
347 $(eval $(call Download,b43))
348
349 define Download/b43legacy
350 FILE:=$(PKG_B43_FWV3_SOURCE)
351 URL:=$(PKG_B43_FWV3_SOURCE_URL)
352 MD5SUM:=$(PKG_B43_FWV3_MD5SUM)
353 endef
354 $(eval $(call Download,b43legacy))
355
356
357 define KernelPackage/b43
358 $(call KernelPackage/mac80211/Default)
359 TITLE:=Broadcom 43xx wireless support
360 URL:=https://wireless.wiki.kernel.org/en/users/drivers/b43
361 KCONFIG:= \
362 CONFIG_HW_RANDOM=y
363 # Depend on PCI_SUPPORT to make sure we can select kmod-bcma or kmod-ssb
364 DEPENDS += \
365 @PCI_SUPPORT +kmod-mac80211 \
366 $(if $(CONFIG_PACKAGE_B43_USE_SSB),+kmod-ssb) \
367 $(if $(CONFIG_PACKAGE_B43_USE_BCMA),+kmod-bcma)
368 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/broadcom/b43/b43.ko
369 AUTOLOAD:=$(call AutoProbe,b43)
370 MENU:=1
371 endef
372
373 define KernelPackage/b43/config
374
375 config PACKAGE_B43_USE_SSB
376 select PACKAGE_kmod-ssb
377 tristate
378 depends on !TARGET_brcm47xx && !TARGET_brcm63xx
379 default PACKAGE_kmod-b43 if PACKAGE_B43_BUSES_BCMA_AND_SSB
380 default PACKAGE_kmod-b43 if PACKAGE_B43_BUSES_SSB
381
382 config PACKAGE_B43_USE_BCMA
383 select PACKAGE_kmod-bcma
384 tristate
385 depends on !TARGET_brcm47xx && !TARGET_bcm53xx
386 default PACKAGE_kmod-b43 if PACKAGE_B43_BUSES_BCMA_AND_SSB
387 default PACKAGE_kmod-b43 if PACKAGE_B43_BUSES_BCMA
388
389 if PACKAGE_kmod-b43
390
391 choice
392 prompt "b43 firmware version"
393 default B43_FW_5_100_138
394 help
395 This option allows you to select the version of the b43 firmware.
396
397 config B43_FW_4_150
398 bool "Firmware 410.2160 from driver 4.150.10.5 (old stable)"
399 help
400 Old stable firmware for BCM43xx devices.
401
402 If unsure, select this.
403
404 config B43_FW_4_178
405 bool "Firmware 478.104 from driver 4.178.10.4"
406 help
407 Older firmware for BCM43xx devices.
408
409 If unsure, select the "stable" firmware.
410
411 config B43_FW_5_10
412 bool "Firmware 508.1084 from driver 5.10.56.27"
413 help
414 Older firmware for BCM43xx devices.
415
416 If unsure, select the "stable" firmware.
417
418 config B43_FW_5_100_138
419 bool "Firmware 666.2 from driver 5.100.138 (stable)"
420 help
421 The currently default firmware for BCM43xx devices.
422
423 This firmware currently gets most of the testing and is needed for some N-PHY devices.
424
425 If unsure, select the this firmware.
426
427 config B43_FW_6_30
428 bool "Firmware 784.2 from driver 6.30.163.46 (experimental)"
429 help
430 Newer experimental firmware for BCM43xx devices.
431
432 This firmware is mostly untested.
433
434 If unsure, select the "stable" firmware.
435
436 config B43_OPENFIRMWARE
437 bool "Open FirmWare for WiFi networks"
438 help
439 Opensource firmware for BCM43xx devices.
440
441 Do _not_ select this, unless you know what you are doing.
442 The Opensource firmware is not suitable for embedded devices, yet.
443 It does not support QoS, which is bad for AccessPoints.
444 It does not support hardware crypto acceleration, which is a showstopper
445 for embedded devices with low CPU resources.
446
447 If unsure, select the "stable" firmware.
448
449 endchoice
450
451 config B43_FW_SQUASH
452 bool "Remove unnecessary firmware files"
453 depends on !B43_OPENFIRMWARE
454 default y
455 help
456 This options allows you to remove unnecessary b43 firmware files
457 from the final rootfs image. This can reduce the rootfs size by
458 up to 200k.
459
460 If unsure, say Y.
461
462 config B43_FW_SQUASH_COREREVS
463 string "Core revisions to include"
464 depends on B43_FW_SQUASH
465 default "5,6,7,8,9,10,11,13,15" if TARGET_brcm47xx_legacy
466 default "16,28,29,30" if TARGET_brcm47xx_mips74k
467 default "5,6,7,8,9,10,11,13,15,16,28,29,30"
468 help
469 This is a comma seperated list of core revision numbers.
470
471 Example (keep files for rev5 only):
472 5
473
474 Example (keep files for rev5 and rev11):
475 5,11
476
477 config B43_FW_SQUASH_PHYTYPES
478 string "PHY types to include"
479 depends on B43_FW_SQUASH
480 default "G,N,LP" if TARGET_brcm47xx_legacy
481 default "N,HT" if TARGET_brcm47xx_mips74k
482 default "G,N,LP,HT"
483 help
484 This is a comma seperated list of PHY types:
485 A => A-PHY
486 AG => Dual A-PHY G-PHY
487 G => G-PHY
488 LP => LP-PHY
489 N => N-PHY
490 HT => HT-PHY
491 LCN => LCN-PHY
492 LCN40 => LCN40-PHY
493 AC => AC-PHY
494
495 Example (keep files for G-PHY only):
496 G
497
498 Example (keep files for G-PHY and N-PHY):
499 G,N
500
501 choice
502 prompt "Supported buses"
503 default PACKAGE_B43_BUSES_BCMA_AND_SSB
504 help
505 This allows choosing buses that b43 should support.
506
507 config PACKAGE_B43_BUSES_BCMA_AND_SSB
508 depends on !TARGET_brcm47xx_legacy && !TARGET_brcm47xx_mips74k && !TARGET_bcm53xx
509 bool "BCMA and SSB"
510
511 config PACKAGE_B43_BUSES_BCMA
512 depends on !TARGET_brcm47xx_legacy
513 bool "BCMA only"
514
515 config PACKAGE_B43_BUSES_SSB
516 depends on !TARGET_brcm47xx_mips74k && !TARGET_bcm53xx
517 bool "SSB only"
518
519 endchoice
520
521 config PACKAGE_B43_DEBUG
522 bool "Enable debug output and debugfs for b43"
523 default n
524 help
525 Enable additional debug output and runtime sanity checks for b43
526 and enables the debugfs interface.
527
528 If unsure, say N.
529
530 config PACKAGE_B43_PIO
531 bool "Enable support for PIO transfer mode"
532 default n
533 help
534 Enable support for using PIO instead of DMA. Unless you have DMA
535 transfer problems you don't need this.
536
537 If unsure, say N.
538
539 config PACKAGE_B43_PHY_G
540 bool "Enable support for G-PHYs"
541 default n if TARGET_brcm47xx_mips74k
542 default y
543 help
544 Enable support for G-PHY. This includes support for the following devices:
545 PCI: BCM4306, BCM4311, BCM4318
546 SoC: BCM5352E, BCM4712
547
548 If unsure, say Y.
549
550 config PACKAGE_B43_PHY_N
551 bool "Enable support for N-PHYs"
552 default y
553 help
554 Enable support for N-PHY. This includes support for the following devices:
555 PCI: BCM4321, BCM4322, BCM43222, BCM43224, BCM43225
556 SoC: BCM4716, BCM4717, BCM4718
557
558 Currently only 11g speed is available.
559
560 If unsure, say Y.
561
562 config PACKAGE_B43_PHY_LP
563 bool "Enable support for LP-PHYs"
564 default n if TARGET_brcm47xx_mips74k
565 default y
566 help
567 Enable support for LP-PHY. This includes support for the following devices:
568 PCI: BCM4312
569 SoC: BCM5354
570
571 If unsure, say Y.
572
573 config PACKAGE_B43_PHY_HT
574 bool "Enable support for HT-PHYs"
575 default n if TARGET_brcm47xx_legacy
576 default y
577 help
578 Enable support for HT-PHY. This includes support for the following devices:
579 PCI: BCM4331
580
581 Currently only 11g speed is available.
582
583 If unsure, say Y.
584
585 config PACKAGE_B43_PHY_LCN
586 bool "Enable support for LCN-PHYs"
587 depends on BROKEN
588 default n
589 help
590 Currently broken.
591
592 If unsure, say N.
593
594 endif
595 endef
596
597 define KernelPackage/b43/description
598 Kernel module for Broadcom 43xx wireless support (mac80211 stack) new
599 endef
600
601 define KernelPackage/b43legacy
602 $(call KernelPackage/mac80211/Default)
603 TITLE:=Broadcom 43xx-legacy wireless support
604 URL:=https://wireless.wiki.kernel.org/en/users/drivers/b43
605 KCONFIG:= \
606 CONFIG_HW_RANDOM=y
607 DEPENDS+= +kmod-mac80211 +!(TARGET_brcm47xx||TARGET_brcm63xx):kmod-ssb
608 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/broadcom/b43legacy/b43legacy.ko
609 AUTOLOAD:=$(call AutoProbe,b43legacy)
610 MENU:=1
611 endef
612
613 define KernelPackage/b43legacy/config
614 if PACKAGE_kmod-b43legacy
615
616 config B43LEGACY_FW_SQUASH
617 bool "Remove unnecessary firmware files"
618 default y
619 help
620 This options allows you to remove unnecessary b43legacy firmware files
621 from the final rootfs image. This can reduce the rootfs size by
622 up to 50k.
623
624 If unsure, say Y.
625
626 config B43LEGACY_FW_SQUASH_COREREVS
627 string "Core revisions to include"
628 depends on B43LEGACY_FW_SQUASH
629 default "1,2,3,4"
630 help
631 This is a comma seperated list of core revision numbers.
632
633 Example (keep files for rev4 only):
634 4
635
636 Example (keep files for rev2 and rev4):
637 2,4
638
639 endif
640 endef
641
642 define KernelPackage/b43legacy/description
643 Kernel module for Broadcom 43xx-legacy wireless support (mac80211 stack) new
644 endef
645
646
647 define KernelPackage/brcmutil
648 $(call KernelPackage/mac80211/Default)
649 TITLE:=Broadcom IEEE802.11n common driver parts
650 URL:=https://wireless.wiki.kernel.org/en/users/drivers/brcm80211
651 DEPENDS+=@PCI_SUPPORT||USB_SUPPORT
652 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/broadcom/brcm80211/brcmutil/brcmutil.ko
653 AUTOLOAD:=$(call AutoProbe,brcmutil)
654 MENU:=1
655 endef
656
657 define KernelPackage/brcmutil/description
658 This module contains some common parts needed by Broadcom Wireless drivers brcmsmac and brcmfmac.
659 endef
660
661 define KernelPackage/brcmutil/config
662 if PACKAGE_kmod-brcmutil
663
664 config PACKAGE_BRCM80211_DEBUG
665 bool "Broadcom wireless driver debugging"
666 help
667 Say Y, if you want to debug brcmsmac and brcmfmac wireless driver.
668
669 endif
670 endef
671
672 PKG_BRCMSMAC_FW_NAME:=broadcom-wl
673 PKG_BRCMSMAC_FW_VERSION:=5.100.138
674 PKG_BRCMSMAC_FW_OBJECT:=$(PKG_BRCMSMAC_FW_NAME)-$(PKG_BRCMSMAC_FW_VERSION)/linux/wl_apsta.o
675 PKG_BRCMSMAC_FW_SOURCE:=$(PKG_BRCMSMAC_FW_NAME)-$(PKG_BRCMSMAC_FW_VERSION).tar.bz2
676 PKG_BRCMSMAC_FW_SOURCE_URL:=http://www.lwfinger.com/b43-firmware/
677 PKG_BRCMSMAC_FW_MD5SUM:=f4e357b09eaf5d8b1f1920cf3493a555
678
679 define Download/brcmsmac
680 FILE:=$(PKG_BRCMSMAC_FW_SOURCE)
681 URL:=$(PKG_BRCMSMAC_FW_SOURCE_URL)
682 MD5SUM:=$(PKG_BRCMSMAC_FW_MD5SUM)
683 endef
684 $(eval $(call Download,brcmsmac))
685
686 define KernelPackage/brcmsmac
687 $(call KernelPackage/mac80211/Default)
688 TITLE:=Broadcom IEEE802.11n PCIe SoftMAC WLAN driver
689 URL:=https://wireless.wiki.kernel.org/en/users/drivers/brcm80211
690 DEPENDS+= +kmod-mac80211 +@DRIVER_11N_SUPPORT +!TARGET_brcm47xx:kmod-bcma +kmod-lib-cordic +kmod-lib-crc8 +kmod-brcmutil
691 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/broadcom/brcm80211/brcmsmac/brcmsmac.ko
692 AUTOLOAD:=$(call AutoProbe,brcmsmac)
693 MENU:=1
694 endef
695
696 define KernelPackage/brcmsmac/description
697 Kernel module for Broadcom IEEE802.11n PCIe Wireless cards
698 endef
699
700 define KernelPackage/brcmsmac/config
701 if PACKAGE_kmod-brcmsmac
702
703 config BRCMSMAC_USE_FW_FROM_WL
704 bool "Use firmware extracted from broadcom proprietary driver"
705 default y
706 help
707 Instead of using the official brcmsmac firmware a firmware
708 version 666.2 extracted from the proprietary Broadcom driver
709 is used. This is needed to get core rev 17 used in bcm4716
710 to work.
711
712 If unsure, say Y.
713
714 endif
715 endef
716
717
718 define KernelPackage/brcmfmac
719 $(call KernelPackage/mac80211/Default)
720 TITLE:=Broadcom IEEE802.11n USB FullMAC WLAN driver
721 URL:=https://wireless.wiki.kernel.org/en/users/drivers/brcm80211
722 DEPENDS+= @USB_SUPPORT +kmod-cfg80211 +@DRIVER_11N_SUPPORT +kmod-brcmutil +BRCMFMAC_SDIO:kmod-mmc +BRCMFMAC_USB:kmod-usb-core
723 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko
724 AUTOLOAD:=$(call AutoProbe,brcmfmac)
725 endef
726
727 define KernelPackage/brcmfmac/description
728 Kernel module for Broadcom IEEE802.11n USB Wireless cards
729 endef
730
731 define KernelPackage/brcmfmac/config
732 if PACKAGE_kmod-brcmfmac
733
734 config BRCMFMAC_SDIO
735 bool "Enable SDIO bus interface support"
736 default n
737 help
738 Enable support for cards attached to an SDIO bus.
739 Select this option only if you are sure that your
740 board has a Broadcom wireless chip atacched to
741 that bus.
742
743 config BRCMFMAC_USB
744 bool "Enable USB bus interface support"
745 depends on USB_SUPPORT
746 default y
747 help
748 Supported USB connected chipsets:
749 BCM43235, BCM43236, BCM43238 (all in revision 3 only)
750 BCM43143, BCM43242, BCM43566, BCM43569
751
752 config BRCMFMAC_PCIE
753 bool "Enable PCIE bus interface support"
754 depends on PCI_SUPPORT
755 default y
756 help
757 Supported PCIe connected chipsets:
758 BCM4354, BCM4356, BCM43567, BCM43570, BCM43602
759
760 endif
761 endef
762
763
764 define KernelPackage/carl9170
765 $(call KernelPackage/mac80211/Default)
766 TITLE:=Driver for Atheros AR9170 USB sticks
767 DEPENDS:=@USB_SUPPORT +kmod-mac80211 +kmod-ath +kmod-usb-core +kmod-input-core +@DRIVER_11N_SUPPORT
768 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/carl9170/carl9170.ko
769 AUTOLOAD:=$(call AutoProbe,carl9170)
770 endef
771
772
773 define KernelPackage/hermes
774 $(call KernelPackage/mac80211/Default)
775 TITLE:=Hermes 802.11b chipset support
776 DEPENDS:=@PCI_SUPPORT||PCMCIA_SUPPORT +kmod-cfg80211 +@DRIVER_WEXT_SUPPORT +kmod-crypto-michael-mic
777 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intersil/orinoco/orinoco.ko
778 AUTOLOAD:=$(call AutoProbe,orinoco)
779 endef
780
781 define KernelPackage/hermes/description
782 Kernel support for Hermes 802.11b chipsets
783 endef
784
785 define KernelPackage/hermes-pci
786 $(call KernelPackage/mac80211/Default)
787 TITLE:=Intersil Prism 2.5 PCI support
788 DEPENDS:=@PCI_SUPPORT +kmod-hermes
789 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intersil/orinoco/orinoco_pci.ko
790 AUTOLOAD:=$(call AutoProbe,orinoco_pci)
791 endef
792
793 define KernelPackage/hermes-pci/description
794 Kernel modules for Intersil Prism 2.5 PCI support
795 endef
796
797 define KernelPackage/hermes-plx
798 $(call KernelPackage/mac80211/Default)
799 TITLE:=PLX9052 based PCI adaptor
800 DEPENDS:=@PCI_SUPPORT +kmod-hermes
801 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intersil/orinoco/orinoco_plx.ko
802 AUTOLOAD:=$(call AutoProbe,orinoco_plx)
803 endef
804
805 define KernelPackage/hermes-plx/description
806 Kernel modules for Hermes in PLX9052 based PCI adaptors
807 endef
808
809 define KernelPackage/hermes-pcmcia
810 $(call KernelPackage/mac80211/Default)
811 TITLE:=Hermes based PCMCIA adaptors
812 DEPENDS:=@PCMCIA_SUPPORT +kmod-hermes @BROKEN
813 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intersil/orinoco/orinoco_cs.ko
814 AUTOLOAD:=$(call AutoProbe,orinoco_cs)
815 endef
816
817 define KernelPackage/hermes-pcmcia/description
818 Kernel modules for Hermes based PCMCIA adaptors
819 endef
820
821
822 define KernelPackage/iwlwifi
823 $(call KernelPackage/mac80211/Default)
824 DEPENDS:= +kmod-mac80211 @PCI_SUPPORT +@DRIVER_11N_SUPPORT +iwlwifi-firmware
825 TITLE:=Intel AGN Wireless support
826 FILES:= \
827 $(PKG_BUILD_DIR)/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko \
828 $(PKG_BUILD_DIR)/drivers/net/wireless/intel/iwlwifi/dvm/iwldvm.ko \
829 $(PKG_BUILD_DIR)/drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.ko
830 AUTOLOAD:=$(call AutoProbe,iwlwifi iwldvm iwlmvm)
831 MENU:=1
832 endef
833
834 define KernelPackage/iwlwifi/description
835 iwlwifi kernel module for
836 Intel Wireless WiFi Link 6250AGN Adapter
837 Intel 6000 Series Wi-Fi Adapters (6200AGN and 6300AGN)
838 Intel WiFi Link 1000BGN
839 Intel Wireless WiFi 5150AGN
840 Intel Wireless WiFi 5100AGN, 5300AGN, and 5350AGN
841 Intel 6005 Series Wi-Fi Adapters
842 Intel 6030 Series Wi-Fi Adapters
843 Intel Wireless WiFi Link 6150BGN 2 Adapter
844 Intel 100 Series Wi-Fi Adapters (100BGN and 130BGN)
845 Intel 2000 Series Wi-Fi Adapters
846 Intel 7260 Wi-Fi Adapter
847 Intel 3160 Wi-Fi Adapter
848 Intel 7265 Wi-Fi Adapter
849 Intel 8260 Wi-Fi Adapter
850 Intel 3165 Wi-Fi Adapter
851 endef
852
853 define KernelPackage/iwlwifi/config
854 if PACKAGE_kmod-iwlwifi
855
856 config PACKAGE_IWLWIFI_DEBUG
857 bool "Enable full debugging output in the iwlwifi driver"
858 default n
859 help
860 This option will enable debug tracing output for the iwlwifi drivers
861
862 This will result in the kernel module being ~100k larger. You can
863 control which debug output is sent to the kernel log by setting the
864 value in
865
866 /sys/module/iwlwifi/parameters/debug
867
868 This entry will only exist if this option is enabled.
869
870 To set a value, simply echo an 8-byte hex value to the same file:
871
872 % echo 0x43fff > /sys/module/iwlwifi/parameters/debug
873
874 You can find the list of debug mask values in:
875 drivers/net/wireless/intel/iwlwifi/iwl-debug.h
876
877 If this is your first time using this driver, you should say Y here
878 as the debug information can assist others in helping you resolve
879 any problems you may encounter.
880
881 config PACKAGE_IWLWIFI_DEBUGFS
882 bool "iwlwifi debugfs support"
883 depends on PACKAGE_MAC80211_DEBUGFS
884 default n
885 help
886 Enable creation of debugfs files for the iwlwifi drivers. This
887 is a low-impact option that allows getting insight into the
888 driver's state at runtime.
889
890 endif
891 endef
892
893 define KernelPackage/iwl-legacy
894 $(call KernelPackage/mac80211/Default)
895 DEPENDS:= +kmod-mac80211 @PCI_SUPPORT
896 TITLE:=Intel legacy Wireless support
897 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intel/iwlegacy/iwlegacy.ko
898 AUTOLOAD:=$(call AutoProbe,iwlegacy)
899 endef
900
901 define KernelPackage/iwl-legacy/description
902 iwl-legacy kernel module for legacy Intel wireless support
903 endef
904
905 define KernelPackage/iwl3945
906 $(call KernelPackage/mac80211/Default)
907 DEPENDS:= +kmod-mac80211 +kmod-iwl-legacy +iwl3945-firmware
908 TITLE:=Intel iwl3945 Wireless support
909 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intel/iwlegacy/iwl3945.ko
910 AUTOLOAD:=$(call AutoProbe,iwl3945)
911 endef
912
913 define KernelPackage/iwl3945/description
914 iwl3945 kernel module for Intel 3945 support
915 endef
916
917 define KernelPackage/iwl4965
918 $(call KernelPackage/mac80211/Default)
919 DEPENDS:= +kmod-mac80211 +kmod-iwl-legacy +@DRIVER_11N_SUPPORT +iwl4965-firmware
920 TITLE:=Intel iwl4965 Wireless support
921 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intel/iwlegacy/iwl4965.ko
922 AUTOLOAD:=$(call AutoProbe,iwl4965)
923 endef
924
925 define KernelPackage/iwl4965/description
926 iwl4965 kernel module for Intel 4965 support
927 endef
928
929
930 define KernelPackage/lib80211
931 $(call KernelPackage/mac80211/Default)
932 TITLE:=802.11 Networking stack
933 DEPENDS:=+kmod-cfg80211
934 FILES:= \
935 $(PKG_BUILD_DIR)/net/wireless/lib80211.ko \
936 $(PKG_BUILD_DIR)/net/wireless/lib80211_crypt_wep.ko \
937 $(PKG_BUILD_DIR)/net/wireless/lib80211_crypt_ccmp.ko \
938 $(PKG_BUILD_DIR)/net/wireless/lib80211_crypt_tkip.ko
939 AUTOLOAD:=$(call AutoProbe, \
940 lib80211 \
941 lib80211_crypt_wep \
942 lib80211_crypt_ccmp \
943 lib80211_crypt_tkip \
944 )
945 endef
946
947 define KernelPackage/lib80211/description
948 Kernel modules for 802.11 Networking stack
949 Includes:
950 - lib80211
951 - lib80211_crypt_wep
952 - lib80211_crypt_tkip
953 - lib80211_crytp_ccmp
954 endef
955
956
957 define KernelPackage/libipw
958 $(call KernelPackage/mac80211/Default)
959 TITLE:=libipw for ipw2100 and ipw2200
960 DEPENDS:=@PCI_SUPPORT +kmod-crypto-michael-mic +kmod-lib80211 +kmod-cfg80211 +@DRIVER_WEXT_SUPPORT @!BIG_ENDIAN
961 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intel/ipw2x00/libipw.ko
962 AUTOLOAD:=$(call AutoProbe,libipw)
963 endef
964
965 define KernelPackage/libipw/description
966 Hardware independent IEEE 802.11 networking stack for ipw2100 and ipw2200.
967 endef
968
969 IPW2100_NAME:=ipw2100-fw
970 IPW2100_VERSION:=1.3
971
972 define Download/ipw2100
973 URL:=http://bughost.org/firmware/
974 FILE:=$(IPW2100_NAME)-$(IPW2100_VERSION).tgz
975 MD5SUM=46aa75bcda1a00efa841f9707bbbd113
976 endef
977 $(eval $(call Download,ipw2100))
978
979 define KernelPackage/ipw2100
980 $(call KernelPackage/mac80211/Default)
981 TITLE:=Intel IPW2100 driver
982 DEPENDS:=@PCI_SUPPORT +kmod-libipw
983 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intel/ipw2x00/ipw2100.ko
984 AUTOLOAD:=$(call AutoProbe,ipw2100)
985 endef
986
987 define KernelPackage/ipw2100/description
988 Kernel support for Intel IPW2100
989 Includes:
990 - ipw2100
991 endef
992
993 IPW2200_NAME:=ipw2200-fw
994 IPW2200_VERSION:=3.1
995
996 define Download/ipw2200
997 URL:=http://bughost.org/firmware/
998 FILE:=$(IPW2200_NAME)-$(IPW2200_VERSION).tgz
999 MD5SUM=eaba788643c7cc7483dd67ace70f6e99
1000 endef
1001 $(eval $(call Download,ipw2200))
1002
1003 define KernelPackage/ipw2200
1004 $(call KernelPackage/mac80211/Default)
1005 TITLE:=Intel IPW2200 driver
1006 DEPENDS:=@PCI_SUPPORT +kmod-libipw
1007 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intel/ipw2x00/ipw2200.ko
1008 AUTOLOAD:=$(call AutoProbe,ipw2200)
1009 endef
1010
1011 define KernelPackage/ipw2200/description
1012 Kernel support for Intel IPW2200
1013 Includes:
1014 - ipw2200
1015 endef
1016
1017
1018 define KernelPackage/libertas-usb
1019 $(call KernelPackage/mac80211/Default)
1020 DEPENDS+= @USB_SUPPORT +kmod-cfg80211 +kmod-usb-core +kmod-lib80211 +@DRIVER_WEXT_SUPPORT +libertas-usb-firmware
1021 TITLE:=Marvell 88W8015 Wireless Driver
1022 FILES:= \
1023 $(PKG_BUILD_DIR)/drivers/net/wireless/marvell/libertas/libertas.ko \
1024 $(PKG_BUILD_DIR)/drivers/net/wireless/marvell/libertas/usb8xxx.ko
1025 AUTOLOAD:=$(call AutoProbe,libertas usb8xxx)
1026 endef
1027
1028 define KernelPackage/libertas-sdio
1029 $(call KernelPackage/mac80211/Default)
1030 DEPENDS+= +kmod-cfg80211 +kmod-lib80211 +kmod-mmc +@DRIVER_WEXT_SUPPORT @!TARGET_uml +libertas-sdio-firmware
1031 TITLE:=Marvell 88W8686 Wireless Driver
1032 FILES:= \
1033 $(PKG_BUILD_DIR)/drivers/net/wireless/marvell/libertas/libertas.ko \
1034 $(PKG_BUILD_DIR)/drivers/net/wireless/marvell/libertas/libertas_sdio.ko
1035 AUTOLOAD:=$(call AutoProbe,libertas libertas_sdio)
1036 endef
1037
1038 define KernelPackage/mac80211-hwsim
1039 $(call KernelPackage/mac80211/Default)
1040 TITLE:=mac80211 HW simulation device
1041 DEPENDS+= +kmod-mac80211 +@DRIVER_11N_SUPPORT
1042 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/mac80211_hwsim.ko
1043 AUTOLOAD:=$(call AutoProbe,mac80211_hwsim)
1044 endef
1045
1046
1047 define KernelPackage/mt7601u
1048 $(call KernelPackage/mac80211/Default)
1049 TITLE:=MT7601U-based USB dongles Wireless Driver
1050 DEPENDS+= +kmod-mac80211 +@DRIVER_11N_SUPPORT @USB_SUPPORT +kmod-usb-core
1051 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/mediatek/mt7601u/mt7601u.ko
1052 AUTOLOAD:=$(call AutoProbe,mt7601u)
1053 endef
1054
1055
1056 define KernelPackage/mwl8k
1057 $(call KernelPackage/mac80211/Default)
1058 TITLE:=Driver for Marvell TOPDOG 802.11 Wireless cards
1059 URL:=http://wireless.kernel.org/en/users/Drivers/mwl8k
1060 DEPENDS+= @PCI_SUPPORT +kmod-mac80211 +@DRIVER_11N_SUPPORT +mwl8k-firmware
1061 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/marvell/mwl8k.ko
1062 AUTOLOAD:=$(call AutoProbe,mwl8k)
1063 endef
1064
1065 define KernelPackage/mwl8k/description
1066 Kernel modules for Marvell TOPDOG 802.11 Wireless cards
1067 endef
1068
1069
1070 define KernelPackage/mwifiex-pcie
1071 $(call KernelPackage/mac80211/Default)
1072 TITLE:=Driver for Marvell 802.11n/802.11ac PCIe Wireless cards
1073 URL:=http://wireless.kernel.org/en/users/Drivers/mwifiex
1074 DEPENDS+= @PCI_SUPPORT +kmod-mac80211 +@DRIVER_11N_SUPPORT +mwifiex-pcie-firmware
1075 FILES:= \
1076 $(PKG_BUILD_DIR)/drivers/net/wireless/marvell/mwifiex/mwifiex.ko \
1077 $(PKG_BUILD_DIR)/drivers/net/wireless/marvell/mwifiex/mwifiex_pcie.ko
1078 AUTOLOAD:=$(call AutoProbe,mwifiex_pcie)
1079 endef
1080
1081 define KernelPackage/mwifiex-pcie/description
1082 Kernel modules for Marvell 802.11n/802.11ac PCIe Wireless cards
1083 endef
1084
1085
1086 # Prism54 drivers
1087 P54PCIFW:=2.13.12.0.arm
1088 P54USBFW:=2.13.24.0.lm87.arm
1089 P54SPIFW:=2.13.0.0.a.13.14.arm
1090
1091 define Download/p54usb
1092 FILE:=$(P54USBFW)
1093 URL:=http://daemonizer.de/prism54/prism54-fw/fw-usb
1094 MD5SUM:=8e8ab005a4f8f0123bcdc51bc25b47f6
1095 endef
1096 $(eval $(call Download,p54usb))
1097
1098 define Download/p54pci
1099 FILE:=$(P54PCIFW)
1100 URL:=http://daemonizer.de/prism54/prism54-fw/fw-softmac
1101 MD5SUM:=ff7536af2092b1c4b21315bd103ef4c4
1102 endef
1103 $(eval $(call Download,p54pci))
1104
1105 define Download/p54spi
1106 FILE:=$(P54SPIFW)
1107 URL:=http://daemonizer.de/prism54/prism54-fw/stlc4560
1108 MD5SUM:=42661f8ecbadd88012807493f596081d
1109 endef
1110 $(eval $(call Download,p54spi))
1111
1112 define KernelPackage/p54/Default
1113 $(call KernelPackage/mac80211/Default)
1114 TITLE:=Prism54 Drivers
1115 endef
1116
1117 define KernelPackage/p54/description
1118 Kernel module for Prism54 chipsets (mac80211)
1119 endef
1120
1121 define KernelPackage/p54-common
1122 $(call KernelPackage/p54/Default)
1123 DEPENDS+= @PCI_SUPPORT||@USB_SUPPORT||@TARGET_omap24xx +kmod-mac80211 +kmod-lib-crc-ccitt
1124 TITLE+= (COMMON)
1125 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intersil/p54/p54common.ko
1126 endef
1127
1128 define KernelPackage/p54-pci
1129 $(call KernelPackage/p54/Default)
1130 TITLE+= (PCI)
1131 DEPENDS+= @PCI_SUPPORT +kmod-p54-common
1132 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intersil/p54/p54pci.ko
1133 AUTOLOAD:=$(call AutoProbe,p54pci)
1134 endef
1135
1136 define KernelPackage/p54-usb
1137 $(call KernelPackage/p54/Default)
1138 TITLE+= (USB)
1139 DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-p54-common
1140 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intersil/p54/p54usb.ko
1141 AUTOLOAD:=$(call AutoProbe,p54usb)
1142 endef
1143
1144 define KernelPackage/p54-spi
1145 $(call KernelPackage/p54/Default)
1146 TITLE+= (SPI)
1147 DEPENDS+= @TARGET_omap24xx +kmod-p54-common
1148 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intersil/p54/p54spi.ko
1149 AUTOLOAD:=$(call AutoProbe,p54spi)
1150 endef
1151
1152 define KernelPackage/rt2x00/Default
1153 $(call KernelPackage/mac80211/Default)
1154 TITLE:=Ralink Drivers for RT2x00 cards
1155 endef
1156
1157 define KernelPackage/rt2x00-lib
1158 $(call KernelPackage/rt2x00/Default)
1159 DEPENDS+= @(PCI_SUPPORT||USB_SUPPORT||TARGET_ramips) +kmod-mac80211 +kmod-lib-crc-itu-t
1160 TITLE+= (LIB)
1161 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt2x00lib.ko
1162 MENU:=1
1163 endef
1164
1165 define KernelPackage/rt2x00-lib/config
1166 if PACKAGE_kmod-rt2x00-lib
1167
1168 config PACKAGE_RT2X00_LIB_DEBUGFS
1169 bool "Enable rt2x00 debugfs support"
1170 depends on PACKAGE_MAC80211_DEBUGFS
1171 help
1172 Enable creation of debugfs files for the rt2x00 drivers.
1173 These debugfs files support both reading and writing of the
1174 most important register types of the rt2x00 hardware.
1175
1176 config PACKAGE_RT2X00_DEBUG
1177 bool "Enable rt2x00 debug output"
1178 help
1179 Enable debugging output for all rt2x00 modules
1180
1181 endif
1182 endef
1183
1184 define KernelPackage/rt2x00-mmio
1185 $(call KernelPackage/rt2x00/Default)
1186 DEPENDS+= @(PCI_SUPPORT||TARGET_ramips) +kmod-rt2x00-lib +kmod-eeprom-93cx6
1187 HIDDEN:=1
1188 TITLE+= (MMIO)
1189 FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt2x00mmio.ko
1190 endef
1191
1192 define KernelPackage/rt2x00-pci
1193 $(call KernelPackage/rt2x00/Default)
1194 DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-mmio +kmod-rt2x00-lib
1195 HIDDEN:=1
1196 TITLE+= (PCI)
1197 FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt2x00pci.ko
1198 AUTOLOAD:=$(call AutoProbe,rt2x00pci)
1199 endef
1200
1201 define KernelPackage/rt2x00-usb
1202 $(call KernelPackage/rt2x00/Default)
1203 DEPENDS+= @USB_SUPPORT +kmod-rt2x00-lib +kmod-usb-core
1204 HIDDEN:=1
1205 TITLE+= (USB)
1206 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt2x00usb.ko
1207 AUTOLOAD:=$(call AutoProbe,rt2x00usb)
1208 endef
1209
1210 define KernelPackage/rt2800-lib
1211 $(call KernelPackage/rt2x00/Default)
1212 DEPENDS+= @(PCI_SUPPORT||USB_SUPPORT||TARGET_ramips) +kmod-rt2x00-lib +kmod-lib-crc-ccitt +@DRIVER_11N_SUPPORT
1213 HIDDEN:=1
1214 TITLE+= (rt2800 LIB)
1215 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt2800lib.ko
1216 endef
1217
1218 define KernelPackage/rt2400-pci
1219 $(call KernelPackage/rt2x00/Default)
1220 DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci
1221 TITLE+= (RT2400 PCI)
1222 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt2400pci.ko
1223 AUTOLOAD:=$(call AutoProbe,rt2400pci)
1224 endef
1225
1226 define KernelPackage/rt2500-pci
1227 $(call KernelPackage/rt2x00/Default)
1228 DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci
1229 TITLE+= (RT2500 PCI)
1230 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt2500pci.ko
1231 AUTOLOAD:=$(call AutoProbe,rt2500pci)
1232 endef
1233
1234 define KernelPackage/rt2500-usb
1235 $(call KernelPackage/rt2x00/Default)
1236 DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb
1237 TITLE+= (RT2500 USB)
1238 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt2500usb.ko
1239 AUTOLOAD:=$(call AutoProbe,rt2500usb)
1240 endef
1241
1242 define KernelPackage/rt2800-mmio
1243 $(call KernelPackage/rt2x00/Default)
1244 TITLE += (RT28xx/RT3xxx MMIO)
1245 DEPENDS += +kmod-rt2800-lib +kmod-rt2x00-mmio
1246 HIDDEN:=1
1247 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt2800mmio.ko
1248 endef
1249
1250 define KernelPackage/rt2800-soc
1251 $(call KernelPackage/rt2x00/Default)
1252 DEPENDS += @(TARGET_ramips_rt288x||TARGET_ramips_rt305x||TARGET_ramips_rt3883||TARGET_ramips_mt7620) +kmod-rt2800-mmio +kmod-rt2800-lib
1253 TITLE += (RT28xx/RT3xxx SoC)
1254 FILES := \
1255 $(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt2x00soc.ko \
1256 $(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt2800soc.ko
1257 AUTOLOAD:=$(call AutoProbe,rt2800soc)
1258 endef
1259
1260 define KernelPackage/rt2800-pci
1261 $(call KernelPackage/rt2x00/Default)
1262 DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci +kmod-rt2800-lib +kmod-rt2800-mmio
1263 TITLE+= (RT2860 PCI)
1264 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt2800pci.ko
1265 AUTOLOAD:=$(call AutoProbe,rt2800pci)
1266 endef
1267
1268 define KernelPackage/rt2800-usb
1269 $(call KernelPackage/rt2x00/Default)
1270 DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb +kmod-rt2800-lib +kmod-lib-crc-ccitt
1271 TITLE+= (RT2870 USB)
1272 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt2800usb.ko
1273 AUTOLOAD:=$(call AutoProbe,rt2800usb)
1274 endef
1275
1276
1277 define KernelPackage/rt61-pci
1278 $(call KernelPackage/rt2x00/Default)
1279 DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci
1280 TITLE+= (RT2x61 PCI)
1281 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt61pci.ko
1282 AUTOLOAD:=$(call AutoProbe,rt61pci)
1283 endef
1284
1285 define KernelPackage/rt73-usb
1286 $(call KernelPackage/rt2x00/Default)
1287 DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb
1288 TITLE+= (RT73 USB)
1289 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt73usb.ko
1290 AUTOLOAD:=$(call AutoProbe,rt73usb)
1291 endef
1292
1293
1294 define KernelPackage/rtl818x/Default
1295 $(call KernelPackage/mac80211/Default)
1296 TITLE:=Realtek Drivers for RTL818x devices
1297 URL:=http://wireless.kernel.org/en/users/Drivers/rtl8187
1298 DEPENDS+= +kmod-eeprom-93cx6 +kmod-mac80211
1299 endef
1300
1301 define KernelPackage/rtl8180
1302 $(call KernelPackage/rtl818x/Default)
1303 DEPENDS+= @PCI_SUPPORT
1304 TITLE+= (RTL8180 PCI)
1305 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtl818x/rtl8180/rtl818x_pci.ko
1306 AUTOLOAD:=$(call AutoProbe,rtl818x_pci)
1307 endef
1308
1309 define KernelPackage/rtl8187
1310 $(call KernelPackage/rtl818x/Default)
1311 DEPENDS+= @USB_SUPPORT +kmod-usb-core
1312 TITLE+= (RTL8187 USB)
1313 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtl818x/rtl8187/rtl8187.ko
1314 AUTOLOAD:=$(call AutoProbe,rtl8187)
1315 endef
1316
1317 define KernelPackage/rtlwifi/config
1318 config PACKAGE_RTLWIFI_DEBUG
1319 bool "Realtek wireless debugging"
1320 depends on PACKAGE_kmod-rtlwifi
1321 help
1322 Say Y, if you want to debug realtek wireless drivers.
1323
1324 endef
1325
1326 define KernelPackage/rtlwifi
1327 $(call KernelPackage/mac80211/Default)
1328 TITLE:=Realtek common driver part
1329 DEPENDS+= @(PCI_SUPPORT||USB_SUPPORT) +kmod-mac80211 +@DRIVER_11N_SUPPORT
1330 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtlwifi/rtlwifi.ko
1331 HIDDEN:=1
1332 endef
1333
1334 define KernelPackage/rtlwifi-pci
1335 $(call KernelPackage/mac80211/Default)
1336 TITLE:=Realtek common driver part (PCI support)
1337 DEPENDS+= @PCI_SUPPORT +kmod-rtlwifi
1338 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtlwifi/rtl_pci.ko
1339 AUTOLOAD:=$(call AutoProbe,rtl_pci)
1340 HIDDEN:=1
1341 endef
1342
1343 define KernelPackage/rtlwifi-usb
1344 $(call KernelPackage/mac80211/Default)
1345 TITLE:=Realtek common driver part (USB support)
1346 DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-rtlwifi
1347 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtlwifi/rtl_usb.ko
1348 AUTOLOAD:=$(call AutoProbe,rtl_usb)
1349 HIDDEN:=1
1350 endef
1351
1352 define KernelPackage/rtl8192c-common
1353 $(call KernelPackage/mac80211/Default)
1354 TITLE:=Realtek RTL8192CE/RTL8192CU common support module
1355 DEPENDS+= +kmod-rtlwifi
1356 FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtlwifi/rtl8192c/rtl8192c-common.ko
1357 HIDDEN:=1
1358 endef
1359
1360 define KernelPackage/rtl8192ce
1361 $(call KernelPackage/mac80211/Default)
1362 TITLE:=Realtek RTL8192CE/RTL8188CE support
1363 DEPENDS+= +kmod-rtlwifi-pci +kmod-rtl8192c-common +rtl8192ce-firmware
1364 FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/rtl8192ce.ko
1365 AUTOLOAD:=$(call AutoProbe,rtl8192ce)
1366 endef
1367
1368 define KernelPackage/rtl8192se
1369 $(call KernelPackage/mac80211/Default)
1370 TITLE:=Realtek RTL8192SE/RTL8191SE support
1371 DEPENDS+= +kmod-rtlwifi-pci +rtl8192se-firmware
1372 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtlwifi/rtl8192se/rtl8192se.ko
1373 AUTOLOAD:=$(call AutoProbe,rtl8192se)
1374 endef
1375
1376 define KernelPackage/rtl8192de
1377 $(call KernelPackage/mac80211/Default)
1378 TITLE:=Realtek RTL8192DE/RTL8188DE support
1379 DEPENDS+= +kmod-rtlwifi-pci +rtl8192de-firmware
1380 FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtlwifi/rtl8192de/rtl8192de.ko
1381 AUTOLOAD:=$(call AutoProbe,rtl8192de)
1382 endef
1383
1384 define KernelPackage/rtl8192cu
1385 $(call KernelPackage/mac80211/Default)
1386 TITLE:=Realtek RTL8192CU/RTL8188CU support
1387 DEPENDS+= +kmod-rtlwifi-usb +kmod-rtl8192c-common +rtl8192cu-firmware
1388 FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/rtl8192cu.ko
1389 AUTOLOAD:=$(call AutoProbe,rtl8192cu)
1390 endef
1391
1392
1393 define KernelPackage/rtl8xxxu
1394 $(call KernelPackage/mac80211/Default)
1395 TITLE:=alternative Realtek RTL8XXXU support
1396 DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-mac80211
1397 FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.ko
1398 AUTOLOAD:=$(call AutoProbe,rtl8xxxu)
1399 endef
1400
1401 define KernelPackage/rtl8xxxu/description
1402 This is an alternative driver for various Realtek RTL8XXX
1403 parts written to utilize the Linux mac80211 stack.
1404 The driver is known to work with a number of RTL8723AU,
1405 RL8188CU, RTL8188RU, RTL8191CU, and RTL8192CU devices
1406
1407 This driver is under development and has a limited feature
1408 set. In particular it does not yet support 40MHz channels
1409 and power management. However it should have a smaller
1410 memory footprint than the vendor drivers and benetifs
1411 from the in kernel mac80211 stack.
1412
1413 It can coexist with drivers from drivers/staging/rtl8723au,
1414 drivers/staging/rtl8192u, and drivers/net/wireless/rtlwifi,
1415 but you will need to control which module you wish to load.
1416
1417 RTL8XXXU_UNTESTED is enabled
1418 This option enables detection of Realtek 8723/8188/8191/8192 WiFi
1419 USB devices which have not been tested directly by the driver
1420 author or reported to be working by third parties.
1421
1422 Please report your results!
1423 endef
1424
1425
1426 define KernelPackage/wlcore
1427 $(call KernelPackage/mac80211/Default)
1428 TITLE:=TI common driver part
1429 DEPENDS+= @TARGET_omap +kmod-mac80211 +@DRIVER_11N_SUPPORT
1430 FILES:= \
1431 $(PKG_BUILD_DIR)/drivers/net/wireless/ti/wlcore/wlcore.ko \
1432 $(PKG_BUILD_DIR)/drivers/net/wireless/ti/wlcore/wlcore_sdio.ko
1433 AUTOLOAD:=$(call AutoProbe,wlcore wlcore_sdio)
1434 endef
1435
1436 define KernelPackage/wlcore/description
1437 This module contains some common parts needed by TI Wireless drivers.
1438 endef
1439
1440 define KernelPackage/wl12xx
1441 $(call KernelPackage/mac80211/Default)
1442 TITLE:=Driver for TI WL12xx
1443 URL:=http://wireless.kernel.org/en/users/Drivers/wl12xx
1444 DEPENDS+= +kmod-wlcore
1445 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ti/wl12xx/wl12xx.ko
1446 AUTOLOAD:=$(call AutoProbe,wl12xx)
1447 endef
1448
1449 define KernelPackage/wl12xx/description
1450 Kernel modules for TI WL12xx
1451 endef
1452
1453 define KernelPackage/wl18xx
1454 $(call KernelPackage/mac80211/Default)
1455 TITLE:=Driver for TI WL18xx
1456 URL:=http://wireless.kernel.org/en/users/Drivers/wl18xx
1457 DEPENDS+= +kmod-wlcore
1458 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ti/wl18xx/wl18xx.ko
1459 AUTOLOAD:=$(call AutoProbe,wl18xx)
1460 endef
1461
1462 define KernelPackage/wl18xx/description
1463 Kernel modules for TI WL18xx
1464 endef
1465
1466
1467 ZD1211FW_NAME:=zd1211-firmware
1468 ZD1211FW_VERSION:=1.4
1469 define Download/zd1211rw
1470 FILE:=$(ZD1211FW_NAME)-$(ZD1211FW_VERSION).tar.bz2
1471 URL:=@SF/zd1211/
1472 MD5SUM:=19f28781d76569af8551c9d11294c870
1473 endef
1474 $(eval $(call Download,zd1211rw))
1475
1476 define KernelPackage/zd1211rw
1477 $(call KernelPackage/mac80211/Default)
1478 TITLE:=Zydas ZD1211 support
1479 DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-mac80211
1480 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/zydas/zd1211rw/zd1211rw.ko
1481 AUTOLOAD:=$(call AutoProbe,zd1211rw)
1482 endef
1483
1484
1485
1486 config_package=$(if $(CONFIG_PACKAGE_kmod-$(1)),m)
1487
1488 config-y:= \
1489 WLAN \
1490 NL80211_TESTMODE \
1491 CFG80211_WEXT \
1492 CFG80211_INTERNAL_REGDB \
1493 CFG80211_CERTIFICATION_ONUS \
1494 MAC80211_RC_MINSTREL \
1495 MAC80211_RC_MINSTREL_HT \
1496 MAC80211_RC_MINSTREL_VHT \
1497 MAC80211_RC_DEFAULT_MINSTREL \
1498 WLAN_VENDOR_ADMTEK \
1499 WLAN_VENDOR_ATH \
1500 WLAN_VENDOR_ATMEL \
1501 WLAN_VENDOR_BROADCOM \
1502 WLAN_VENDOR_INTEL \
1503 WLAN_VENDOR_INTERSIL \
1504 WLAN_VENDOR_MARVELL \
1505 WLAN_VENDOR_MEDIATEK \
1506 WLAN_VENDOR_RALINK \
1507 WLAN_VENDOR_REALTEK \
1508 WLAN_VENDOR_RSI \
1509 WLAN_VENDOR_ST \
1510 WLAN_VENDOR_TI \
1511 WLAN_VENDOR_ZYDAS \
1512
1513 config-$(call config_package,cfg80211) += CFG80211
1514
1515 config-$(call config_package,mac80211) += MAC80211
1516 config-$(CONFIG_PACKAGE_MAC80211_MESH) += MAC80211_MESH
1517 ifdef CONFIG_PACKAGE_MAC80211_DEBUGFS
1518 config-y += \
1519 CFG80211_DEBUGFS \
1520 MAC80211_DEBUGFS \
1521 ATH9K_DEBUGFS \
1522 ATH9K_HTC_DEBUGFS \
1523 ATH10K_DEBUGFS \
1524 CARL9170_DEBUGFS \
1525 ATH5K_DEBUG
1526 endif
1527
1528 ifdef CONFIG_PACKAGE_MAC80211_TRACING
1529 config-y += \
1530 ATH10K_TRACING \
1531 ATH6KL_TRACING \
1532 ATH_TRACEPOINTS \
1533 WIL6210_TRACING \
1534 ATH5K_TRACER \
1535 IWLWIFI_DEVICE_TRACING
1536 endif
1537
1538 config-$(call config_package,lib80211) += LIB80211 LIB80211_CRYPT_WEP LIB80211_CRYPT_CCMP LIB80211_CRYPT_TKIP
1539
1540 config-$(call config_package,ath) += ATH_CARDS ATH_COMMON
1541 config-$(CONFIG_PACKAGE_ATH_DEBUG) += ATH_DEBUG ATH10K_DEBUG
1542 config-$(CONFIG_PACKAGE_ATH_DFS) += ATH9K_DFS_CERTIFIED ATH10K_DFS_CERTIFIED
1543
1544 config-$(call config_package,ath9k) += ATH9K
1545 config-$(call config_package,ath9k-common) += ATH9K_COMMON
1546 config-$(CONFIG_TARGET_ar71xx) += ATH9K_AHB
1547 config-$(CONFIG_PCI) += ATH9K_PCI
1548 config-$(CONFIG_ATH_USER_REGD) += ATH_USER_REGD
1549 config-$(CONFIG_ATH9K_SUPPORT_PCOEM) += ATH9K_PCOEM
1550
1551 config-$(call config_package,ath9k-htc) += ATH9K_HTC
1552 config-$(call config_package,ath10k) += ATH10K ATH10K_PCI
1553
1554 config-$(call config_package,ath5k) += ATH5K
1555 ifdef CONFIG_TARGET_ath25
1556 config-y += ATH5K_AHB
1557 else
1558 config-y += ATH5K_PCI
1559 endif
1560
1561 config-$(call config_package,carl9170) += CARL9170
1562
1563 config-$(call config_package,b43) += B43
1564 config-$(CONFIG_PACKAGE_B43_BUSES_BCMA_AND_SSB) += B43_BUSES_BCMA_AND_SSB
1565 config-$(CONFIG_PACKAGE_B43_BUSES_BCMA) += B43_BUSES_BCMA
1566 config-$(CONFIG_PACKAGE_B43_BUSES_SSB) += B43_BUSES_SSB
1567 config-$(CONFIG_PACKAGE_B43_PHY_G) += B43_PHY_G
1568 config-$(CONFIG_PACKAGE_B43_PHY_N) += B43_PHY_N
1569 config-$(CONFIG_PACKAGE_B43_PHY_LP) += B43_PHY_LP
1570 config-$(CONFIG_PACKAGE_B43_PHY_HT) += B43_PHY_HT
1571 config-$(CONFIG_PACKAGE_B43_PIO) += B43_PIO
1572 config-$(CONFIG_PACKAGE_B43_DEBUG) += B43_DEBUG
1573
1574 config-$(call config_package,b43legacy) += B43LEGACY
1575 config-y += B43LEGACY_DMA_MODE
1576
1577 config-$(call config_package,brcmutil) += BRCMUTIL
1578 config-$(call config_package,brcmsmac) += BRCMSMAC
1579 config-$(call config_package,brcmfmac) += BRCMFMAC
1580 config-$(CONFIG_BRCMFMAC_SDIO) += BRCMFMAC_SDIO
1581 config-$(CONFIG_BRCMFMAC_USB) += BRCMFMAC_USB
1582 config-$(CONFIG_BRCMFMAC_PCIE) += BRCMFMAC_PCIE
1583 config-$(CONFIG_PACKAGE_BRCM80211_DEBUG) += BRCMDBG
1584
1585 config-$(call config_package,mac80211-hwsim) += MAC80211_HWSIM
1586 config-$(call config_package,mt7601u) += MT7601U
1587 config-y += WL_MEDIATEK
1588
1589 config-$(call config_package,rt2x00-lib) += RT2X00 RT2X00_LIB
1590 config-$(call config_package,rt2x00-pci) += RT2X00_LIB_PCI
1591 config-$(call config_package,rt2x00-mmio) += RT2X00_LIB_MMIO
1592 config-$(call config_package,rt2x00-usb) += RT2X00_LIB_USB
1593 config-$(CONFIG_PACKAGE_RT2X00_LIB_DEBUGFS) += RT2X00_LIB_DEBUGFS
1594 config-$(CONFIG_PACKAGE_RT2X00_DEBUG) += RT2X00_DEBUG
1595
1596 config-$(call config_package,rt2400-pci) += RT2400PCI
1597 config-$(call config_package,rt2500-pci) += RT2500PCI
1598 config-$(call config_package,rt2500-usb) += RT2500USB
1599 config-$(call config_package,rt61-pci) += RT61PCI
1600 config-$(call config_package,rt73-usb) += RT73USB
1601
1602 config-$(call config_package,rt2800-lib) += RT2800_LIB
1603
1604 config-$(call config_package,rt2800-soc) += RT2800SOC
1605 config-$(call config_package,rt2800-pci) += RT2800PCI
1606 config-y += RT2800PCI_RT33XX RT2800PCI_RT35XX RT2800PCI_RT53XX RT2800PCI_RT3290
1607
1608 config-$(call config_package,rt2800-usb) += RT2800USB
1609 config-y += RT2800USB_RT33XX RT2800USB_RT35XX RT2800USB_RT3573 RT2800USB_RT53XX RT2800USB_RT55XX RT2800USB_UNKNOWN
1610
1611 config-$(call config_package,iwl-legacy) += IWLEGACY
1612 config-$(call config_package,iwl3945) += IWL3945
1613 config-$(call config_package,iwl4965) += IWL4965
1614 config-$(call config_package,iwlwifi) += IWLWIFI IWLDVM IWLMVM
1615 config-$(CONFIG_PACKAGE_IWLWIFI_DEBUG)+= IWLWIFI_DEBUG
1616 config-$(CONFIG_PACKAGE_IWLWIFI_DEBUGFS)+= IWLWIFI_DEBUGFS
1617
1618 config-$(call config_package,libipw) += LIBIPW
1619 config-$(call config_package,ipw2100) += IPW2100
1620 config-$(call config_package,ipw2200) += IPW2200
1621
1622 config-$(call config_package,p54-common) += P54_COMMON
1623 config-$(call config_package,p54-pci) += P54_PCI
1624 config-$(call config_package,p54-usb) += P54_USB
1625 config-$(call config_package,p54-spi) += P54_SPI
1626
1627 config-$(call config_package,hermes) += HERMES
1628 config-$(call config_package,hermes-pci) += PCI_HERMES
1629 config-$(call config_package,hermes-plx) += PLX_HERMES
1630 config-$(call config_package,hermes-pcmcia) += PCMCIA_HERMES
1631 config-y += HERMES_PRISM
1632
1633 config-$(call config_package,adm8211) += ADM8211
1634 config-$(call config_package,libertas-sdio) += LIBERTAS LIBERTAS_SDIO
1635 config-$(call config_package,libertas-usb) += LIBERTAS LIBERTAS_USB
1636 config-$(call config_package,mwl8k) += MWL8K
1637 config-$(call config_package,mwifiex-pcie) += MWIFIEX MWIFIEX_PCIE
1638 config-$(call config_package,rtl8180) += RTL8180
1639 config-$(call config_package,rtl8187) += RTL8187
1640 config-$(call config_package,wlcore) += WLCORE WLCORE_SDIO
1641 config-$(call config_package,wl12xx) += WL12XX
1642 config-$(call config_package,wl18xx) += WL18XX
1643 config-y += WL_TI WILINK_PLATFORM_DATA
1644 config-$(call config_package,zd1211rw) += ZD1211RW
1645
1646 config-$(call config_package,rtlwifi) += RTL_CARDS RTLWIFI
1647 config-$(call config_package,rtlwifi-pci) += RTLWIFI_PCI
1648 config-$(call config_package,rtlwifi-usb) += RTLWIFI_USB
1649 config-$(call config_package,rtl8192c-common) += RTL8192C_COMMON
1650 config-$(call config_package,rtl8192ce) += RTL8192CE
1651 config-$(call config_package,rtl8192se) += RTL8192SE
1652 config-$(call config_package,rtl8192de) += RTL8192DE
1653 config-$(call config_package,rtl8192cu) += RTL8192CU
1654 config-$(CONFIG_PACKAGE_RTLWIFI_DEBUG) += RTLWIFI_DEBUG
1655
1656 config-$(call config_package,rtl8xxxu) += RTL8XXXU
1657 config-y += RTL8XXXU_UNTESTED
1658
1659 config-$(CONFIG_LEDS_TRIGGERS) += MAC80211_LEDS B43_LEDS B43LEGACY_LEDS
1660
1661 MAKE_OPTS:= -C "$(PKG_BUILD_DIR)" \
1662 CROSS_COMPILE="$(KERNEL_CROSS)" \
1663 ARCH="$(LINUX_KARCH)" \
1664 EXTRA_CFLAGS="-I$(PKG_BUILD_DIR)/include" \
1665 KLIB_BUILD="$(LINUX_DIR)" \
1666 MODPROBE=true \
1667 KLIB=$(TARGET_MODULES_DIR) \
1668 KERNEL_SUBLEVEL=$(lastword $(subst ., ,$(KERNEL_PATCHVER))) \
1669 KBUILD_LDFLAGS_MODULE_PREREQ=
1670
1671 ifneq ($(findstring c,$(OPENWRT_VERBOSE)),)
1672 MAKE_OPTS += V=1
1673 endif
1674
1675 define ConfigVars
1676 $(subst $(space),,$(foreach opt,$(config-$(1)),CPTCFG_$(opt)=$(1)
1677 ))
1678 endef
1679
1680 define mac80211_config
1681 $(call ConfigVars,m)$(call ConfigVars,y)
1682 endef
1683 $(eval $(call shexport,mac80211_config))
1684
1685 define Build/Prepare
1686 rm -rf $(PKG_BUILD_DIR)
1687 mkdir -p $(PKG_BUILD_DIR)
1688 $(PKG_UNPACK)
1689 $(Build/Patch)
1690 $(TAR) -C $(PKG_BUILD_DIR) -xzf $(DL_DIR)/$(IPW2100_NAME)-$(IPW2100_VERSION).tgz
1691 $(TAR) -C $(PKG_BUILD_DIR) -xzf $(DL_DIR)/$(IPW2200_NAME)-$(IPW2200_VERSION).tgz
1692 $(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(ZD1211FW_NAME)-$(ZD1211FW_VERSION).tar.bz2
1693 $(TAR) -C $(PKG_BUILD_DIR) -xJf $(DL_DIR)/$(PKG_LINUX_FIRMWARE_SOURCE)
1694 rm -rf \
1695 $(PKG_BUILD_DIR)/include/linux/ssb \
1696 $(PKG_BUILD_DIR)/include/linux/bcma \
1697 $(PKG_BUILD_DIR)/include/net/bluetooth
1698
1699 rm -f \
1700 $(PKG_BUILD_DIR)/include/linux/cordic.h \
1701 $(PKG_BUILD_DIR)/include/linux/crc8.h \
1702 $(PKG_BUILD_DIR)/include/linux/eeprom_93cx6.h \
1703 $(PKG_BUILD_DIR)/include/linux/wl12xx.h \
1704 $(PKG_BUILD_DIR)/include/linux/spi/libertas_spi.h \
1705 $(PKG_BUILD_DIR)/include/net/ieee80211.h \
1706 $(PKG_BUILD_DIR)/backport-include/linux/bcm47xx_nvram.h
1707
1708 echo 'compat-wireless-$(PKG_VERSION)-$(PKG_RELEASE)-$(REVISION)' > $(PKG_BUILD_DIR)/compat_version
1709 $(CP) ./files/regdb.txt $(PKG_BUILD_DIR)/net/wireless/db.txt
1710 endef
1711
1712 ifneq ($(CONFIG_PACKAGE_kmod-cfg80211)$(CONFIG_PACKAGE_kmod-lib80211),)
1713 define Build/Compile/kmod
1714 rm -rf $(PKG_BUILD_DIR)/modules
1715 +$(MAKE) $(PKG_JOBS) $(MAKE_OPTS) modules
1716 endef
1717 endif
1718
1719 define Build/Configure
1720 cmp $(PKG_BUILD_DIR)/include/linux/ath9k_platform.h $(LINUX_DIR)/include/linux/ath9k_platform.h
1721 cmp $(PKG_BUILD_DIR)/include/linux/ath5k_platform.h $(LINUX_DIR)/include/linux/ath5k_platform.h
1722 cmp $(PKG_BUILD_DIR)/include/linux/rt2x00_platform.h $(LINUX_DIR)/include/linux/rt2x00_platform.h
1723 endef
1724
1725 define Build/Compile
1726 $(SH_FUNC) var2file "$(call shvar,mac80211_config)" $(PKG_BUILD_DIR)/.config
1727 $(MAKE) $(MAKE_OPTS) allnoconfig
1728 $(call Build/Compile/kmod)
1729 endef
1730
1731 define Build/InstallDev
1732 mkdir -p \
1733 $(1)/usr/include/mac80211 \
1734 $(1)/usr/include/mac80211-backport \
1735 $(1)/usr/include/mac80211/ath \
1736 $(1)/usr/include/net/mac80211
1737 $(CP) $(PKG_BUILD_DIR)/net/mac80211/*.h $(PKG_BUILD_DIR)/include/* $(1)/usr/include/mac80211/
1738 $(CP) $(PKG_BUILD_DIR)/backport-include/* $(1)/usr/include/mac80211-backport/
1739 $(CP) $(PKG_BUILD_DIR)/net/mac80211/rate.h $(1)/usr/include/net/mac80211/
1740 $(CP) $(PKG_BUILD_DIR)/drivers/net/wireless/ath/*.h $(1)/usr/include/mac80211/ath/
1741 rm -f $(1)/usr/include/mac80211-backport/linux/module.h
1742 endef
1743
1744
1745 define KernelPackage/ath9k-htc/install
1746 $(INSTALL_DIR) $(1)/lib/firmware/ath9k_htc
1747 $(INSTALL_DATA) \
1748 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ath9k_htc/htc_9271-1.4.0.fw \
1749 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ath9k_htc/htc_7010-1.4.0.fw \
1750 $(1)/lib/firmware/ath9k_htc
1751 endef
1752
1753 define KernelPackage/b43/install
1754 rm -rf $(1)/lib/firmware/
1755 ifeq ($(CONFIG_B43_OPENFIRMWARE),y)
1756 tar xzf "$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C "$(PKG_BUILD_DIR)"
1757 else
1758 tar xjf "$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C "$(PKG_BUILD_DIR)"
1759 endif
1760 $(INSTALL_DIR) $(1)/lib/firmware/
1761 ifeq ($(CONFIG_B43_OPENFIRMWARE),y)
1762 $(MAKE) -C "$(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/"
1763 $(INSTALL_DIR) $(1)/lib/firmware/b43-open/
1764 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/ucode5.fw $(1)/lib/firmware/b43-open/ucode5.fw
1765 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/b0g0bsinitvals5.fw $(1)/lib/firmware/b43-open/b0g0bsinitvals5.fw
1766 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/b0g0initvals5.fw $(1)/lib/firmware/b43-open/b0g0initvals5.fw
1767 else
1768 b43-fwcutter -w $(1)/lib/firmware/ $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)
1769 endif
1770 ifneq ($(CONFIG_B43_FW_SQUASH),)
1771 b43-fwsquash.py "$(CONFIG_B43_FW_SQUASH_PHYTYPES)" "$(CONFIG_B43_FW_SQUASH_COREREVS)" "$(1)/lib/firmware/b43"
1772 endif
1773 endef
1774
1775 define KernelPackage/b43legacy/install
1776 $(INSTALL_DIR) $(1)/lib/firmware/
1777 b43-fwcutter --unsupported -w $(1)/lib/firmware/ $(DL_DIR)/$(PKG_B43_FWV3_SOURCE)
1778 ifneq ($(CONFIG_B43LEGACY_FW_SQUASH),)
1779 b43-fwsquash.py "G" "$(CONFIG_B43LEGACY_FW_SQUASH_COREREVS)" "$(1)/lib/firmware/b43legacy"
1780 endif
1781 endef
1782
1783 define KernelPackage/brcmsmac/install
1784 $(INSTALL_DIR) $(1)/lib/firmware/brcm
1785 ifeq ($(CONFIG_BRCMSMAC_USE_FW_FROM_WL),y)
1786 tar xjf "$(DL_DIR)/$(PKG_BRCMSMAC_FW_SOURCE)" -C "$(PKG_BUILD_DIR)"
1787 b43-fwcutter --brcmsmac -w $(1)/lib/firmware/ $(PKG_BUILD_DIR)/$(PKG_BRCMSMAC_FW_OBJECT)
1788 else
1789 $(INSTALL_DATA) \
1790 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/bcm43xx-0.fw \
1791 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/bcm43xx_hdr-0.fw \
1792 $(1)/lib/firmware/brcm/
1793 endif
1794 endef
1795
1796 define KernelPackage/brcmfmac/install
1797 $(INSTALL_DIR) $(1)/lib/firmware/brcm
1798 ifneq ($(CONFIG_BRCMFMAC_USB),)
1799 $(INSTALL_DATA) \
1800 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/brcmfmac43236b.bin \
1801 $(1)/lib/firmware/brcm/
1802 $(INSTALL_DATA) \
1803 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/brcmfmac43143.bin \
1804 $(1)/lib/firmware/brcm/
1805 endif
1806 ifneq ($(CONFIG_BRCMFMAC_PCIE),)
1807 $(INSTALL_DATA) \
1808 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/brcmfmac43602-pcie.ap.bin \
1809 $(1)/lib/firmware/brcm/brcmfmac43602-pcie.bin
1810 endif
1811 ifneq ($(CONFIG_BRCMFMAC_SDIO),)
1812 $(INSTALL_DATA) \
1813 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/brcmfmac4329-sdio.bin \
1814 $(1)/lib/firmware/brcm/brcmfmac4329-sdio.bin
1815 $(INSTALL_DATA) \
1816 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/brcmfmac43362-sdio.bin \
1817 $(1)/lib/firmware/brcm/brcmfmac43362-sdio.bin
1818 endif
1819 endef
1820
1821 define KernelPackage/carl9170/install
1822 $(INSTALL_DIR) $(1)/lib/firmware
1823 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/carl9170-1.fw $(1)/lib/firmware
1824 endef
1825
1826 define KernelPackage/cfg80211/install
1827 $(INSTALL_DIR) $(1)/lib/wifi $(1)/lib/netifd/wireless
1828 $(INSTALL_DATA) ./files/lib/wifi/mac80211.sh $(1)/lib/wifi
1829 $(INSTALL_BIN) ./files/lib/netifd/wireless/mac80211.sh $(1)/lib/netifd/wireless
1830 endef
1831
1832 define KernelPackage/ipw2100/install
1833 $(INSTALL_DIR) $(1)/lib/firmware
1834 $(INSTALL_DATA) $(PKG_BUILD_DIR)/ipw2100-$(IPW2100_VERSION)*.fw $(1)/lib/firmware
1835 endef
1836
1837 define KernelPackage/ipw2200/install
1838 $(INSTALL_DIR) $(1)/lib/firmware
1839 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(IPW2200_NAME)-$(IPW2200_VERSION)/ipw2200*.fw $(1)/lib/firmware
1840 endef
1841
1842 define KernelPackage/mt7601u/install
1843 $(INSTALL_DIR) $(1)/lib/firmware
1844 $(INSTALL_DATA) \
1845 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/mt7601u.bin \
1846 $(1)/lib/firmware
1847 endef
1848
1849 define KernelPackage/p54-pci/install
1850 $(INSTALL_DIR) $(1)/lib/firmware
1851 $(INSTALL_DATA) $(DL_DIR)/$(P54PCIFW) $(1)/lib/firmware/isl3886pci
1852 endef
1853
1854 define KernelPackage/p54-usb/install
1855 $(INSTALL_DIR) $(1)/lib/firmware
1856 $(INSTALL_DATA) $(DL_DIR)/$(P54USBFW) $(1)/lib/firmware/isl3887usb
1857 endef
1858
1859 define KernelPackage/p54-spi/install
1860 $(INSTALL_DIR) $(1)/lib/firmware
1861 $(INSTALL_DATA) $(DL_DIR)/$(P54SPIFW) $(1)/lib/firmware/3826.arm
1862 endef
1863
1864 define KernelPackage/rt2800-pci/install
1865 $(INSTALL_DIR) $(1)/lib/firmware
1866 $(INSTALL_DATA) \
1867 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2860.bin \
1868 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt3290.bin \
1869 $(1)/lib/firmware
1870 endef
1871
1872 define KernelPackage/rt2800-usb/install
1873 $(INSTALL_DIR) $(1)/lib/firmware
1874 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2870.bin $(1)/lib/firmware/
1875 endef
1876
1877 define KernelPackage/rt61-pci/install
1878 $(INSTALL_DIR) $(1)/lib/firmware
1879 $(INSTALL_DATA) \
1880 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2561.bin \
1881 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2561s.bin \
1882 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2661.bin \
1883 $(1)/lib/firmware/
1884 endef
1885
1886 define KernelPackage/rt73-usb/install
1887 $(INSTALL_DIR) $(1)/lib/firmware
1888 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt73.bin $(1)/lib/firmware/
1889 endef
1890
1891 define KernelPackage/wl12xx/install
1892 $(INSTALL_DIR) $(1)/lib/firmware/ti-connectivity
1893 $(INSTALL_DATA) \
1894 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl127x-fw-5-mr.bin \
1895 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl127x-fw-5-plt.bin \
1896 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl127x-fw-5-sr.bin \
1897 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl1271-nvs.bin \
1898 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl128x-fw-5-mr.bin \
1899 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl128x-fw-5-plt.bin \
1900 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl128x-fw-5-sr.bin \
1901 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl128x-nvs.bin \
1902 $(1)/lib/firmware/ti-connectivity
1903 endef
1904
1905 define KernelPackage/wl18xx/install
1906 $(INSTALL_DIR) $(1)/lib/firmware/ti-connectivity
1907 $(INSTALL_DATA) \
1908 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl18xx-fw-4.bin \
1909 $(1)/lib/firmware/ti-connectivity
1910 endef
1911
1912 define KernelPackage/zd1211rw/install
1913 $(INSTALL_DIR) $(1)/lib/firmware/zd1211
1914 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(ZD1211FW_NAME)/zd1211* $(1)/lib/firmware/zd1211
1915 endef
1916
1917
1918 $(eval $(call KernelPackage,adm8211))
1919 $(eval $(call KernelPackage,ath))
1920 $(eval $(call KernelPackage,ath10k))
1921 $(eval $(call KernelPackage,ath5k))
1922 $(eval $(call KernelPackage,ath9k))
1923 $(eval $(call KernelPackage,ath9k-common))
1924 $(eval $(call KernelPackage,ath9k-htc))
1925 $(eval $(call KernelPackage,b43))
1926 $(eval $(call KernelPackage,b43legacy))
1927 $(eval $(call KernelPackage,brcmsmac))
1928 $(eval $(call KernelPackage,brcmfmac))
1929 $(eval $(call KernelPackage,brcmutil))
1930 $(eval $(call KernelPackage,carl9170))
1931 $(eval $(call KernelPackage,cfg80211))
1932 $(eval $(call KernelPackage,hermes))
1933 $(eval $(call KernelPackage,hermes-pci))
1934 $(eval $(call KernelPackage,hermes-plx))
1935 $(eval $(call KernelPackage,hermes-pcmcia))
1936 $(eval $(call KernelPackage,iwlwifi))
1937 $(eval $(call KernelPackage,iwl-legacy))
1938 $(eval $(call KernelPackage,iwl4965))
1939 $(eval $(call KernelPackage,iwl3945))
1940 $(eval $(call KernelPackage,lib80211))
1941 $(eval $(call KernelPackage,libertas-usb))
1942 $(eval $(call KernelPackage,libertas-sdio))
1943 $(eval $(call KernelPackage,libipw))
1944 $(eval $(call KernelPackage,ipw2100))
1945 $(eval $(call KernelPackage,ipw2200))
1946 $(eval $(call KernelPackage,mac80211))
1947 $(eval $(call KernelPackage,mac80211-hwsim))
1948 $(eval $(call KernelPackage,mt7601u))
1949 $(eval $(call KernelPackage,mwl8k))
1950 $(eval $(call KernelPackage,mwifiex-pcie))
1951 $(eval $(call KernelPackage,p54-common))
1952 $(eval $(call KernelPackage,p54-pci))
1953 $(eval $(call KernelPackage,p54-usb))
1954 $(eval $(call KernelPackage,p54-spi))
1955 $(eval $(call KernelPackage,rt2x00-lib))
1956 $(eval $(call KernelPackage,rt2x00-mmio))
1957 $(eval $(call KernelPackage,rt2x00-pci))
1958 $(eval $(call KernelPackage,rt2x00-usb))
1959 $(eval $(call KernelPackage,rt2800-lib))
1960 $(eval $(call KernelPackage,rt2400-pci))
1961 $(eval $(call KernelPackage,rt2500-pci))
1962 $(eval $(call KernelPackage,rt2500-usb))
1963 $(eval $(call KernelPackage,rt2800-mmio))
1964 $(eval $(call KernelPackage,rt2800-soc))
1965 $(eval $(call KernelPackage,rt2800-pci))
1966 $(eval $(call KernelPackage,rt2800-usb))
1967 $(eval $(call KernelPackage,rt61-pci))
1968 $(eval $(call KernelPackage,rt73-usb))
1969 $(eval $(call KernelPackage,rtl8180))
1970 $(eval $(call KernelPackage,rtl8187))
1971 $(eval $(call KernelPackage,rtlwifi))
1972 $(eval $(call KernelPackage,rtlwifi-pci))
1973 $(eval $(call KernelPackage,rtlwifi-usb))
1974 $(eval $(call KernelPackage,rtl8192c-common))
1975 $(eval $(call KernelPackage,rtl8192ce))
1976 $(eval $(call KernelPackage,rtl8192se))
1977 $(eval $(call KernelPackage,rtl8192de))
1978 $(eval $(call KernelPackage,rtl8192cu))
1979 $(eval $(call KernelPackage,rtl8xxxu))
1980 $(eval $(call KernelPackage,wlcore))
1981 $(eval $(call KernelPackage,wl12xx))
1982 $(eval $(call KernelPackage,wl18xx))
1983 $(eval $(call KernelPackage,zd1211rw))