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-08-15
23 http
://www.orbit-lab.org
/kernel
/compat-wireless-2.6
/2009/08 \
24 http
://wireless.kernel.org
/download
/compat-wireless-2.6
25 PKG_MD5SUM
:=bc71c2b8554bb79511e9a38dd6d5b318
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.2
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
:=e045a135453274e439ae183f8498b0fa
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_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
:=012
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
:=69eadf67b459f313a8d6b37aaabef96c
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_HW_RANDOM
),-DCONFIG_B43_HWRNG
-DCONFIG_B43LEGACY_HWRNG
) \
433 $(if
$(CONFIG_DEBUG_FS
), -DCONFIG_MAC80211_DEBUGFS
) \
434 -D__CONFIG_MAC80211_RC_DEFAULT
=minstrel \
437 CROSS_COMPILE
="$(KERNEL_CROSS)" \
438 ARCH
="$(LINUX_KARCH)" \
439 EXTRA_CFLAGS
="$(BUILDFLAGS)" \
440 $(foreach opt
,$(CONFOPTS
),CONFIG_
$(opt
)=m
) \
442 CONFIG_MAC80211_RC_PID
=y \
443 CONFIG_MAC80211_RC_MINSTREL
=y \
444 CONFIG_MAC80211_LEDS
=$(CONFIG_LEDS_TRIGGERS
) \
445 CONFIG_MAC80211_DEBUGFS
=$(CONFIG_DEBUG_FS
) \
446 CONFIG_B43_PCMCIA
=n CONFIG_B43_PIO
=n \
447 $(if
$(CONFIG_PCI
),CONFIG_B43_PCI_AUTOSELECT
=y
,CONFIG_B43_PCI_AUTOSELECT
=n
) \
448 $(if
$(CONFIG_PCI
),CONFIG_B43_PCICORE_AUTOSELECT
=y
,CONFIG_B43_PCICORE_AUTOSELECT
=n
) \
449 $(if
$(CONFIG_PCI
),CONFIG_SSB_DRIVER_PCICORE_POSSIBLE
=y
,CONFIG_SSB_DRIVER_PCICORE_POSSIBLE
=n
) \
450 $(if
$(CONFIG_PCI
),CONFIG_SSB_DRIVER_PCICORE
=y
,CONFIG_SSB_DRIVER_PCICORE
=n
) \
451 $(if
$(CONFIG_PCI
),CONFIG_SSB_PCIHOST_POSSIBLE
=y
,CONFIG_SSB_PCIHOST_POSSIBLE
=n
) \
452 $(if
$(CONFIG_PCI
),CONFIG_SSB_PCIHOST
=y
,CONFIG_SSB_PCIHOST
=n
) \
453 CONFIG_B43LEGACY_LEDS
=$(CONFIG_LEDS_TRIGGERS
) \
454 CONFIG_B43_LEDS
=$(CONFIG_LEDS_TRIGGERS
) \
455 $(if
$(CONFIG_HW_RANDOM
),CONFIG_B43_HWRNG
=y
,CONFIG_B43_HWRNG
=n
) \
456 $(if
$(CONFIG_HW_RANDOM
),CONFIG_B43LEGACY_HWRNG
=y
,CONFIG_B43LEGACY_HWRNG
=n
) \
457 $(if
$(CONFIG_PACKAGE_kmod-b43
),CONFIG_B43
=m
) \
458 $(if
$(CONFIG_PACKAGE_kmod-b43legacy
),CONFIG_B43LEGACY
=m
) \
459 $(if
$(CONFIG_PACKAGE_kmod-ath
),CONFIG_ATH_COMMON
=m
) \
460 $(if
$(CONFIG_PACKAGE_kmod-ath5k
),CONFIG_ATH5K
=m
) \
461 $(if
$(CONFIG_PACKAGE_kmod-ath9k
),CONFIG_ATH9K
=m
) \
462 $(if
$(CONFIG_PACKAGE_kmod-zd1211rw
),CONFIG_ZD1211RW
=m
) \
463 $(if
$(CONFIG_PACKAGE_kmod-p54-common
),CONFIG_P54_COMMON
=m
) \
464 $(if
$(CONFIG_PACKAGE_kmod-p54-pci
),CONFIG_P54_PCI
=m
) \
465 $(if
$(CONFIG_PACKAGE_kmod-p54-usb
),CONFIG_P54_USB
=m
) \
466 $(if
$(CONFIG_PACKAGE_kmod-rt2x00-lib
),CONFIG_RT2X00
=m
) \
467 $(if
$(CONFIG_PACKAGE_kmod-rt2x00-pci
),CONFIG_RT2X00_LIB_PCI
=m
) \
468 $(if
$(CONFIG_PACKAGE_kmod-rt2x00-usb
),CONFIG_RT2X00_LIB_USB
=m
) \
469 $(if
$(CONFIG_PACKAGE_kmod-rt2400-pci
),CONFIG_RT2400PCI
=m
) \
470 $(if
$(CONFIG_PACKAGE_kmod-rt2500-pci
),CONFIG_RT2500PCI
=m
) \
471 $(if
$(CONFIG_PACKAGE_kmod-rt2500-usb
),CONFIG_RT2500USB
=m
) \
472 $(if
$(CONFIG_PACKAGE_kmod-rt61-pci
),CONFIG_RT61PCI
=m
) \
473 $(if
$(CONFIG_PACKAGE_kmod-rt73-usb
),CONFIG_RT73USB
=m
) \
474 $(if
$(CONFIG_PACKAGE_kmod-rt2800-pci
),CONFIG_RT2800PCI
=m
) \
475 $(if
$(CONFIG_PACKAGE_kmod-rt2800-usb
),CONFIG_RT2800USB
=m
) \
476 $(if
$(CONFIG_PACKAGE_kmod-rtl8180
),CONFIG_RTL8180
=m
) \
477 $(if
$(CONFIG_PACKAGE_kmod-rtl8187
),CONFIG_RTL8187
=m
) \
478 $(if
$(CONFIG_PACKAGE_kmod-mac80211-hwsim
),CONFIG_MAC80211_HWSIM
=m
) \
479 KLIB_BUILD
="$(LINUX_DIR)" \
483 rm -rf
$(PKG_BUILD_DIR
)
484 mkdir
-p
$(PKG_BUILD_DIR
)
487 unzip
-jod
$(PKG_BUILD_DIR
) $(DL_DIR
)/$(RT61FW
)
488 unzip
-jod
$(PKG_BUILD_DIR
) $(DL_DIR
)/$(RT71FW
)
489 -unzip
-jod
$(PKG_BUILD_DIR
) $(DL_DIR
)/$(RT2860FW
)
490 -unzip
-jod
$(PKG_BUILD_DIR
) $(DL_DIR
)/$(RT2870FW
)
491 $(TAR
) -C
$(PKG_BUILD_DIR
) -xjf
$(DL_DIR
)/$(ZD1211FW_NAME
)-$(ZD1211FW_VERSION
).
tar.bz2
492 rm -rf
$(PKG_BUILD_DIR
)/include/linux
/ssb
493 rm -f
$(PKG_BUILD_DIR
)/include/net
/ieee80211.h
494 rm $(PKG_BUILD_DIR
)/include/linux
/eeprom_93cx6.h
497 ifneq ($(CONFIG_PACKAGE_kmod-mac80211
),)
498 define Build
/Compile
/kmod
499 rm -rf
$(PKG_BUILD_DIR
)/modules
500 $(MAKE
) -C
"$(PKG_BUILD_DIR)" $(MAKE_OPTS
) all
505 $(call Build
/Compile
/kmod
)
508 define Build
/InstallDev
509 mkdir
-p
$(1)/usr
/include/mac80211
$(1)/usr
/include/net
/mac80211
510 $(CP
) $(PKG_BUILD_DIR
)/net
/mac80211
/*.h
$(PKG_BUILD_DIR
)/include/* $(1)/usr
/include/mac80211
/
511 $(CP
) $(PKG_BUILD_DIR
)/net
/mac80211
/rate.h
$(1)/usr
/include/net
/mac80211
/
514 define KernelPackage
/mac80211
/install
515 $(INSTALL_DIR
) $(1)/lib
/wifi
516 $(INSTALL_DATA
) .
/files
/lib
/wifi
/mac80211.sh
$(1)/lib
/wifi
519 define KernelPackage
/p54-pci
/install
520 $(INSTALL_DIR
) $(1)/lib
/firmware
521 $(INSTALL_DATA
) $(DL_DIR
)/$(P54PCIFW
) $(1)/lib
/firmware
/isl3886pci
524 define KernelPackage
/p54-usb
/install
525 $(INSTALL_DIR
) $(1)/lib
/firmware
526 $(INSTALL_DATA
) $(DL_DIR
)/$(P54USBFW
) $(1)/lib
/firmware
/isl3886usb
529 define KernelPackage
/rt61-pci
/install
530 $(INSTALL_DIR
) $(1)/lib
/firmware
531 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/rt2?
61*.bin
$(1)/lib
/firmware
/
534 define KernelPackage
/rt73-usb
/install
535 $(INSTALL_DIR
) $(1)/lib
/firmware
536 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/rt73.bin
$(1)/lib
/firmware
/
539 define KernelPackage
/rt2800-pci
/install
540 $(INSTALL_DIR
) $(1)/lib
/firmware
541 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/rt2860.bin
$(1)/lib
/firmware
/
544 define KernelPackage
/rt2800-usb
/install
545 $(INSTALL_DIR
) $(1)/lib
/firmware
546 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/rt2870.bin
$(1)/lib
/firmware
/
549 define KernelPackage
/zd1211rw
/install
550 $(INSTALL_DIR
) $(1)/lib
/firmware
/zd1211
551 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/$(ZD1211FW_NAME
)/zd1211
* $(1)/lib
/firmware
/zd1211
554 define Build
/b43-common
555 tar xjf
"$(DL_DIR)/$(PKG_B43_FWCUTTER_SOURCE)" -C
"$(PKG_BUILD_DIR)"
556 $(MAKE
) -C
"$(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_OBJECT)" \
557 CFLAGS
="-I$(STAGING_DIR_HOST)/include -include endian.h"
558 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWCUTTER_OBJECT
)/b43-fwcutter
$(STAGING_DIR_HOST
)/bin
/
559 ifneq ($(CONFIG_B43_OPENFIRMWARE
),)
560 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/bin
/
561 $(MAKE
) -C
"$(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_SUBDIR)/assembler/"
562 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWCUTTER_SUBDIR
)/assembler
/b43-asm
$(STAGING_DIR_HOST
)/bin
/
563 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWCUTTER_SUBDIR
)/assembler
/b43-asm.bin
$(STAGING_DIR_HOST
)/bin
/
565 $(INSTALL_BIN
) .
/files
/host_bin
/b43-fwsquash.py
$(STAGING_DIR_HOST
)/bin
/
568 define KernelPackage
/b43
/install
569 rm -rf
$(1)/lib
/firmware
/
570 $(call Build
/b43-common
)
571 ifneq ($(CONFIG_B43_OPENFIRMWARE
),)
572 tar xzf
"$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C
"$(PKG_BUILD_DIR)"
574 tar xjf
"$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C
"$(PKG_BUILD_DIR)"
576 $(INSTALL_DIR
) $(1)/lib
/firmware
/
577 ifneq ($(CONFIG_B43_OPENFIRMWARE
),)
578 $(MAKE
) -C
"$(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/"
579 $(INSTALL_DIR
) $(1)/lib
/firmware
/b43-open
/
580 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWV4_OBJECT
)/ucode5.fw
$(1)/lib
/firmware
/b43-open
/ucode5.fw
581 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWV4_OBJECT
)/b0g0bsinitvals5.fw
$(1)/lib
/firmware
/b43-open
/b0g0bsinitvals5.fw
582 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWV4_OBJECT
)/b0g0initvals5.fw
$(1)/lib
/firmware
/b43-open
/b0g0initvals5.fw
584 b43-fwcutter
--unsupported
-w
$(1)/lib
/firmware
/ $(PKG_BUILD_DIR
)/$(PKG_B43_FWV4_OBJECT
)
586 ifneq ($(CONFIG_B43_FW_SQUASH
),)
587 b43-fwsquash.py
"$(CONFIG_B43_FW_SQUASH_PHYTYPES)" "$(CONFIG_B43_FW_SQUASH_COREREVS)" "$(1)/lib/firmware/b43"
591 define KernelPackage
/b43legacy
/install
592 $(call Build
/b43-common
)
593 $(INSTALL_DIR
) $(1)/lib
/firmware
/
595 b43-fwcutter
--unsupported
-w
$(1)/lib
/firmware
/ $(DL_DIR
)/$(PKG_B43_FWV3_SOURCE
)
598 $(eval
$(call KernelPackage
,ath5k
))
599 $(eval
$(call KernelPackage
,mac80211
))
600 $(eval
$(call KernelPackage
,p54-common
))
601 $(eval
$(call KernelPackage
,p54-pci
))
602 $(eval
$(call KernelPackage
,p54-usb
))
603 $(eval
$(call KernelPackage
,rt2x00-lib
))
604 $(eval
$(call KernelPackage
,rt2x00-pci
))
605 $(eval
$(call KernelPackage
,rt2x00-usb
))
606 $(eval
$(call KernelPackage
,rt2400-pci
))
607 $(eval
$(call KernelPackage
,rt2500-pci
))
608 $(eval
$(call KernelPackage
,rt2500-usb
))
609 $(eval
$(call KernelPackage
,rt61-pci
))
610 $(eval
$(call KernelPackage
,rt73-usb
))
611 $(eval
$(call KernelPackage
,rt2800-pci
))
612 $(eval
$(call KernelPackage
,rt2800-usb
))
613 $(eval
$(call KernelPackage
,rtl8180
))
614 $(eval
$(call KernelPackage
,rtl8187
))
615 $(eval
$(call KernelPackage
,zd1211rw
))
616 $(eval
$(call KernelPackage
,mac80211-hwsim
))
617 $(eval
$(call KernelPackage
,ath9k
))
618 $(eval
$(call KernelPackage
,ath
))
619 $(eval
$(call KernelPackage
,b43
))
620 $(eval
$(call KernelPackage
,b43legacy
))