2 # Copyright (C) 2007-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
13 ifneq ($(CONFIG_LINUX_2_6_21
)$(CONFIG_LINUX_2_6_25
),)
14 PKG_VERSION
:=2008-08-06
16 PKG_SOURCE_URL
:=http
://www.orbit-lab.org
/kernel
/compat-wireless-2.6
/2008/08
17 PKG_MD5SUM
:=9563ceeed86bca0859ad5f010623277c
18 PATCH_DIR
:=.
/patches-old
20 PKG_VERSION
:=2009-06-25
23 http
://www.orbit-lab.org
/kernel
/compat-wireless-2.6
/2009/06 \
24 http
://wireless.kernel.org
/download
/compat-wireless-2.6
25 PKG_MD5SUM
:=e76d2580436069e2b44f0f57db790bfe
28 PKG_SOURCE
:=compat-wireless-
$(PKG_VERSION
).
tar.bz2
29 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/compat-wireless-
$(PKG_VERSION
)
31 PKG_CONFIG_DEPENDS
:= \
32 CONFIG_PACKAGE_kmod-mac80211 \
34 include $(INCLUDE_DIR
)/package.mk
36 WMENU
:=Wireless Drivers
38 define KernelPackage
/mac80211
/Default
40 URL
:=http
://linuxwireless.org
/
41 DEPENDS
:=@LINUX_2_6 @
!TARGET_avr32
44 define KernelPackage
/mac80211
45 $(call KernelPackage
/mac80211
/Default
)
46 TITLE
:=Linux
802.11 Wireless Networking Stack
47 DEPENDS
+= +kmod-crypto-arc4
+kmod-crypto-aes
+wireless-tools
49 $(PKG_BUILD_DIR
)/net
/mac80211
/mac80211.
$(LINUX_KMOD_SUFFIX
) \
50 $(PKG_BUILD_DIR
)/net
/wireless
/cfg80211.
$(LINUX_KMOD_SUFFIX
)
51 AUTOLOAD
:=$(call AutoLoad
,20,cfg80211 mac80211
)
54 define KernelPackage
/mac80211
/description
55 Linux
802.11 Wireless Networking Stack
59 P54PCIFW
:=2.13.12.0.arm
60 P54USBFW
:=2.13.24.0.lm86.arm
62 define Download
/p54usb
64 URL
:=http
://daemonizer.de
/prism54
/prism54-fw
/fw-usb
65 MD5SUM
:=2efd50eab43c0d0376765576a54b7a30
67 $(eval
$(call Download
,p54usb
))
69 define Download
/p54pci
71 URL
:=http
://daemonizer.de
/prism54
/prism54-fw
/fw-softmac
72 MD5SUM
:=ff7536af2092b1c4b21315bd103ef4c4
74 $(eval
$(call Download
,p54pci
))
76 define KernelPackage
/p54
/Default
77 $(call KernelPackage
/mac80211
/Default
)
78 TITLE
:=Prism54 Drivers
81 define KernelPackage
/p54
/description
82 Kernel module for Prism54 chipsets
(mac80211
)
85 define KernelPackage
/p54-common
86 $(call KernelPackage
/p54
/Default
)
87 DEPENDS
+= @PCI_SUPPORT||@USB_SUPPORT
+kmod-mac80211
89 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/p54
/p54common.
$(LINUX_KMOD_SUFFIX
)
90 AUTOLOAD
:=$(call AutoLoad
,30,p54common
)
93 define KernelPackage
/p54-pci
94 $(call KernelPackage
/p54
/Default
)
96 DEPENDS
+= @PCI_SUPPORT
+kmod-p54-common
97 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/p54
/p54pci.
$(LINUX_KMOD_SUFFIX
)
98 AUTOLOAD
:=$(call AutoLoad
,31,p54pci
)
101 define KernelPackage
/p54-usb
102 $(call KernelPackage
/p54
/Default
)
104 DEPENDS
+= @USB_SUPPORT
+kmod-usb-core
+kmod-p54-common
105 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/p54
/p54usb.
$(LINUX_KMOD_SUFFIX
)
106 AUTOLOAD
:=$(call AutoLoad
,31,p54usb
)
109 # Ralink rt2x00 drivers
110 RT61FW
:=RT61_Firmware_V1.2.zip
111 RT71FW
:=RT71W_Firmware_V1.8.zip
112 RT2860FW
:=RT2860_Firmware_V11.zip
113 RT2870FW
:=RT2870_Firmware_V8.zip
117 URL
:=http
://www.ralinktech.com.tw
/data
/
118 MD5SUM
:=d4c690c93b470bc9a681297c2adc6281
120 $(eval
$(call Download
,rt61
))
122 define Download
/rt71w
124 URL
:=http
://www.ralinktech.com.tw
/data
/
125 MD5SUM
:=1e7a5dc574e0268574fcda3fd5cf52f7
127 $(eval
$(call Download
,rt71w
))
129 define Download
/rt2860
131 URL
:=http
://www.ralinktech.com.tw
/data
/drivers
132 MD5SUM
:=440a81756a52c53528f16faa41c40124
134 $(eval
$(call Download
,rt2860
))
136 define Download
/rt2870
138 URL
:=http
://www.ralinktech.com.tw
/data
/drivers
139 MD5SUM
:=a7aae1d8cfd68e4d86a73000df0b6584
141 $(eval
$(call Download
,rt2870
))
143 define KernelPackage
/rt2x00
/Default
144 $(call KernelPackage
/mac80211
/Default
)
145 TITLE
:=Ralink Drivers for RT2x00 cards
148 define KernelPackage
/rt2x00-lib
149 $(call KernelPackage
/rt2x00
/Default
)
150 DEPENDS
+= @PCI_SUPPORT||@USB_SUPPORT
+kmod-mac80211
+kmod-crc-itu-t
152 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2x00lib.
$(LINUX_KMOD_SUFFIX
)
153 AUTOLOAD
:=$(call AutoLoad
,25,blkcipher ecb arc4 rt2x00lib
)
156 define KernelPackage
/rt2x00-pci
157 $(call KernelPackage
/rt2x00
/Default
)
158 DEPENDS
+= @PCI_SUPPORT
+kmod-rt2x00-lib
+kmod-eeprom-93cx6
160 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2x00pci.
$(LINUX_KMOD_SUFFIX
)
161 AUTOLOAD
:=$(call AutoLoad
,26,rt2x00pci
)
164 define KernelPackage
/rt2x00-usb
165 $(call KernelPackage
/rt2x00
/Default
)
166 DEPENDS
+= @USB_SUPPORT
+kmod-rt2x00-lib
+kmod-usb-core
168 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2x00usb.
$(LINUX_KMOD_SUFFIX
)
169 AUTOLOAD
:=$(call AutoLoad
,26,rt2x00usb
)
172 define KernelPackage
/rt2400-pci
173 $(call KernelPackage
/rt2x00
/Default
)
174 DEPENDS
+= @PCI_SUPPORT
+kmod-rt2x00-pci
176 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2400pci.
$(LINUX_KMOD_SUFFIX
)
177 AUTOLOAD
:=$(call AutoLoad
,27,rt2400pci
)
180 define KernelPackage
/rt2500-pci
181 $(call KernelPackage
/rt2x00
/Default
)
182 DEPENDS
+= @PCI_SUPPORT
+kmod-rt2x00-pci
184 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2500pci.
$(LINUX_KMOD_SUFFIX
)
185 AUTOLOAD
:=$(call AutoLoad
,27,rt2500pci
)
188 define KernelPackage
/rt2500-usb
189 $(call KernelPackage
/rt2x00
/Default
)
190 DEPENDS
+= @USB_SUPPORT
+kmod-rt2x00-usb
192 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2500usb.
$(LINUX_KMOD_SUFFIX
)
193 AUTOLOAD
:=$(call AutoLoad
,27,rt2500usb
)
196 define KernelPackage
/rt61-pci
197 $(call KernelPackage
/rt2x00
/Default
)
198 DEPENDS
+= @PCI_SUPPORT
+kmod-rt2x00-pci
200 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt61pci.
$(LINUX_KMOD_SUFFIX
)
201 AUTOLOAD
:=$(call AutoLoad
,27,rt61pci
)
204 define KernelPackage
/rt73-usb
205 $(call KernelPackage
/rt2x00
/Default
)
206 DEPENDS
+= @USB_SUPPORT
+kmod-rt2x00-usb
208 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt73usb.
$(LINUX_KMOD_SUFFIX
)
209 AUTOLOAD
:=$(call AutoLoad
,27,rt73usb
)
212 define KernelPackage
/rt2800-pci
213 $(call KernelPackage
/rt2x00
/Default
)
214 DEPENDS
+= +kmod-rt2x00-pci
+kmod-crc-ccitt @
!LINUX_2_6_21
&&!LINUX_2_6_25
216 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2800pci.
$(LINUX_KMOD_SUFFIX
)
217 AUTOLOAD
:=$(call AutoLoad
,27,rt2800pci
)
220 define KernelPackage
/rt2800-usb
221 $(call KernelPackage
/rt2x00
/Default
)
222 DEPENDS
+= +kmod-rt2x00-usb
+kmod-crc-ccitt @
!LINUX_2_6_21
&&!LINUX_2_6_25
224 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2800usb.
$(LINUX_KMOD_SUFFIX
)
225 AUTOLOAD
:=$(call AutoLoad
,27,rt2800usb
)
228 define KernelPackage
/rtl818x
/Default
229 $(call KernelPackage
/mac80211
/Default
)
230 TITLE
:=Realtek Drivers for RTL818x devices
231 URL
:=http
://wireless.kernel.org
/en
/users
/Drivers
/rtl8187
232 DEPENDS
+= +kmod-eeprom-93cx6
+kmod-mac80211 @
!LINUX_2_6_21
&&!LINUX_2_6_25
235 define KernelPackage
/rtl8180
236 $(call KernelPackage
/rtl818x
/Default
)
237 DEPENDS
+= @PCI_SUPPORT
238 TITLE
+= (RTL8180 PCI
)
239 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rtl818x
/rtl8180.
$(LINUX_KMOD_SUFFIX
)
240 AUTOLOAD
:=$(call AutoLoad
,27,rtl8180
)
243 define KernelPackage
/rtl8187
244 $(call KernelPackage
/rtl818x
/Default
)
245 DEPENDS
+= @USB_SUPPORT
246 TITLE
+= (RTL8187 USB
)
247 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rtl818x
/rtl8187.
$(LINUX_KMOD_SUFFIX
)
248 AUTOLOAD
:=$(call AutoLoad
,27,rtl8187
)
251 ZD1211FW_NAME
:=zd1211-firmware
252 ZD1211FW_VERSION
:=1.4
253 define Download
/zd1211rw
254 FILE
:=$(ZD1211FW_NAME
)-$(ZD1211FW_VERSION
).
tar.bz2
256 MD5SUM
:=19f28781d76569af8551c9d11294c870
258 $(eval
$(call Download
,zd1211rw
))
260 define KernelPackage
/zd1211rw
261 $(call KernelPackage
/mac80211
/Default
)
262 TITLE
:=Zydas ZD1211 support
263 DEPENDS
+= @USB_SUPPORT
+kmod-usb-core
+kmod-mac80211
264 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/zd1211rw
/zd1211rw.
$(LINUX_KMOD_SUFFIX
)
265 AUTOLOAD
:=$(call AutoLoad
,60,zd1211rw
)
269 define KernelPackage
/ath
270 $(call KernelPackage
/mac80211
/Default
)
271 TITLE
:=Atheros common driver part
272 DEPENDS
+= @PCI_SUPPORT
+kmod-mac80211
273 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/ath
/ath.
$(LINUX_KMOD_SUFFIX
)
274 AUTOLOAD
:=$(call AutoLoad
,26,ath
)
277 define KernelPackage
/ath
/description
278 This module contains some common parts needed by Atheros Wireless drivers.
281 define KernelPackage
/ath5k
282 $(call KernelPackage
/mac80211
/Default
)
283 TITLE
:=Atheros
5xxx wireless cards support
284 URL
:=http
://linuxwireless.org
/en
/users
/Drivers
/ath5k
286 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/ath
/ath5k
/ath5k.
$(LINUX_KMOD_SUFFIX
)
287 AUTOLOAD
:=$(call AutoLoad
,27,ath5k
)
290 define KernelPackage
/ath5k
/description
291 This module adds support for wireless adapters based on
292 Atheros
5xxx chipset.
295 define KernelPackage
/ath9k
296 $(call KernelPackage
/mac80211
/Default
)
297 TITLE
:=Atheros
802.11n wireless cards support
298 URL
:=http
://linuxwireless.org
/en
/users
/Drivers
/ath9k
299 DEPENDS
+= +kmod-ath @
!LINUX_2_6_21
&&!LINUX_2_6_25
300 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/ath
/ath9k
/ath9k.
$(LINUX_KMOD_SUFFIX
)
301 AUTOLOAD
:=$(call AutoLoad
,27,ath9k
)
304 define KernelPackage
/ath9k
/description
305 This module adds support for wireless adapters based on
306 Atheros IEEE
802.11n AR5008 and AR9001 family of chipsets.
309 define KernelPackage
/mac80211-hwsim
310 $(call KernelPackage
/mac80211
/Default
)
311 TITLE
:=mac80211 HW simulation device
312 DEPENDS
+= +kmod-mac80211
313 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/mac80211_hwsim.
$(LINUX_KMOD_SUFFIX
)
314 AUTOLOAD
:=$(call AutoLoad
,60,mac80211_hwsim
)
318 ifneq ($(CONFIG_B43_EXPERIMENTAL
),)
319 PKG_B43_FWV4_NAME
:=broadcom-wl
320 PKG_B43_FWV4_VERSION
:=4.178.10.4
321 PKG_B43_FWV4_OBJECT
:=$(PKG_B43_FWV4_NAME
)-$(PKG_B43_FWV4_VERSION
)/linux
/wl.o
322 PKG_B43_FWV4_SOURCE
:=$(PKG_B43_FWV4_NAME
)-$(PKG_B43_FWV4_VERSION
).
tar.bz2
323 PKG_B43_FWV4_SOURCE_URL
:=http
://mirror2.openwrt.org
/sources
/
324 PKG_B43_FWV4_MD5SUM
:=14477e8cbbb91b11896affac9b219fdb
326 PKG_B43_FWV4_NAME
:=broadcom-wl
327 PKG_B43_FWV4_VERSION
:=4.150.10.5
328 PKG_B43_FWV4_OBJECT
:=$(PKG_B43_FWV4_NAME
)-$(PKG_B43_FWV4_VERSION
)/driver
/wl_apsta_mimo.o
329 PKG_B43_FWV4_SOURCE
:=$(PKG_B43_FWV4_NAME
)-$(PKG_B43_FWV4_VERSION
).
tar.bz2
330 PKG_B43_FWV4_SOURCE_URL
:=http
://mirror2.openwrt.org
/sources
/
331 PKG_B43_FWV4_MD5SUM
:=0c6ba9687114c6b598e8019e262d9a60
333 ifneq ($(CONFIG_B43_OPENFIRMWARE
),)
334 PKG_B43_FWV4_NAME
:=broadcom-wl
335 PKG_B43_FWV4_VERSION
:=5.1
336 PKG_B43_FWV4_OBJECT
:=openfwwf-
$(PKG_B43_FWV4_VERSION
)
337 PKG_B43_FWV4_SOURCE
:=openfwwf-
$(PKG_B43_FWV4_VERSION
).
tar.gz
338 PKG_B43_FWV4_SOURCE_URL
:=http
://www.ing.unibs.it
/openfwwf
/firmware
/
339 PKG_B43_FWV4_MD5SUM
:=3510c133393bb4911c4aa35742cefcfd
343 PKG_B43_FWV3_NAME
:=wl_apsta
344 PKG_B43_FWV3_VERSION
:=3.130.20.0
345 PKG_B43_FWV3_SOURCE
:=$(PKG_B43_FWV3_NAME
)-$(PKG_B43_FWV3_VERSION
).o
346 PKG_B43_FWV3_SOURCE_URL
:=http
://downloads.openwrt.org
/sources
/
347 PKG_B43_FWV3_MD5SUM
:=e08665c5c5b66beb9c3b2dd54aa80cb3
349 ifneq ($(CONFIG_B43_EXPERIMENTAL
)$(CONFIG_B43_OPENFIRMWARE
),)
350 PKG_B43_FWCUTTER_NAME
:=b43-fwcutter
351 PKG_B43_FWCUTTER_VERSION
:=3e69531aa65b8f664a0ab00dfc3e2eefeb0cb417
352 PKG_B43_FWCUTTER_SOURCE
:=$(PKG_B43_FWCUTTER_NAME
)-$(PKG_B43_FWCUTTER_VERSION
).
tar.bz2
353 PKG_B43_FWCUTTER_PROTO
:=git
354 PKG_B43_FWCUTTER_SOURCE_URL
:=http
://git.bu3sch.de
/git
/b43-tools.git
355 PKG_B43_FWCUTTER_SUBDIR
:=$(PKG_B43_FWCUTTER_NAME
)-$(PKG_B43_FWCUTTER_VERSION
)
356 PKG_B43_FWCUTTER_OBJECT
:=$(PKG_B43_FWCUTTER_NAME
)-$(PKG_B43_FWCUTTER_VERSION
)/fwcutter
/
358 PKG_B43_FWCUTTER_NAME
:=b43-fwcutter
359 PKG_B43_FWCUTTER_VERSION
:=011
360 PKG_B43_FWCUTTER_SOURCE
:=$(PKG_B43_FWCUTTER_NAME
)-$(PKG_B43_FWCUTTER_VERSION
).
tar.bz2
361 PKG_B43_FWCUTTER_PROTO
:=default
362 PKG_B43_FWCUTTER_SOURCE_URL
:=http
://bu3sch.de
/b43
/fwcutter
/
363 PKG_B43_FWCUTTER_MD5SUM
:=3db2f4de85a459451f5b391cf67a8d44
364 PKG_B43_FWCUTTER_SUBDIR
:=b43-fwcutter-
$(PKG_B43_FWCUTTER_VERSION
)
365 PKG_B43_FWCUTTER_OBJECT
:=$(PKG_B43_FWCUTTER_NAME
)-$(PKG_B43_FWCUTTER_VERSION
)/
368 define Download
/b43-common
369 FILE
:=$(PKG_B43_FWCUTTER_SOURCE
)
370 URL
:=$(PKG_B43_FWCUTTER_SOURCE_URL
)
371 MD5SUM
:=$(PKG_B43_FWCUTTER_MD5SUM
)
372 PROTO
:=$(PKG_B43_FWCUTTER_PROTO
)
373 VERSION
:=$(PKG_B43_FWCUTTER_VERSION
)
374 SUBDIR
:=$(PKG_B43_FWCUTTER_SUBDIR
)
376 $(eval
$(call Download
,b43-common
))
379 FILE
:=$(PKG_B43_FWV4_SOURCE
)
380 URL
:=$(PKG_B43_FWV4_SOURCE_URL
)
381 MD5SUM
:=$(PKG_B43_FWV4_MD5SUM
)
383 $(eval
$(call Download
,b43
))
385 define Download
/b43legacy
386 FILE
:=$(PKG_B43_FWV3_SOURCE
)
387 URL
:=$(PKG_B43_FWV3_SOURCE_URL
)
388 MD5SUM
:=$(PKG_B43_FWV3_MD5SUM
)
390 $(eval
$(call Download
,b43legacy
))
392 define KernelPackage
/b43-common
393 $(call KernelPackage
/mac80211
/Default
)
394 TITLE
:=Generic stuff for Broadcom wireless devices
395 URL
:=http
://linuxwireless.org
/en
/users
/Drivers
/b43
396 DEPENDS
+= +kmod-mac80211
+!(TARGET_brcm47xx||TARGET_brcm63xx
):kmod-ssb @
!LINUX_2_6_21
399 define KernelPackage
/b43
400 $(call KernelPackage
/b43-common
)
401 TITLE
:=Broadcom
43xx wireless support
402 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/b43
/b43.
$(LINUX_KMOD_SUFFIX
)
403 AUTOLOAD
:=$(call AutoLoad
,30,b43
)
406 define KernelPackage
/b43
/config
407 source
"$(SOURCE)/Config.in"
410 define KernelPackage
/b43
/description
411 Kernel module for Broadcom
43xx wireless support
(mac80211 stack
) new
414 define KernelPackage
/b43legacy
415 $(call KernelPackage
/b43-common
)
416 TITLE
:=Broadcom
43xx-legacy wireless support
417 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/b43legacy
/b43legacy.
$(LINUX_KMOD_SUFFIX
)
418 AUTOLOAD
:=$(call AutoLoad
,30,b43legacy
)
421 define KernelPackage
/b43legacy
/description
422 Kernel module for Broadcom
43xx-legacy wireless support
(mac80211 stack
) new
426 -I
$(PKG_BUILD_DIR
)/include \
427 $(foreach opt
,$(CONFOPTS
),-DCONFIG_
$(opt
)) \
428 $(if
$(CONFIG_PCI
),-DCONFIG_B43_PCI_AUTOSELECT
-DCONFIG_B43_PCICORE_AUTOSELECT
-DCONFIG_SSB_DRIVER_PCICORE_POSSIBLE
-DCONFIG_SSB_DRIVER_PCICORE
) \
429 $(if
$(CONFIG_PCI
),-DCONFIG_SSB_PCIHOST_POSSIBLE
-DCONFIG_SSB_PCIHOST
) \
430 $(if
$(CONFIG_PCI
),-DCONFIG_SSB_SPROM
) \
431 $(if
$(CONFIG_LEDS_TRIGGERS
), -DCONFIG_MAC80211_LEDS
-DCONFIG_LEDS_TRIGGERS
-DCONFIG_B43_LEDS
-DCONFIG_B43LEGACY_LEDS
) \
432 $(if
$(CONFIG_RFKILL_INPUT
),-DCONFIG_B43_RFKILL
-DCONFIG_B43LEGACY_RFKILL
) \
433 $(if
$(CONFIG_HW_RANDOM
),-DCONFIG_B43_HWRNG
-DCONFIG_B43LEGACY_HWRNG
) \
434 $(if
$(CONFIG_DEBUG_FS
), -DCONFIG_MAC80211_DEBUGFS
) \
435 -D__CONFIG_MAC80211_RC_DEFAULT
=minstrel \
438 CROSS_COMPILE
="$(TARGET_CROSS)" \
439 ARCH
="$(LINUX_KARCH)" \
440 EXTRA_CFLAGS
="$(BUILDFLAGS)" \
441 $(foreach opt
,$(CONFOPTS
),CONFIG_
$(opt
)=m
) \
443 CONFIG_MAC80211_RC_PID
=y \
444 CONFIG_MAC80211_RC_MINSTREL
=y \
445 CONFIG_MAC80211_LEDS
=$(CONFIG_LEDS_TRIGGERS
) \
446 CONFIG_MAC80211_DEBUGFS
=$(CONFIG_DEBUG_FS
) \
447 CONFIG_B43_PCMCIA
=n CONFIG_B43_PIO
=n \
448 $(if
$(CONFIG_PCI
),CONFIG_B43_PCI_AUTOSELECT
=y
,CONFIG_B43_PCI_AUTOSELECT
=n
) \
449 $(if
$(CONFIG_PCI
),CONFIG_B43_PCICORE_AUTOSELECT
=y
,CONFIG_B43_PCICORE_AUTOSELECT
=n
) \
450 $(if
$(CONFIG_PCI
),CONFIG_SSB_DRIVER_PCICORE_POSSIBLE
=y
,CONFIG_SSB_DRIVER_PCICORE_POSSIBLE
=n
) \
451 $(if
$(CONFIG_PCI
),CONFIG_SSB_DRIVER_PCICORE
=y
,CONFIG_SSB_DRIVER_PCICORE
=n
) \
452 $(if
$(CONFIG_PCI
),CONFIG_SSB_PCIHOST_POSSIBLE
=y
,CONFIG_SSB_PCIHOST_POSSIBLE
=n
) \
453 $(if
$(CONFIG_PCI
),CONFIG_SSB_PCIHOST
=y
,CONFIG_SSB_PCIHOST
=n
) \
454 $(if
$(CONFIG_RFKILL_INPUT
),CONFIG_B43_RFKILL
=y
,CONFIG_B43_RFKILL
=n
) \
455 $(if
$(CONFIG_RFKILL_INPUT
),CONFIG_B43LEGACY_RFKILL
=y
,CONFIG_B43LEGACY_RFKILL
=n
) \
456 CONFIG_B43LEGACY_LEDS
=$(CONFIG_LEDS_TRIGGERS
) \
457 CONFIG_B43_LEDS
=$(CONFIG_LEDS_TRIGGERS
) \
458 $(if
$(CONFIG_HW_RANDOM
),CONFIG_B43_HWRNG
=y
,CONFIG_B43_HWRNG
=n
) \
459 $(if
$(CONFIG_HW_RANDOM
),CONFIG_B43LEGACY_HWRNG
=y
,CONFIG_B43LEGACY_HWRNG
=n
) \
460 $(if
$(CONFIG_PACKAGE_kmod-b43
),CONFIG_B43
=m
) \
461 $(if
$(CONFIG_PACKAGE_kmod-b43legacy
),CONFIG_B43LEGACY
=m
) \
462 KLIB_BUILD
="$(LINUX_DIR)" \
466 rm -rf
$(PKG_BUILD_DIR
)
467 mkdir
-p
$(PKG_BUILD_DIR
)
470 unzip
-jod
$(PKG_BUILD_DIR
) $(DL_DIR
)/$(RT61FW
)
471 unzip
-jod
$(PKG_BUILD_DIR
) $(DL_DIR
)/$(RT71FW
)
472 -unzip
-jod
$(PKG_BUILD_DIR
) $(DL_DIR
)/$(RT2860FW
)
473 -unzip
-jod
$(PKG_BUILD_DIR
) $(DL_DIR
)/$(RT2870FW
)
474 $(TAR
) -C
$(PKG_BUILD_DIR
) -xjf
$(DL_DIR
)/$(ZD1211FW_NAME
)-$(ZD1211FW_VERSION
).
tar.bz2
475 rm -rf
$(PKG_BUILD_DIR
)/include/linux
/ssb
476 rm -f
$(PKG_BUILD_DIR
)/include/net
/ieee80211.h
477 rm $(PKG_BUILD_DIR
)/include/linux
/eeprom_93cx6.h
480 ifneq ($(CONFIG_PACKAGE_kmod-mac80211
),)
481 define Build
/Compile
/kmod
482 rm -rf
$(PKG_BUILD_DIR
)/modules
483 $(MAKE
) -C
"$(PKG_BUILD_DIR)" $(MAKE_OPTS
) all
488 $(call Build
/Compile
/kmod
)
491 define Build
/InstallDev
492 mkdir
-p
$(1)/usr
/include/mac80211
$(1)/usr
/include/net
/mac80211
493 $(CP
) $(PKG_BUILD_DIR
)/net
/mac80211
/*.h
$(PKG_BUILD_DIR
)/include/* $(1)/usr
/include/mac80211
/
494 $(CP
) $(PKG_BUILD_DIR
)/net
/mac80211
/rate.h
$(1)/usr
/include/net
/mac80211
/
497 define KernelPackage
/mac80211
/install
498 $(INSTALL_DIR
) $(1)/lib
/wifi
499 $(INSTALL_DATA
) .
/files
/lib
/wifi
/mac80211.sh
$(1)/lib
/wifi
502 define KernelPackage
/p54-pci
/install
503 $(INSTALL_DIR
) $(1)/lib
/firmware
504 $(INSTALL_DATA
) $(DL_DIR
)/$(P54PCIFW
) $(1)/lib
/firmware
/isl3886pci
507 define KernelPackage
/p54-usb
/install
508 $(INSTALL_DIR
) $(1)/lib
/firmware
509 $(INSTALL_DATA
) $(DL_DIR
)/$(P54USBFW
) $(1)/lib
/firmware
/isl3886usb
512 define KernelPackage
/rt61-pci
/install
513 $(INSTALL_DIR
) $(1)/lib
/firmware
514 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/rt2?
61*.bin
$(1)/lib
/firmware
/
517 define KernelPackage
/rt73-usb
/install
518 $(INSTALL_DIR
) $(1)/lib
/firmware
519 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/rt73.bin
$(1)/lib
/firmware
/
522 define KernelPackage
/rt2800-pci
/install
523 $(INSTALL_DIR
) $(1)/lib
/firmware
524 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/rt2860.bin
$(1)/lib
/firmware
/
527 define KernelPackage
/rt2800-usb
/install
528 $(INSTALL_DIR
) $(1)/lib
/firmware
529 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/rt2870.bin
$(1)/lib
/firmware
/
532 define KernelPackage
/zd1211rw
/install
533 $(INSTALL_DIR
) $(1)/lib
/firmware
/zd1211
534 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/$(ZD1211FW_NAME
)/zd1211
* $(1)/lib
/firmware
/zd1211
537 define Build
/b43-common
538 tar xjf
"$(DL_DIR)/$(PKG_B43_FWCUTTER_SOURCE)" -C
"$(PKG_BUILD_DIR)"
539 $(MAKE
) -C
"$(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_OBJECT)" \
540 CFLAGS
="-I$(STAGING_DIR_HOST)/include -include endian.h"
541 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWCUTTER_OBJECT
)/b43-fwcutter
$(STAGING_DIR_HOST
)/bin
/
542 ifneq ($(CONFIG_B43_OPENFIRMWARE
),)
543 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/bin
/
544 $(MAKE
) -C
"$(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_SUBDIR)/assembler/"
545 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWCUTTER_SUBDIR
)/assembler
/b43-asm
$(STAGING_DIR_HOST
)/bin
/
546 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWCUTTER_SUBDIR
)/assembler
/b43-asm.bin
$(STAGING_DIR_HOST
)/bin
/
548 $(INSTALL_BIN
) .
/files
/host_bin
/b43-fwsquash.py
$(STAGING_DIR_HOST
)/bin
/
551 define KernelPackage
/b43
/install
552 rm -rf
$(1)/lib
/firmware
/
553 $(call Build
/b43-common
)
554 ifneq ($(CONFIG_B43_OPENFIRMWARE
),)
555 tar xzf
"$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C
"$(PKG_BUILD_DIR)"
557 tar xjf
"$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C
"$(PKG_BUILD_DIR)"
559 $(INSTALL_DIR
) $(1)/lib
/firmware
/
560 ifneq ($(CONFIG_B43_OPENFIRMWARE
),)
561 $(MAKE
) -C
"$(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/"
562 $(INSTALL_DIR
) $(1)/lib
/firmware
/b43-open
/
563 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWV4_OBJECT
)/ucode5.fw
$(1)/lib
/firmware
/b43-open
/ucode5.fw
564 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWV4_OBJECT
)/b0g0bsinitvals5.fw
$(1)/lib
/firmware
/b43-open
/b0g0bsinitvals5.fw
565 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWV4_OBJECT
)/b0g0initvals5.fw
$(1)/lib
/firmware
/b43-open
/b0g0initvals5.fw
567 b43-fwcutter
--unsupported
-w
$(1)/lib
/firmware
/ $(PKG_BUILD_DIR
)/$(PKG_B43_FWV4_OBJECT
)
569 ifneq ($(CONFIG_B43_FW_SQUASH
),)
570 b43-fwsquash.py
"$(CONFIG_B43_FW_SQUASH_PHYTYPES)" "$(CONFIG_B43_FW_SQUASH_COREREVS)" "$(1)/lib/firmware/b43"
574 define KernelPackage
/b43legacy
/install
575 $(call Build
/b43-common
)
576 $(INSTALL_DIR
) $(1)/lib
/firmware
/
578 b43-fwcutter
--unsupported
-w
$(1)/lib
/firmware
/ $(DL_DIR
)/$(PKG_B43_FWV3_SOURCE
)
581 $(eval
$(call KernelPackage
,ath5k
))
582 $(eval
$(call KernelPackage
,mac80211
))
583 $(eval
$(call KernelPackage
,p54-common
))
584 $(eval
$(call KernelPackage
,p54-pci
))
585 $(eval
$(call KernelPackage
,p54-usb
))
586 $(eval
$(call KernelPackage
,rt2x00-lib
))
587 $(eval
$(call KernelPackage
,rt2x00-pci
))
588 $(eval
$(call KernelPackage
,rt2x00-usb
))
589 $(eval
$(call KernelPackage
,rt2400-pci
))
590 $(eval
$(call KernelPackage
,rt2500-pci
))
591 $(eval
$(call KernelPackage
,rt2500-usb
))
592 $(eval
$(call KernelPackage
,rt61-pci
))
593 $(eval
$(call KernelPackage
,rt73-usb
))
594 $(eval
$(call KernelPackage
,rt2800-pci
))
595 $(eval
$(call KernelPackage
,rt2800-usb
))
596 $(eval
$(call KernelPackage
,rtl8180
))
597 $(eval
$(call KernelPackage
,rtl8187
))
598 $(eval
$(call KernelPackage
,zd1211rw
))
599 $(eval
$(call KernelPackage
,mac80211-hwsim
))
600 $(eval
$(call KernelPackage
,ath9k
))
601 $(eval
$(call KernelPackage
,ath
))
602 $(eval
$(call KernelPackage
,b43
))
603 $(eval
$(call KernelPackage
,b43legacy
))