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 PKG_VERSION
:=2009-08-20
16 http
://www.orbit-lab.org
/kernel
/compat-wireless-2.6
/2009/08 \
17 http
://wireless.kernel.org
/download
/compat-wireless-2.6
18 PKG_MD5SUM
:=0b3919adf847a59478cc4fb58e1cb6ec
20 PKG_SOURCE
:=compat-wireless-
$(PKG_VERSION
).
tar.bz2
21 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/compat-wireless-
$(PKG_VERSION
)
23 PKG_CONFIG_DEPENDS
:= \
24 CONFIG_PACKAGE_kmod-mac80211 \
26 include $(INCLUDE_DIR
)/package.mk
28 WMENU
:=Wireless Drivers
30 define KernelPackage
/mac80211
/Default
32 URL
:=http
://linuxwireless.org
/
33 DEPENDS
:=@LINUX_2_6 @
!TARGET_avr32
36 define KernelPackage
/mac80211
37 $(call KernelPackage
/mac80211
/Default
)
38 TITLE
:=Linux
802.11 Wireless Networking Stack
39 DEPENDS
+= +kmod-crypto-arc4
+kmod-crypto-aes
+wireless-tools @
!LINUX_2_6_21 @
!LINUX_2_6_25
41 $(PKG_BUILD_DIR
)/net
/mac80211
/mac80211.
$(LINUX_KMOD_SUFFIX
) \
42 $(PKG_BUILD_DIR
)/net
/wireless
/cfg80211.
$(LINUX_KMOD_SUFFIX
)
43 AUTOLOAD
:=$(call AutoLoad
,20,cfg80211 mac80211
)
46 define KernelPackage
/mac80211
/config
47 source
"$(SOURCE)/Config.in"
50 define KernelPackage
/mac80211
/description
51 Linux
802.11 Wireless Networking Stack
55 P54PCIFW
:=2.13.12.0.arm
56 P54USBFW
:=2.13.24.0.lm86.arm
58 define Download
/p54usb
60 URL
:=http
://daemonizer.de
/prism54
/prism54-fw
/fw-usb
61 MD5SUM
:=2efd50eab43c0d0376765576a54b7a30
63 $(eval
$(call Download
,p54usb
))
65 define Download
/p54pci
67 URL
:=http
://daemonizer.de
/prism54
/prism54-fw
/fw-softmac
68 MD5SUM
:=ff7536af2092b1c4b21315bd103ef4c4
70 $(eval
$(call Download
,p54pci
))
72 define KernelPackage
/p54
/Default
73 $(call KernelPackage
/mac80211
/Default
)
74 TITLE
:=Prism54 Drivers
77 define KernelPackage
/p54
/description
78 Kernel module for Prism54 chipsets
(mac80211
)
81 define KernelPackage
/p54-common
82 $(call KernelPackage
/p54
/Default
)
83 DEPENDS
+= @PCI_SUPPORT||@USB_SUPPORT
+kmod-mac80211
85 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/p54
/p54common.
$(LINUX_KMOD_SUFFIX
)
86 AUTOLOAD
:=$(call AutoLoad
,30,p54common
)
89 define KernelPackage
/p54-pci
90 $(call KernelPackage
/p54
/Default
)
92 DEPENDS
+= @PCI_SUPPORT
+kmod-p54-common
93 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/p54
/p54pci.
$(LINUX_KMOD_SUFFIX
)
94 AUTOLOAD
:=$(call AutoLoad
,31,p54pci
)
97 define KernelPackage
/p54-usb
98 $(call KernelPackage
/p54
/Default
)
100 DEPENDS
+= @USB_SUPPORT
+kmod-usb-core
+kmod-p54-common
101 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/p54
/p54usb.
$(LINUX_KMOD_SUFFIX
)
102 AUTOLOAD
:=$(call AutoLoad
,31,p54usb
)
105 # Ralink rt2x00 drivers
106 RT61FW
:=RT61_Firmware_V1.2.zip
107 RT71FW
:=RT71W_Firmware_V1.8.zip
108 RT2860FW
:=RT2860_Firmware_V11.zip
109 RT2870FW
:=RT2870_Firmware_V8.zip
113 URL
:=http
://www.ralinktech.com.tw
/data
/
114 MD5SUM
:=d4c690c93b470bc9a681297c2adc6281
116 $(eval
$(call Download
,rt61
))
118 define Download
/rt71w
120 URL
:=http
://www.ralinktech.com.tw
/data
/
121 MD5SUM
:=1e7a5dc574e0268574fcda3fd5cf52f7
123 $(eval
$(call Download
,rt71w
))
125 define Download
/rt2860
127 URL
:=http
://www.ralinktech.com.tw
/data
/drivers
128 MD5SUM
:=440a81756a52c53528f16faa41c40124
130 $(eval
$(call Download
,rt2860
))
132 define Download
/rt2870
134 URL
:=http
://www.ralinktech.com.tw
/data
/drivers
135 MD5SUM
:=a7aae1d8cfd68e4d86a73000df0b6584
137 $(eval
$(call Download
,rt2870
))
141 define Download
/ar9170
143 URL
:=http
://www.kernel.org
/pub
/linux
/kernel
/people
/mcgrof
/firmware
/ar9170
144 MD5SUM
:=34feec4ec0eae3bb92c7c1ea2dfb4530
146 $(eval
$(call Download
,ar9170
))
148 define KernelPackage
/rt2x00
/Default
149 $(call KernelPackage
/mac80211
/Default
)
150 TITLE
:=Ralink Drivers for RT2x00 cards
153 define KernelPackage
/rt2x00-lib
154 $(call KernelPackage
/rt2x00
/Default
)
155 DEPENDS
+= @PCI_SUPPORT||@USB_SUPPORT
+kmod-mac80211
+kmod-crc-itu-t
157 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2x00lib.
$(LINUX_KMOD_SUFFIX
)
158 AUTOLOAD
:=$(call AutoLoad
,25,blkcipher ecb arc4 rt2x00lib
)
161 define KernelPackage
/rt2x00-pci
162 $(call KernelPackage
/rt2x00
/Default
)
163 DEPENDS
+= @PCI_SUPPORT
+kmod-rt2x00-lib
+kmod-eeprom-93cx6
165 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2x00pci.
$(LINUX_KMOD_SUFFIX
)
166 AUTOLOAD
:=$(call AutoLoad
,26,rt2x00pci
)
169 define KernelPackage
/rt2x00-usb
170 $(call KernelPackage
/rt2x00
/Default
)
171 DEPENDS
+= @USB_SUPPORT
+kmod-rt2x00-lib
+kmod-usb-core
173 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2x00usb.
$(LINUX_KMOD_SUFFIX
)
174 AUTOLOAD
:=$(call AutoLoad
,26,rt2x00usb
)
177 define KernelPackage
/rt2400-pci
178 $(call KernelPackage
/rt2x00
/Default
)
179 DEPENDS
+= @PCI_SUPPORT
+kmod-rt2x00-pci
181 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2400pci.
$(LINUX_KMOD_SUFFIX
)
182 AUTOLOAD
:=$(call AutoLoad
,27,rt2400pci
)
185 define KernelPackage
/rt2500-pci
186 $(call KernelPackage
/rt2x00
/Default
)
187 DEPENDS
+= @PCI_SUPPORT
+kmod-rt2x00-pci
189 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2500pci.
$(LINUX_KMOD_SUFFIX
)
190 AUTOLOAD
:=$(call AutoLoad
,27,rt2500pci
)
193 define KernelPackage
/rt2500-usb
194 $(call KernelPackage
/rt2x00
/Default
)
195 DEPENDS
+= @USB_SUPPORT
+kmod-rt2x00-usb
197 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2500usb.
$(LINUX_KMOD_SUFFIX
)
198 AUTOLOAD
:=$(call AutoLoad
,27,rt2500usb
)
201 define KernelPackage
/rt61-pci
202 $(call KernelPackage
/rt2x00
/Default
)
203 DEPENDS
+= @PCI_SUPPORT
+kmod-rt2x00-pci
205 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt61pci.
$(LINUX_KMOD_SUFFIX
)
206 AUTOLOAD
:=$(call AutoLoad
,27,rt61pci
)
209 define KernelPackage
/rt73-usb
210 $(call KernelPackage
/rt2x00
/Default
)
211 DEPENDS
+= @USB_SUPPORT
+kmod-rt2x00-usb
213 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt73usb.
$(LINUX_KMOD_SUFFIX
)
214 AUTOLOAD
:=$(call AutoLoad
,27,rt73usb
)
217 define KernelPackage
/rt2800-pci
218 $(call KernelPackage
/rt2x00
/Default
)
219 DEPENDS
+= +kmod-rt2x00-pci
+kmod-crc-ccitt
221 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2800pci.
$(LINUX_KMOD_SUFFIX
)
222 AUTOLOAD
:=$(call AutoLoad
,27,rt2800pci
)
225 define KernelPackage
/rt2800-usb
226 $(call KernelPackage
/rt2x00
/Default
)
227 DEPENDS
+= +kmod-rt2x00-usb
+kmod-crc-ccitt
229 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2800usb.
$(LINUX_KMOD_SUFFIX
)
230 AUTOLOAD
:=$(call AutoLoad
,27,rt2800usb
)
233 define KernelPackage
/rtl818x
/Default
234 $(call KernelPackage
/mac80211
/Default
)
235 TITLE
:=Realtek Drivers for RTL818x devices
236 URL
:=http
://wireless.kernel.org
/en
/users
/Drivers
/rtl8187
237 DEPENDS
+= +kmod-eeprom-93cx6
+kmod-mac80211
240 define KernelPackage
/rtl8180
241 $(call KernelPackage
/rtl818x
/Default
)
242 DEPENDS
+= @PCI_SUPPORT
243 TITLE
+= (RTL8180 PCI
)
244 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rtl818x
/rtl8180.
$(LINUX_KMOD_SUFFIX
)
245 AUTOLOAD
:=$(call AutoLoad
,27,rtl8180
)
248 define KernelPackage
/rtl8187
249 $(call KernelPackage
/rtl818x
/Default
)
250 DEPENDS
+= @USB_SUPPORT
251 TITLE
+= (RTL8187 USB
)
252 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rtl818x
/rtl8187.
$(LINUX_KMOD_SUFFIX
)
253 AUTOLOAD
:=$(call AutoLoad
,27,rtl8187
)
256 ZD1211FW_NAME
:=zd1211-firmware
257 ZD1211FW_VERSION
:=1.4
258 define Download
/zd1211rw
259 FILE
:=$(ZD1211FW_NAME
)-$(ZD1211FW_VERSION
).
tar.bz2
261 MD5SUM
:=19f28781d76569af8551c9d11294c870
263 $(eval
$(call Download
,zd1211rw
))
265 define KernelPackage
/zd1211rw
266 $(call KernelPackage
/mac80211
/Default
)
267 TITLE
:=Zydas ZD1211 support
268 DEPENDS
+= @USB_SUPPORT
+kmod-usb-core
+kmod-mac80211
269 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/zd1211rw
/zd1211rw.
$(LINUX_KMOD_SUFFIX
)
270 AUTOLOAD
:=$(call AutoLoad
,60,zd1211rw
)
274 define KernelPackage
/ath
275 $(call KernelPackage
/mac80211
/Default
)
276 TITLE
:=Atheros common driver part
277 DEPENDS
+= @PCI_SUPPORT
+kmod-mac80211
278 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/ath
/ath.
$(LINUX_KMOD_SUFFIX
)
279 AUTOLOAD
:=$(call AutoLoad
,26,ath
)
282 define KernelPackage
/ath
/description
283 This module contains some common parts needed by Atheros Wireless drivers.
286 define KernelPackage
/ath5k
287 $(call KernelPackage
/mac80211
/Default
)
288 TITLE
:=Atheros
5xxx wireless cards support
289 URL
:=http
://linuxwireless.org
/en
/users
/Drivers
/ath5k
291 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/ath
/ath5k
/ath5k.
$(LINUX_KMOD_SUFFIX
)
292 AUTOLOAD
:=$(call AutoLoad
,27,ath5k
)
295 define KernelPackage
/ath5k
/description
296 This module adds support for wireless adapters based on
297 Atheros
5xxx chipset.
300 define KernelPackage
/ath9k
301 $(call KernelPackage
/mac80211
/Default
)
302 TITLE
:=Atheros
802.11n wireless cards support
303 URL
:=http
://linuxwireless.org
/en
/users
/Drivers
/ath9k
305 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/ath
/ath9k
/ath9k.
$(LINUX_KMOD_SUFFIX
)
306 AUTOLOAD
:=$(call AutoLoad
,27,ath9k
)
309 define KernelPackage
/ath9k
/description
310 This module adds support for wireless adapters based on
311 Atheros IEEE
802.11n AR5008 and AR9001 family of chipsets.
314 define KernelPackage
/ath9k
/config
315 source
"$(SOURCE)/Config.in.ath9k"
318 define KernelPackage
/ar9170
319 $(call KernelPackage
/mac80211
/Default
)
320 TITLE
:=Atheros AR9170
802.11n USB support
321 URL
:=http
://wireless.kernel.org
/en
/users
/Drivers
/ar9170
322 DEPENDS
+= @USB_SUPPORT @
!LINUX_2_6_25 @
!LINUX_2_6_27
+kmod-ath
+kmod-usb-core
323 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/ath
/ar9170
/ar9170usb.
$(LINUX_KMOD_SUFFIX
)
324 AUTOLOAD
:=$(call AutoLoad
,27,ar9170usb
)
327 define KernelPackage
/ar9170
/description
328 This is a driver for the Atheros
"otus" 802.11n USB devices.
331 define KernelPackage
/mac80211-hwsim
332 $(call KernelPackage
/mac80211
/Default
)
333 TITLE
:=mac80211 HW simulation device
334 DEPENDS
+= +kmod-mac80211
335 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/mac80211_hwsim.
$(LINUX_KMOD_SUFFIX
)
336 AUTOLOAD
:=$(call AutoLoad
,60,mac80211_hwsim
)
340 ifneq ($(CONFIG_B43_EXPERIMENTAL
),)
341 PKG_B43_FWV4_NAME
:=broadcom-wl
342 PKG_B43_FWV4_VERSION
:=4.178.10.4
343 PKG_B43_FWV4_OBJECT
:=$(PKG_B43_FWV4_NAME
)-$(PKG_B43_FWV4_VERSION
)/linux
/wl.o
344 PKG_B43_FWV4_SOURCE
:=$(PKG_B43_FWV4_NAME
)-$(PKG_B43_FWV4_VERSION
).
tar.bz2
345 PKG_B43_FWV4_SOURCE_URL
:=http
://mirror2.openwrt.org
/sources
/
346 PKG_B43_FWV4_MD5SUM
:=14477e8cbbb91b11896affac9b219fdb
348 PKG_B43_FWV4_NAME
:=broadcom-wl
349 PKG_B43_FWV4_VERSION
:=4.150.10.5
350 PKG_B43_FWV4_OBJECT
:=$(PKG_B43_FWV4_NAME
)-$(PKG_B43_FWV4_VERSION
)/driver
/wl_apsta_mimo.o
351 PKG_B43_FWV4_SOURCE
:=$(PKG_B43_FWV4_NAME
)-$(PKG_B43_FWV4_VERSION
).
tar.bz2
352 PKG_B43_FWV4_SOURCE_URL
:=http
://mirror2.openwrt.org
/sources
/
353 PKG_B43_FWV4_MD5SUM
:=0c6ba9687114c6b598e8019e262d9a60
355 ifneq ($(CONFIG_B43_OPENFIRMWARE
),)
356 PKG_B43_FWV4_NAME
:=broadcom-wl
357 PKG_B43_FWV4_VERSION
:=5.2
358 PKG_B43_FWV4_OBJECT
:=openfwwf-
$(PKG_B43_FWV4_VERSION
)
359 PKG_B43_FWV4_SOURCE
:=openfwwf-
$(PKG_B43_FWV4_VERSION
).
tar.gz
360 PKG_B43_FWV4_SOURCE_URL
:=http
://www.ing.unibs.it
/openfwwf
/firmware
/
361 PKG_B43_FWV4_MD5SUM
:=e045a135453274e439ae183f8498b0fa
365 PKG_B43_FWV3_NAME
:=wl_apsta
366 PKG_B43_FWV3_VERSION
:=3.130.20.0
367 PKG_B43_FWV3_SOURCE
:=$(PKG_B43_FWV3_NAME
)-$(PKG_B43_FWV3_VERSION
).o
368 PKG_B43_FWV3_SOURCE_URL
:=http
://downloads.openwrt.org
/sources
/
369 PKG_B43_FWV3_MD5SUM
:=e08665c5c5b66beb9c3b2dd54aa80cb3
371 ifneq ($(CONFIG_B43_OPENFIRMWARE
),)
372 PKG_B43_FWCUTTER_NAME
:=b43-fwcutter
373 PKG_B43_FWCUTTER_VERSION
:=3e69531aa65b8f664a0ab00dfc3e2eefeb0cb417
374 PKG_B43_FWCUTTER_SOURCE
:=$(PKG_B43_FWCUTTER_NAME
)-$(PKG_B43_FWCUTTER_VERSION
).
tar.bz2
375 PKG_B43_FWCUTTER_PROTO
:=git
376 PKG_B43_FWCUTTER_SOURCE_URL
:=http
://git.bu3sch.de
/git
/b43-tools.git
377 PKG_B43_FWCUTTER_SUBDIR
:=$(PKG_B43_FWCUTTER_NAME
)-$(PKG_B43_FWCUTTER_VERSION
)
378 PKG_B43_FWCUTTER_OBJECT
:=$(PKG_B43_FWCUTTER_NAME
)-$(PKG_B43_FWCUTTER_VERSION
)/fwcutter
/
380 PKG_B43_FWCUTTER_NAME
:=b43-fwcutter
381 PKG_B43_FWCUTTER_VERSION
:=012
382 PKG_B43_FWCUTTER_SOURCE
:=$(PKG_B43_FWCUTTER_NAME
)-$(PKG_B43_FWCUTTER_VERSION
).
tar.bz2
383 PKG_B43_FWCUTTER_PROTO
:=default
384 PKG_B43_FWCUTTER_SOURCE_URL
:=http
://bu3sch.de
/b43
/fwcutter
/
385 PKG_B43_FWCUTTER_MD5SUM
:=69eadf67b459f313a8d6b37aaabef96c
386 PKG_B43_FWCUTTER_SUBDIR
:=b43-fwcutter-
$(PKG_B43_FWCUTTER_VERSION
)
387 PKG_B43_FWCUTTER_OBJECT
:=$(PKG_B43_FWCUTTER_NAME
)-$(PKG_B43_FWCUTTER_VERSION
)/
390 define Download
/b43-common
391 FILE
:=$(PKG_B43_FWCUTTER_SOURCE
)
392 URL
:=$(PKG_B43_FWCUTTER_SOURCE_URL
)
393 MD5SUM
:=$(PKG_B43_FWCUTTER_MD5SUM
)
394 PROTO
:=$(PKG_B43_FWCUTTER_PROTO
)
395 VERSION
:=$(PKG_B43_FWCUTTER_VERSION
)
396 SUBDIR
:=$(PKG_B43_FWCUTTER_SUBDIR
)
398 $(eval
$(call Download
,b43-common
))
401 FILE
:=$(PKG_B43_FWV4_SOURCE
)
402 URL
:=$(PKG_B43_FWV4_SOURCE_URL
)
403 MD5SUM
:=$(PKG_B43_FWV4_MD5SUM
)
405 $(eval
$(call Download
,b43
))
407 define Download
/b43legacy
408 FILE
:=$(PKG_B43_FWV3_SOURCE
)
409 URL
:=$(PKG_B43_FWV3_SOURCE_URL
)
410 MD5SUM
:=$(PKG_B43_FWV3_MD5SUM
)
412 $(eval
$(call Download
,b43legacy
))
414 define KernelPackage
/b43-common
415 $(call KernelPackage
/mac80211
/Default
)
416 TITLE
:=Generic stuff for Broadcom wireless devices
417 URL
:=http
://linuxwireless.org
/en
/users
/Drivers
/b43
418 DEPENDS
+= +kmod-mac80211
+!(TARGET_brcm47xx||TARGET_brcm63xx
):kmod-ssb
421 define KernelPackage
/b43
422 $(call KernelPackage
/b43-common
)
423 TITLE
:=Broadcom
43xx wireless support
424 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/b43
/b43.
$(LINUX_KMOD_SUFFIX
)
425 AUTOLOAD
:=$(call AutoLoad
,30,b43
)
428 define KernelPackage
/b43
/config
429 source
"$(SOURCE)/Config.in.b43"
432 define KernelPackage
/b43
/description
433 Kernel module for Broadcom
43xx wireless support
(mac80211 stack
) new
436 define KernelPackage
/b43legacy
437 $(call KernelPackage
/b43-common
)
438 TITLE
:=Broadcom
43xx-legacy wireless support
439 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/b43legacy
/b43legacy.
$(LINUX_KMOD_SUFFIX
)
440 AUTOLOAD
:=$(call AutoLoad
,30,b43legacy
)
443 define KernelPackage
/b43legacy
/description
444 Kernel module for Broadcom
43xx-legacy wireless support
(mac80211 stack
) new
448 -I
$(PKG_BUILD_DIR
)/include \
449 $(foreach opt
,$(CONFOPTS
),-DCONFIG_
$(opt
)) \
450 $(if
$(CONFIG_PCI
),-DCONFIG_B43_PCI_AUTOSELECT
-DCONFIG_B43_PCICORE_AUTOSELECT
-DCONFIG_SSB_DRIVER_PCICORE_POSSIBLE
-DCONFIG_SSB_DRIVER_PCICORE
) \
451 $(if
$(CONFIG_PCI
),-DCONFIG_SSB_PCIHOST_POSSIBLE
-DCONFIG_SSB_PCIHOST
) \
452 $(if
$(CONFIG_PCI
),-DCONFIG_SSB_SPROM
) \
453 $(if
$(CONFIG_LEDS_TRIGGERS
), -DCONFIG_MAC80211_LEDS
-DCONFIG_LEDS_TRIGGERS
-DCONFIG_B43_LEDS
-DCONFIG_B43LEGACY_LEDS
-DCONFIG_AR9170_LEDS
) \
454 $(if
$(CONFIG_HW_RANDOM
),-DCONFIG_B43_HWRNG
-DCONFIG_B43LEGACY_HWRNG
) \
455 $(if
$(CONFIG_PACKAGE_MAC80211_DEBUGFS
),-DCONFIG_MAC80211_DEBUGFS
) \
456 $(if
$(CONFIG_PACKAGE_ATH9K_DEBUG
),-DCONFIG_ATH9K_DEBUG
) \
457 -D__CONFIG_MAC80211_RC_DEFAULT
=minstrel \
460 CROSS_COMPILE
="$(KERNEL_CROSS)" \
461 ARCH
="$(LINUX_KARCH)" \
462 EXTRA_CFLAGS
="$(BUILDFLAGS)" \
463 $(foreach opt
,$(CONFOPTS
),CONFIG_
$(opt
)=m
) \
464 CONFIG_MAC80211_RC_PID
=y \
465 CONFIG_MAC80211_RC_MINSTREL
=y \
466 CONFIG_MAC80211_LEDS
=$(CONFIG_LEDS_TRIGGERS
) \
467 CONFIG_MAC80211_DEBUGFS
=$(if
$(CONFIG_PACKAGE_MAC80211_DEBUGFS
),y
) \
468 CONFIG_B43_PCMCIA
=n CONFIG_B43_PIO
=n \
469 CONFIG_B43_PCI_AUTOSELECT
=$(if
$(CONFIG_PCI
),y
) \
470 CONFIG_B43_PCICORE_AUTOSELECT
=$(if
$(CONFIG_PCI
),y
) \
471 CONFIG_SSB_DRIVER_PCICORE_POSSIBLE
=$(if
$(CONFIG_PCI
),y
) \
472 CONFIG_SSB_DRIVER_PCICORE
=$(if
$(CONFIG_PCI
),y
) \
473 CONFIG_SSB_PCIHOST_POSSIBLE
=$(if
$(CONFIG_PCI
),y
) \
474 CONFIG_SSB_PCIHOST
=$(if
$(CONFIG_PCI
),y
) \
475 CONFIG_B43LEGACY_LEDS
=$(CONFIG_LEDS_TRIGGERS
) \
476 CONFIG_B43_LEDS
=$(CONFIG_LEDS_TRIGGERS
) \
477 CONFIG_B43_HWRNG
=$(if
$(CONFIG_HW_RANDOM
),y
) \
478 CONFIG_B43LEGACY_HWRNG
=$(if
$(CONFIG_HW_RANDOM
),y
) \
479 CONFIG_B43
=$(if
$(CONFIG_PACKAGE_kmod-b43
),m
) \
480 CONFIG_B43LEGACY
=$(if
$(CONFIG_PACKAGE_kmod-b43legacy
),m
) \
481 CONFIG_ATH_COMMON
=$(if
$(CONFIG_PACKAGE_kmod-ath
),m
) \
482 CONFIG_ATH5K
=$(if
$(CONFIG_PACKAGE_kmod-ath5k
),m
) \
483 CONFIG_ATH9K
=$(if
$(CONFIG_PACKAGE_kmod-ath9k
),m
) \
484 CONFIG_ATH9K_DEBUG
=$(if
$(CONFIG_PACKAGE_ATH9K_DEBUG
),y
) \
485 CONFIG_ZD1211RW
=$(if
$(CONFIG_PACKAGE_kmod-zd1211rw
),m
) \
486 CONFIG_P54_COMMON
=$(if
$(CONFIG_PACKAGE_kmod-p54-common
),m
) \
487 CONFIG_P54_PCI
=$(if
$(CONFIG_PACKAGE_kmod-p54-pci
),m
) \
488 CONFIG_P54_USB
=$(if
$(CONFIG_PACKAGE_kmod-p54-usb
),m
) \
490 CONFIG_RT2X00
=$(if
$(CONFIG_PACKAGE_kmod-rt2x00-lib
),m
) \
491 CONFIG_RT2X00_LIB_PCI
=$(if
$(CONFIG_PACKAGE_kmod-rt2x00-pci
),m
) \
492 CONFIG_RT2X00_LIB_USB
=$(if
$(CONFIG_PACKAGE_kmod-rt2x00-usb
),m
) \
493 CONFIG_RT2400PCI
=$(if
$(CONFIG_PACKAGE_kmod-rt2400-pci
),m
) \
494 CONFIG_RT2500PCI
=$(if
$(CONFIG_PACKAGE_kmod-rt2500-pci
),m
) \
495 CONFIG_RT2500USB
=$(if
$(CONFIG_PACKAGE_kmod-rt2500-usb
),m
) \
496 CONFIG_RT61PCI
=$(if
$(CONFIG_PACKAGE_kmod-rt61-pci
),m
) \
497 CONFIG_RT73USB
=$(if
$(CONFIG_PACKAGE_kmod-rt73-usb
),m
) \
498 CONFIG_RT2800PCI
=$(if
$(CONFIG_PACKAGE_kmod-rt2800-pci
),m
) \
499 CONFIG_RT2800USB
=$(if
$(CONFIG_PACKAGE_kmod-rt2800-usb
),m
) \
500 CONFIG_RTL8180
=$(if
$(CONFIG_PACKAGE_kmod-rtl8180
),m
) \
501 CONFIG_RTL8187
=$(if
$(CONFIG_PACKAGE_kmod-rtl8187
),m
) \
502 CONFIG_MAC80211_HWSIM
=$(if
$(CONFIG_PACKAGE_kmod-mac80211-hwsim
),m
) \
506 CONFIG_LIBERTAS_CS
= \
507 CONFIG_LIBERTAS_SDIO
= \
508 CONFIG_LIBERTAS_THINFIRM
= \
513 CONFIG_LIB80211_CRYPT_WEP
= \
514 CONFIG_LIB80211_CRYPT_CCMP
= \
515 CONFIG_LIB80211_CRYPT_TKIP
= \
520 CONFIG_PCMCIA_ATMEL
= \
522 CONFIG_USB_NET_RNDIS_HOST
= \
523 CONFIG_USB_NET_RNDIS_WLAN
= \
524 CONFIG_USB_NET_CDCETHER
= \
526 CONFIG_AT76C50X_USB
= \
528 CONFIG_EEPROM_93CX6
= \
529 CONFIG_AR9170_USB
=$(if
$(CONFIG_PACKAGE_kmod-ar9170
),m
) \
530 CONFIG_AR9170_LEDS
=$(CONFIG_LEDS_TRIGGERS
) \
534 KLIB_BUILD
="$(LINUX_DIR)" \
536 KLIB
=$(TARGET_MODULES_DIR
) \
537 KERNEL_SUBLEVEL
=$(lastword
$(subst .
, ,$(KERNEL_PATCHVER
)))
540 rm -rf
$(PKG_BUILD_DIR
)
541 mkdir
-p
$(PKG_BUILD_DIR
)
544 unzip
-jod
$(PKG_BUILD_DIR
) $(DL_DIR
)/$(RT61FW
)
545 unzip
-jod
$(PKG_BUILD_DIR
) $(DL_DIR
)/$(RT71FW
)
546 -unzip
-jod
$(PKG_BUILD_DIR
) $(DL_DIR
)/$(RT2860FW
)
547 -unzip
-jod
$(PKG_BUILD_DIR
) $(DL_DIR
)/$(RT2870FW
)
548 $(TAR
) -C
$(PKG_BUILD_DIR
) -xjf
$(DL_DIR
)/$(ZD1211FW_NAME
)-$(ZD1211FW_VERSION
).
tar.bz2
549 rm -rf
$(PKG_BUILD_DIR
)/include/linux
/ssb
550 rm -f
$(PKG_BUILD_DIR
)/include/net
/ieee80211.h
551 rm $(PKG_BUILD_DIR
)/include/linux
/eeprom_93cx6.h
554 ifneq ($(CONFIG_PACKAGE_kmod-mac80211
),)
555 define Build
/Compile
/kmod
556 rm -rf
$(PKG_BUILD_DIR
)/modules
557 $(MAKE
) -C
"$(PKG_BUILD_DIR)" $(MAKE_OPTS
) all
562 $(call Build
/Compile
/kmod
)
565 define Build
/InstallDev
566 mkdir
-p
$(1)/usr
/include/mac80211
$(1)/usr
/include/net
/mac80211
567 $(CP
) $(PKG_BUILD_DIR
)/net
/mac80211
/*.h
$(PKG_BUILD_DIR
)/include/* $(1)/usr
/include/mac80211
/
568 $(CP
) $(PKG_BUILD_DIR
)/net
/mac80211
/rate.h
$(1)/usr
/include/net
/mac80211
/
571 define KernelPackage
/mac80211
/install
572 $(INSTALL_DIR
) $(1)/lib
/wifi
573 $(INSTALL_DATA
) .
/files
/lib
/wifi
/mac80211.sh
$(1)/lib
/wifi
576 define KernelPackage
/p54-pci
/install
577 $(INSTALL_DIR
) $(1)/lib
/firmware
578 $(INSTALL_DATA
) $(DL_DIR
)/$(P54PCIFW
) $(1)/lib
/firmware
/isl3886pci
581 define KernelPackage
/p54-usb
/install
582 $(INSTALL_DIR
) $(1)/lib
/firmware
583 $(INSTALL_DATA
) $(DL_DIR
)/$(P54USBFW
) $(1)/lib
/firmware
/isl3886usb
586 define KernelPackage
/rt61-pci
/install
587 $(INSTALL_DIR
) $(1)/lib
/firmware
588 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/rt2?
61*.bin
$(1)/lib
/firmware
/
591 define KernelPackage
/rt73-usb
/install
592 $(INSTALL_DIR
) $(1)/lib
/firmware
593 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/rt73.bin
$(1)/lib
/firmware
/
596 define KernelPackage
/rt2800-pci
/install
597 $(INSTALL_DIR
) $(1)/lib
/firmware
598 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/rt2860.bin
$(1)/lib
/firmware
/
601 define KernelPackage
/rt2800-usb
/install
602 $(INSTALL_DIR
) $(1)/lib
/firmware
603 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/rt2870.bin
$(1)/lib
/firmware
/
606 define KernelPackage
/zd1211rw
/install
607 $(INSTALL_DIR
) $(1)/lib
/firmware
/zd1211
608 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/$(ZD1211FW_NAME
)/zd1211
* $(1)/lib
/firmware
/zd1211
611 define KernelPackage
/ar9170
/install
612 $(INSTALL_DIR
) $(1)/lib
/firmware
613 $(INSTALL_DATA
) $(DL_DIR
)/$(AR9170FW
) $(1)/lib
/firmware
/
616 define Build
/b43-common
617 tar xjf
"$(DL_DIR)/$(PKG_B43_FWCUTTER_SOURCE)" -C
"$(PKG_BUILD_DIR)"
618 $(MAKE
) -C
"$(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_OBJECT)" \
619 CFLAGS
="-I$(STAGING_DIR_HOST)/include -include endian.h"
620 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWCUTTER_OBJECT
)/b43-fwcutter
$(STAGING_DIR_HOST
)/bin
/
621 ifneq ($(CONFIG_B43_OPENFIRMWARE
),)
622 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/bin
/
623 $(MAKE
) -C
"$(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_SUBDIR)/assembler/"
624 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWCUTTER_SUBDIR
)/assembler
/b43-asm
$(STAGING_DIR_HOST
)/bin
/
625 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWCUTTER_SUBDIR
)/assembler
/b43-asm.bin
$(STAGING_DIR_HOST
)/bin
/
627 $(INSTALL_BIN
) .
/files
/host_bin
/b43-fwsquash.py
$(STAGING_DIR_HOST
)/bin
/
630 define KernelPackage
/b43
/install
631 rm -rf
$(1)/lib
/firmware
/
632 $(call Build
/b43-common
)
633 ifneq ($(CONFIG_B43_OPENFIRMWARE
),)
634 tar xzf
"$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C
"$(PKG_BUILD_DIR)"
636 tar xjf
"$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C
"$(PKG_BUILD_DIR)"
638 $(INSTALL_DIR
) $(1)/lib
/firmware
/
639 ifneq ($(CONFIG_B43_OPENFIRMWARE
),)
640 $(MAKE
) -C
"$(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/"
641 $(INSTALL_DIR
) $(1)/lib
/firmware
/b43-open
/
642 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWV4_OBJECT
)/ucode5.fw
$(1)/lib
/firmware
/b43-open
/ucode5.fw
643 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWV4_OBJECT
)/b0g0bsinitvals5.fw
$(1)/lib
/firmware
/b43-open
/b0g0bsinitvals5.fw
644 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWV4_OBJECT
)/b0g0initvals5.fw
$(1)/lib
/firmware
/b43-open
/b0g0initvals5.fw
646 b43-fwcutter
--unsupported
-w
$(1)/lib
/firmware
/ $(PKG_BUILD_DIR
)/$(PKG_B43_FWV4_OBJECT
)
648 ifneq ($(CONFIG_B43_FW_SQUASH
),)
649 b43-fwsquash.py
"$(CONFIG_B43_FW_SQUASH_PHYTYPES)" "$(CONFIG_B43_FW_SQUASH_COREREVS)" "$(1)/lib/firmware/b43"
653 define KernelPackage
/b43legacy
/install
654 $(call Build
/b43-common
)
655 $(INSTALL_DIR
) $(1)/lib
/firmware
/
657 b43-fwcutter
--unsupported
-w
$(1)/lib
/firmware
/ $(DL_DIR
)/$(PKG_B43_FWV3_SOURCE
)
660 $(eval
$(call KernelPackage
,ath5k
))
661 $(eval
$(call KernelPackage
,mac80211
))
662 $(eval
$(call KernelPackage
,p54-common
))
663 $(eval
$(call KernelPackage
,p54-pci
))
664 $(eval
$(call KernelPackage
,p54-usb
))
665 $(eval
$(call KernelPackage
,rt2x00-lib
))
666 $(eval
$(call KernelPackage
,rt2x00-pci
))
667 $(eval
$(call KernelPackage
,rt2x00-usb
))
668 $(eval
$(call KernelPackage
,rt2400-pci
))
669 $(eval
$(call KernelPackage
,rt2500-pci
))
670 $(eval
$(call KernelPackage
,rt2500-usb
))
671 $(eval
$(call KernelPackage
,rt61-pci
))
672 $(eval
$(call KernelPackage
,rt73-usb
))
673 $(eval
$(call KernelPackage
,rt2800-pci
))
674 $(eval
$(call KernelPackage
,rt2800-usb
))
675 $(eval
$(call KernelPackage
,rtl8180
))
676 $(eval
$(call KernelPackage
,rtl8187
))
677 $(eval
$(call KernelPackage
,zd1211rw
))
678 $(eval
$(call KernelPackage
,mac80211-hwsim
))
679 $(eval
$(call KernelPackage
,ath9k
))
680 $(eval
$(call KernelPackage
,ath
))
681 $(eval
$(call KernelPackage
,ar9170
))
682 $(eval
$(call KernelPackage
,b43
))
683 $(eval
$(call KernelPackage
,b43legacy
))