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_23
)$(CONFIG_LINUX_2_6_24
)$(CONFIG_LINUX_2_6_25
)$(CONFIG_LINUX_2_6_26
),)
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-03-31
23 http
://www.orbit-lab.org
/kernel
/compat-wireless-2.6
/2009/03 \
24 http
://wireless.kernel.org
/download
/compat-wireless-2.6
25 PKG_MD5SUM
:=b5b2159081c36dd6c318a28eddf7e646
28 PKG_SOURCE
:=compat-wireless-
$(PKG_VERSION
).
tar.bz2
29 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/compat-wireless-
$(PKG_VERSION
)
31 include $(INCLUDE_DIR
)/package.mk
32 STAMP_CONFIGURED
:=$(STAMP_CONFIGURED
)_
$(call confvar
,CONFIG_PACKAGE_kmod-mac80211
)
34 WMENU
:=Wireless Drivers
36 define KernelPackage
/mac80211
/Default
38 URL
:=http
://linuxwireless.org
/
39 DEPENDS
:=@LINUX_2_6 @
!TARGET_avr32
42 define KernelPackage
/mac80211
43 $(call KernelPackage
/mac80211
/Default
)
44 TITLE
:=Linux
802.11 Wireless Networking Stack
45 DEPENDS
+= +kmod-crypto-arc4
+kmod-crypto-aes
+wireless-tools
47 $(PKG_BUILD_DIR
)/net
/mac80211
/mac80211.
$(LINUX_KMOD_SUFFIX
) \
48 $(PKG_BUILD_DIR
)/net
/wireless
/cfg80211.
$(LINUX_KMOD_SUFFIX
)
49 AUTOLOAD
:=$(call AutoLoad
,20,cfg80211 mac80211
)
52 define KernelPackage
/mac80211
/description
53 Linux
802.11 Wireless Networking Stack
57 P54PCIFW
:=2.13.12.0.arm
58 P54USBFW
:=2.13.24.0.lm86.arm
60 define Download
/p54usb
62 URL
:=http
://daemonizer.de
/prism54
/prism54-fw
/fw-usb
63 MD5SUM
:=2efd50eab43c0d0376765576a54b7a30
65 $(eval
$(call Download
,p54usb
))
67 define Download
/p54pci
69 URL
:=http
://daemonizer.de
/prism54
/prism54-fw
/fw-softmac
70 MD5SUM
:=ff7536af2092b1c4b21315bd103ef4c4
72 $(eval
$(call Download
,p54pci
))
74 define KernelPackage
/p54
/Default
75 $(call KernelPackage
/mac80211
/Default
)
76 TITLE
:=Prism54 Drivers
79 define KernelPackage
/p54
/description
80 Kernel module for Prism54 chipsets
(mac80211
)
83 define KernelPackage
/p54-common
84 $(call KernelPackage
/p54
/Default
)
85 DEPENDS
+= @PCI_SUPPORT||@USB_SUPPORT
+kmod-mac80211
87 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/p54
/p54common.
$(LINUX_KMOD_SUFFIX
)
88 AUTOLOAD
:=$(call AutoLoad
,30,p54common
)
91 define KernelPackage
/p54-pci
92 $(call KernelPackage
/p54
/Default
)
94 DEPENDS
+= @PCI_SUPPORT
+kmod-p54-common
95 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/p54
/p54pci.
$(LINUX_KMOD_SUFFIX
)
96 AUTOLOAD
:=$(call AutoLoad
,31,p54pci
)
99 define KernelPackage
/p54-usb
100 $(call KernelPackage
/p54
/Default
)
102 DEPENDS
+= @USB_SUPPORT
+kmod-usb-core
+kmod-p54-common
103 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/p54
/p54usb.
$(LINUX_KMOD_SUFFIX
)
104 AUTOLOAD
:=$(call AutoLoad
,31,p54usb
)
107 # Ralink rt2x00 drivers
108 RT61FW
:=RT61_Firmware_V1.2.zip
109 RT71FW
:=RT71W_Firmware_V1.8.zip
110 RT2860FW
:=RT2860_Firmware_V11.zip
114 URL
:=http
://www.ralinktech.com.tw
/data
/
115 MD5SUM
:=d4c690c93b470bc9a681297c2adc6281
117 $(eval
$(call Download
,rt61
))
119 define Download
/rt71w
121 URL
:=http
://www.ralinktech.com.tw
/data
/
122 MD5SUM
:=1e7a5dc574e0268574fcda3fd5cf52f7
124 $(eval
$(call Download
,rt71w
))
126 define Download
/rt2860
128 URL
:=http
://www.ralinktech.com.tw
/data
/drivers
129 MD5SUM
:=440a81756a52c53528f16faa41c40124
131 $(eval
$(call Download
,rt2860
))
133 define KernelPackage
/rt2x00
/Default
134 $(call KernelPackage
/mac80211
/Default
)
135 TITLE
:=Ralink Drivers for RT2x00 cards
138 define KernelPackage
/rt2x00-lib
139 $(call KernelPackage
/rt2x00
/Default
)
140 DEPENDS
+= @PCI_SUPPORT||@USB_SUPPORT
+kmod-mac80211
+kmod-crc-itu-t
142 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2x00lib.
$(LINUX_KMOD_SUFFIX
)
143 AUTOLOAD
:=$(call AutoLoad
,25,blkcipher ecb arc4 rt2x00lib
)
146 define KernelPackage
/rt2x00-pci
147 $(call KernelPackage
/rt2x00
/Default
)
148 DEPENDS
+= @PCI_SUPPORT
+kmod-rt2x00-lib
+kmod-eeprom-93cx6
150 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2x00pci.
$(LINUX_KMOD_SUFFIX
)
151 AUTOLOAD
:=$(call AutoLoad
,26,rt2x00pci
)
154 define KernelPackage
/rt2x00-usb
155 $(call KernelPackage
/rt2x00
/Default
)
156 DEPENDS
+= @USB_SUPPORT
+kmod-rt2x00-lib
+kmod-usb-core
158 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2x00usb.
$(LINUX_KMOD_SUFFIX
)
159 AUTOLOAD
:=$(call AutoLoad
,26,rt2x00usb
)
162 define KernelPackage
/rt2400-pci
163 $(call KernelPackage
/rt2x00
/Default
)
164 DEPENDS
+= @PCI_SUPPORT
+kmod-rt2x00-pci
166 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2400pci.
$(LINUX_KMOD_SUFFIX
)
167 AUTOLOAD
:=$(call AutoLoad
,27,rt2400pci
)
170 define KernelPackage
/rt2500-pci
171 $(call KernelPackage
/rt2x00
/Default
)
172 DEPENDS
+= @PCI_SUPPORT
+kmod-rt2x00-pci
174 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2500pci.
$(LINUX_KMOD_SUFFIX
)
175 AUTOLOAD
:=$(call AutoLoad
,27,rt2500pci
)
178 define KernelPackage
/rt2500-usb
179 $(call KernelPackage
/rt2x00
/Default
)
180 DEPENDS
+= @USB_SUPPORT
+kmod-rt2x00-usb
182 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2500usb.
$(LINUX_KMOD_SUFFIX
)
183 AUTOLOAD
:=$(call AutoLoad
,27,rt2500usb
)
186 define KernelPackage
/rt61-pci
187 $(call KernelPackage
/rt2x00
/Default
)
188 DEPENDS
+= @PCI_SUPPORT
+kmod-rt2x00-pci
190 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt61pci.
$(LINUX_KMOD_SUFFIX
)
191 AUTOLOAD
:=$(call AutoLoad
,27,rt61pci
)
194 define KernelPackage
/rt73-usb
195 $(call KernelPackage
/rt2x00
/Default
)
196 DEPENDS
+= @USB_SUPPORT
+kmod-rt2x00-usb
198 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt73usb.
$(LINUX_KMOD_SUFFIX
)
199 AUTOLOAD
:=$(call AutoLoad
,27,rt73usb
)
202 define KernelPackage
/rt2800-pci
203 $(call KernelPackage
/rt2x00
/Default
)
204 DEPENDS
+= +kmod-rt2x00-pci
+kmod-crc-ccitt @
!LINUX_2_6_21||
!LINUX_2_6_23||
!LINUX_2_6_24||
!LINUX_2_6_25||
!LINUX_2_6_26
206 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2800pci.
$(LINUX_KMOD_SUFFIX
)
207 AUTOLOAD
:=$(call AutoLoad
,27,rt2800pci
)
210 define KernelPackage
/rt2800-usb
211 $(call KernelPackage
/rt2x00
/Default
)
212 DEPENDS
+= +kmod-rt2x00-usb
+kmod-crc-ccitt @
!LINUX_2_6_21||
!LINUX_2_6_23||
!LINUX_2_6_24||
!LINUX_2_6_25||
!LINUX_2_6_26
214 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/rt2x00
/rt2800usb.
$(LINUX_KMOD_SUFFIX
)
215 AUTOLOAD
:=$(call AutoLoad
,27,rt2800usb
)
218 ZD1211FW_NAME
:=zd1211-firmware
219 ZD1211FW_VERSION
:=1.4
220 define Download
/zd1211rw
221 FILE
:=$(ZD1211FW_NAME
)-$(ZD1211FW_VERSION
).
tar.bz2
223 MD5SUM
:=19f28781d76569af8551c9d11294c870
225 $(eval
$(call Download
,zd1211rw
))
227 define KernelPackage
/zd1211rw
228 $(call KernelPackage
/mac80211
/Default
)
229 TITLE
:=Zydas ZD1211 support
230 DEPENDS
+= @USB_SUPPORT
+kmod-usb-core
+kmod-mac80211
231 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/zd1211rw
/zd1211rw.
$(LINUX_KMOD_SUFFIX
)
232 AUTOLOAD
:=$(call AutoLoad
,60,zd1211rw
)
235 define KernelPackage
/ath5k
236 $(call KernelPackage
/mac80211
/Default
)
237 TITLE
:=Atheros
5xxx wireless cards support
238 URL
:=http
://linuxwireless.org
/en
/users
/Drivers
/ath5k
239 DEPENDS
+= @PCI_SUPPORT
+kmod-mac80211
240 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/ath5k
/ath5k.
$(LINUX_KMOD_SUFFIX
)
241 AUTOLOAD
:=$(call AutoLoad
,27,ath5k
)
244 define KernelPackage
/ath5k
/description
245 This module adds support for wireless adapters based on
246 Atheros
5xxx chipset.
249 define KernelPackage
/ath9k
250 $(call KernelPackage
/mac80211
/Default
)
251 TITLE
:=Atheros
802.11n wireless cards support
252 URL
:=http
://linuxwireless.org
/en
/users
/Drivers
/ath9k
253 DEPENDS
+= @PCI_SUPPORT
+kmod-mac80211 @
!LINUX_2_6_21||
!LINUX_2_6_23||
!LINUX_2_6_24||
!LINUX_2_6_25||
!LINUX_2_6_26
254 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/ath9k
/ath9k.
$(LINUX_KMOD_SUFFIX
)
255 AUTOLOAD
:=$(call AutoLoad
,27,ath9k
)
258 define KernelPackage
/ath9k
/description
259 This module adds support for wireless adapters based on
260 Atheros IEEE
802.11n AR5008 and AR9001 family of chipsets.
263 define KernelPackage
/mac80211-hwsim
264 $(call KernelPackage
/mac80211
/Default
)
265 TITLE
:=mac80211 HW simulation device
266 DEPENDS
+= +kmod-mac80211
267 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/mac80211_hwsim.
$(LINUX_KMOD_SUFFIX
)
268 AUTOLOAD
:=$(call AutoLoad
,60,mac80211_hwsim
)
272 ifneq ($(CONFIG_B43_EXPERIMENTAL
),)
273 PKG_B43_FWV4_NAME
:=broadcom-wl
274 PKG_B43_FWV4_VERSION
:=4.178.10.4
275 PKG_B43_FWV4_OBJECT
:=$(PKG_B43_FWV4_NAME
)-$(PKG_B43_FWV4_VERSION
)/linux
/wl.o
276 PKG_B43_FWV4_SOURCE
:=$(PKG_B43_FWV4_NAME
)-$(PKG_B43_FWV4_VERSION
).
tar.bz2
277 PKG_B43_FWV4_SOURCE_URL
:=http
://mirror2.openwrt.org
/sources
/
278 PKG_B43_FWV4_MD5SUM
:=14477e8cbbb91b11896affac9b219fdb
280 PKG_B43_FWV4_NAME
:=broadcom-wl
281 PKG_B43_FWV4_VERSION
:=4.150.10.5
282 PKG_B43_FWV4_OBJECT
:=$(PKG_B43_FWV4_NAME
)-$(PKG_B43_FWV4_VERSION
)/driver
/wl_apsta_mimo.o
283 PKG_B43_FWV4_SOURCE
:=$(PKG_B43_FWV4_NAME
)-$(PKG_B43_FWV4_VERSION
).
tar.bz2
284 PKG_B43_FWV4_SOURCE_URL
:=http
://mirror2.openwrt.org
/sources
/
285 PKG_B43_FWV4_MD5SUM
:=0c6ba9687114c6b598e8019e262d9a60
287 ifneq ($(CONFIG_B43_OPENFIRMWARE
),)
288 PKG_B43_FWV4_NAME
:=broadcom-wl
289 PKG_B43_FWV4_VERSION
:=5.1
290 PKG_B43_FWV4_OBJECT
:=openfwwf-
$(PKG_B43_FWV4_VERSION
)
291 PKG_B43_FWV4_SOURCE
:=openfwwf-
$(PKG_B43_FWV4_VERSION
).
tar.gz
292 PKG_B43_FWV4_SOURCE_URL
:=http
://www.ing.unibs.it
/openfwwf
/firmware
/
293 PKG_B43_FWV4_MD5SUM
:=3510c133393bb4911c4aa35742cefcfd
297 PKG_B43_FWV3_NAME
:=wl_apsta
298 PKG_B43_FWV3_VERSION
:=3.130.20.0
299 PKG_B43_FWV3_SOURCE
:=$(PKG_B43_FWV3_NAME
)-$(PKG_B43_FWV3_VERSION
).o
300 PKG_B43_FWV3_SOURCE_URL
:=http
://downloads.openwrt.org
/sources
/
301 PKG_B43_FWV3_MD5SUM
:=e08665c5c5b66beb9c3b2dd54aa80cb3
303 ifneq ($(CONFIG_B43_EXPERIMENTAL
)$(CONFIG_B43_OPENFIRMWARE
),)
304 PKG_B43_FWCUTTER_NAME
:=b43-fwcutter
305 PKG_B43_FWCUTTER_VERSION
:=3e69531aa65b8f664a0ab00dfc3e2eefeb0cb417
306 PKG_B43_FWCUTTER_SOURCE
:=$(PKG_B43_FWCUTTER_NAME
)-$(PKG_B43_FWCUTTER_VERSION
).
tar.bz2
307 PKG_B43_FWCUTTER_PROTO
:=git
308 PKG_B43_FWCUTTER_SOURCE_URL
:=http
://git.bu3sch.de
/git
/b43-tools.git
309 PKG_B43_FWCUTTER_SUBDIR
:=$(PKG_B43_FWCUTTER_NAME
)-$(PKG_B43_FWCUTTER_VERSION
)
310 PKG_B43_FWCUTTER_OBJECT
:=$(PKG_B43_FWCUTTER_NAME
)-$(PKG_B43_FWCUTTER_VERSION
)/fwcutter
/
312 PKG_B43_FWCUTTER_NAME
:=b43-fwcutter
313 PKG_B43_FWCUTTER_VERSION
:=011
314 PKG_B43_FWCUTTER_SOURCE
:=$(PKG_B43_FWCUTTER_NAME
)-$(PKG_B43_FWCUTTER_VERSION
).
tar.bz2
315 PKG_B43_FWCUTTER_PROTO
:=default
316 PKG_B43_FWCUTTER_SOURCE_URL
:=http
://bu3sch.de
/b43
/fwcutter
/
317 PKG_B43_FWCUTTER_MD5SUM
:=3db2f4de85a459451f5b391cf67a8d44
318 PKG_B43_FWCUTTER_SUBDIR
:=b43-fwcutter-
$(PKG_B43_FWCUTTER_VERSION
)
319 PKG_B43_FWCUTTER_OBJECT
:=$(PKG_B43_FWCUTTER_NAME
)-$(PKG_B43_FWCUTTER_VERSION
)/
322 define Download
/b43-common
323 FILE
:=$(PKG_B43_FWCUTTER_SOURCE
)
324 URL
:=$(PKG_B43_FWCUTTER_SOURCE_URL
)
325 MD5SUM
:=$(PKG_B43_FWCUTTER_MD5SUM
)
326 PROTO
:=$(PKG_B43_FWCUTTER_PROTO
)
327 VERSION
:=$(PKG_B43_FWCUTTER_VERSION
)
328 SUBDIR
:=$(PKG_B43_FWCUTTER_SUBDIR
)
330 $(eval
$(call Download
,b43-common
))
333 FILE
:=$(PKG_B43_FWV4_SOURCE
)
334 URL
:=$(PKG_B43_FWV4_SOURCE_URL
)
335 MD5SUM
:=$(PKG_B43_FWV4_MD5SUM
)
337 $(eval
$(call Download
,b43
))
339 define Download
/b43legacy
340 FILE
:=$(PKG_B43_FWV3_SOURCE
)
341 URL
:=$(PKG_B43_FWV3_SOURCE_URL
)
342 MD5SUM
:=$(PKG_B43_FWV3_MD5SUM
)
344 $(eval
$(call Download
,b43legacy
))
346 define KernelPackage
/b43-common
347 $(call KernelPackage
/mac80211
/Default
)
348 TITLE
:=Generic stuff for Broadcom wireless devices
349 URL
:=http
://linuxwireless.org
/en
/users
/Drivers
/b43
350 DEPENDS
+= +kmod-mac80211 @
!LINUX_2_6_21||
!LINUX_2_6_23||
!LINUX_2_6_24
353 define KernelPackage
/b43
354 $(call KernelPackage
/b43-common
)
355 TITLE
:=Broadcom
43xx wireless support
356 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/b43
/b43.
$(LINUX_KMOD_SUFFIX
)
357 AUTOLOAD
:=$(call AutoLoad
,30,b43
)
360 define KernelPackage
/b43
/config
361 source
"$(SOURCE)/Config.in"
364 define KernelPackage
/b43
/description
365 Kernel module for Broadcom
43xx wireless support
(mac80211 stack
) new
368 define KernelPackage
/b43legacy
369 $(call KernelPackage
/b43-common
)
370 TITLE
:=Broadcom
43xx-legacy wireless support
371 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/b43legacy
/b43legacy.
$(LINUX_KMOD_SUFFIX
)
372 AUTOLOAD
:=$(call AutoLoad
,30,b43legacy
)
375 define KernelPackage
/b43legacy
/description
376 Kernel module for Broadcom
43xx-legacy wireless support
(mac80211 stack
) new
380 -I
$(PKG_BUILD_DIR
)/include \
381 $(foreach opt
,$(CONFOPTS
),-DCONFIG_
$(opt
)) \
382 $(if
$(CONFIG_PCI
),-DCONFIG_B43_PCI_AUTOSELECT
-DCONFIG_B43_PCICORE_AUTOSELECT
-DCONFIG_SSB_DRIVER_PCICORE_POSSIBLE
-DCONFIG_SSB_DRIVER_PCICORE
) \
383 $(if
$(CONFIG_PCI
),-DCONFIG_SSB_PCIHOST_POSSIBLE
-DCONFIG_SSB_PCIHOST
) \
384 $(if
$(CONFIG_PCI
),-DCONFIG_SSB_SPROM
) \
385 $(if
$(CONFIG_LEDS_TRIGGERS
), -DCONFIG_MAC80211_LEDS
-DCONFIG_LEDS_TRIGGERS
-DCONFIG_B43_LEDS
-DCONFIG_B43LEGACY_LEDS
) \
386 $(if
$(CONFIG_RFKILL
),-DCONFIG_B43_RFKILL
-DCONFIG_B43LEGACY_RFKILL
) \
387 $(if
$(CONFIG_HW_RANDOM
),-DCONFIG_B43_HWRNG
) \
388 $(if
$(CONFIG_PCMCIA
),-DCONFIG_SSB_PCMCIAHOST_POSSIBLE
-DCONFIG_SSB_PCMCIAHOST
-DCONFIG_B43_PCMCIA
-DCONFIG_B43_PIO
) \
389 $(if
$(CONFIG_DEBUG_FS
), -DCONFIG_MAC80211_DEBUGFS
) \
390 -D__CONFIG_MAC80211_RC_DEFAULT
=minstrel \
393 CROSS_COMPILE
="$(TARGET_CROSS)" \
394 ARCH
="$(LINUX_KARCH)" \
395 EXTRA_CFLAGS
="$(BUILDFLAGS)" \
396 $(foreach opt
,$(CONFOPTS
),CONFIG_
$(opt
)=m
) \
398 CONFIG_MAC80211_RC_PID
=y \
399 CONFIG_MAC80211_RC_MINSTREL
=y \
400 CONFIG_MAC80211_LEDS
=$(CONFIG_LEDS_TRIGGERS
) \
401 CONFIG_MAC80211_DEBUGFS
=$(CONFIG_DEBUG_FS
) \
402 $(if
$(CONFIG_PCI
),CONFIG_B43_PCI_AUTOSELECT
=y
,CONFIG_B43_PCI_AUTOSELECT
=n
) \
403 $(if
$(CONFIG_PCI
),CONFIG_B43_PCICORE_AUTOSELECT
=y
,CONFIG_B43_PCICORE_AUTOSELECT
=n
) \
404 $(if
$(CONFIG_PCI
),CONFIG_SSB_DRIVER_PCICORE_POSSIBLE
=y
,CONFIG_SSB_DRIVER_PCICORE_POSSIBLE
=n
) \
405 $(if
$(CONFIG_PCI
),CONFIG_SSB_DRIVER_PCICORE
=y
,CONFIG_SSB_DRIVER_PCICORE
=n
) \
406 $(if
$(CONFIG_PCI
),CONFIG_SSB_PCIHOST_POSSIBLE
=y
,CONFIG_SSB_PCIHOST_POSSIBLE
=n
) \
407 $(if
$(CONFIG_PCI
),CONFIG_SSB_PCIHOST
=y
,CONFIG_SSB_PCIHOST
=n
) \
408 $(if
$(CONFIG_PCMCIA
),CONFIG_SSB_PCMCIAHOST_POSSIBLE
=y
,CONFIG_SSB_PCMCIAHOST_POSSIBLE
=n
) \
409 $(if
$(CONFIG_PCMCIA
),CONFIG_SSB_PCMCIAHOST
=y
,CONFIG_SSB_PCMCIAHOST
=n
) \
410 $(if
$(CONFIG_PCMCIA
),CONFIG_B43_PCMCIA
=y
,CONFIG_B43_PCMCIA
=n
) \
411 $(if
$(CONFIG_PCMCIA
),CONFIG_B43_PIO
=y
,CONFIG_B43_PIO
=n
) \
412 $(if
$(CONFIG_RFKILL
),CONFIG_B43_RFKILL
=y
,CONFIG_B43_RFKILL
=n
) \
413 $(if
$(CONFIG_RFKILL
),CONFIG_B43LEGACY_RFKILL
=y
,CONFIG_B43LEGACY_RFKILL
=n
) \
414 CONFIG_B43LEGACY_LEDS
=$(CONFIG_LEDS_TRIGGERS
) \
415 CONFIG_B43_LEDS
=$(CONFIG_LEDS_TRIGGERS
) \
416 $(if
$(CONFIG_HW_RANDOM
),CONFIG_B43_HWRNG
=y
,CONFIG_B43_HWRNG
=n
) \
417 $(if
$(CONFIG_PACKAGE_kmod-b43
),CONFIG_B43
=m
) \
418 $(if
$(CONFIG_PACKAGE_kmod-b43legacy
),CONFIG_B43LEGACY
=m
) \
419 KLIB_BUILD
="$(LINUX_DIR)" \
423 rm -rf
$(PKG_BUILD_DIR
)
424 mkdir
-p
$(PKG_BUILD_DIR
)
427 unzip
-jod
$(PKG_BUILD_DIR
) $(DL_DIR
)/$(RT61FW
)
428 unzip
-jod
$(PKG_BUILD_DIR
) $(DL_DIR
)/$(RT71FW
)
429 -unzip
-jod
$(PKG_BUILD_DIR
) $(DL_DIR
)/$(RT2860FW
)
430 $(TAR
) -C
$(PKG_BUILD_DIR
) -xjf
$(DL_DIR
)/$(ZD1211FW_NAME
)-$(ZD1211FW_VERSION
).
tar.bz2
431 rm -rf
$(PKG_BUILD_DIR
)/include/linux
/ssb
432 rm -f
$(PKG_BUILD_DIR
)/include/net
/ieee80211.h
433 rm $(PKG_BUILD_DIR
)/include/linux
/eeprom_93cx6.h
436 ifneq ($(CONFIG_PACKAGE_kmod-mac80211
),)
437 define Build
/Compile
/kmod
438 rm -rf
$(PKG_BUILD_DIR
)/modules
439 $(MAKE
) -C
"$(PKG_BUILD_DIR)" $(MAKE_OPTS
) all
444 $(call Build
/Compile
/kmod
)
447 define Build
/InstallDev
448 mkdir
-p
$(1)/usr
/include/mac80211
$(1)/usr
/include/net
/mac80211
449 $(CP
) $(PKG_BUILD_DIR
)/net
/mac80211
/*.h
$(PKG_BUILD_DIR
)/include/* $(1)/usr
/include/mac80211
/
450 $(CP
) $(PKG_BUILD_DIR
)/net
/mac80211
/rate.h
$(1)/usr
/include/net
/mac80211
/
453 define KernelPackage
/mac80211
/install
454 $(INSTALL_DIR
) $(1)/lib
/wifi
455 $(INSTALL_DATA
) .
/files
/lib
/wifi
/mac80211.sh
$(1)/lib
/wifi
458 define KernelPackage
/p54-pci
/install
459 $(INSTALL_DIR
) $(1)/lib
/firmware
460 $(INSTALL_DATA
) $(DL_DIR
)/$(P54PCIFW
) $(1)/lib
/firmware
/isl3886pci
463 define KernelPackage
/p54-usb
/install
464 $(INSTALL_DIR
) $(1)/lib
/firmware
465 $(INSTALL_DATA
) $(DL_DIR
)/$(P54USBFW
) $(1)/lib
/firmware
/isl3886usb
468 define KernelPackage
/rt61-pci
/install
469 $(INSTALL_DIR
) $(1)/lib
/firmware
470 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/rt2?
61*.bin
$(1)/lib
/firmware
/
473 define KernelPackage
/rt73-usb
/install
474 $(INSTALL_DIR
) $(1)/lib
/firmware
475 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/rt73.bin
$(1)/lib
/firmware
/
478 define KernelPackage
/rt2800-pci
/install
479 $(INSTALL_DIR
) $(1)/lib
/firmware
480 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/rt2860.bin
$(1)/lib
/firmware
/
483 define KernelPackage
/zd1211rw
/install
484 $(INSTALL_DIR
) $(1)/lib
/firmware
/zd1211
485 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/$(ZD1211FW_NAME
)/zd1211
* $(1)/lib
/firmware
/zd1211
488 define Build
/b43-common
489 tar xjf
"$(DL_DIR)/$(PKG_B43_FWCUTTER_SOURCE)" -C
"$(PKG_BUILD_DIR)"
490 $(MAKE
) -C
"$(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_OBJECT)" \
491 CFLAGS
="-I$(STAGING_DIR_HOST)/include -include endian.h"
492 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWCUTTER_OBJECT
)/b43-fwcutter
$(STAGING_DIR_HOST
)/bin
/
493 ifneq ($(CONFIG_B43_OPENFIRMWARE
),)
494 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/bin
/
495 $(MAKE
) -C
"$(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_SUBDIR)/assembler/"
496 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWCUTTER_SUBDIR
)/assembler
/b43-asm
$(STAGING_DIR_HOST
)/bin
/
497 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWCUTTER_SUBDIR
)/assembler
/b43-asm.bin
$(STAGING_DIR_HOST
)/bin
/
499 $(INSTALL_BIN
) .
/files
/host_bin
/b43-fwsquash.py
$(STAGING_DIR_HOST
)/bin
/
502 define KernelPackage
/b43
/install
503 rm -rf
$(1)/lib
/firmware
/
504 $(call Build
/b43-common
)
505 ifneq ($(CONFIG_B43_OPENFIRMWARE
),)
506 tar xzf
"$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C
"$(PKG_BUILD_DIR)"
508 tar xjf
"$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C
"$(PKG_BUILD_DIR)"
510 $(INSTALL_DIR
) $(1)/lib
/firmware
/
511 ifneq ($(CONFIG_B43_OPENFIRMWARE
),)
512 $(MAKE
) -C
"$(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/"
513 $(INSTALL_DIR
) $(1)/lib
/firmware
/b43-open
/
514 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWV4_OBJECT
)/ucode5.fw
$(1)/lib
/firmware
/b43-open
/ucode5.fw
515 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWV4_OBJECT
)/b0g0bsinitvals5.fw
$(1)/lib
/firmware
/b43-open
/b0g0bsinitvals5.fw
516 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/$(PKG_B43_FWV4_OBJECT
)/b0g0initvals5.fw
$(1)/lib
/firmware
/b43-open
/b0g0initvals5.fw
518 b43-fwcutter
--unsupported
-w
$(1)/lib
/firmware
/ $(PKG_BUILD_DIR
)/$(PKG_B43_FWV4_OBJECT
)
520 ifneq ($(CONFIG_B43_FW_SQUASH
),)
521 b43-fwsquash.py
"$(CONFIG_B43_FW_SQUASH_PHYTYPES)" "$(CONFIG_B43_FW_SQUASH_COREREVS)" "$(1)/lib/firmware/b43"
525 define KernelPackage
/b43legacy
/install
526 $(call Build
/b43-common
)
527 $(INSTALL_DIR
) $(1)/lib
/firmware
/
529 b43-fwcutter
--unsupported
-w
$(1)/lib
/firmware
/ $(DL_DIR
)/$(PKG_B43_FWV3_SOURCE
)
532 $(eval
$(call KernelPackage
,ath5k
))
533 $(eval
$(call KernelPackage
,mac80211
))
534 $(eval
$(call KernelPackage
,p54-common
))
535 $(eval
$(call KernelPackage
,p54-pci
))
536 $(eval
$(call KernelPackage
,p54-usb
))
537 $(eval
$(call KernelPackage
,rt2x00-lib
))
538 $(eval
$(call KernelPackage
,rt2x00-pci
))
539 $(eval
$(call KernelPackage
,rt2x00-usb
))
540 $(eval
$(call KernelPackage
,rt2400-pci
))
541 $(eval
$(call KernelPackage
,rt2500-pci
))
542 $(eval
$(call KernelPackage
,rt2500-usb
))
543 $(eval
$(call KernelPackage
,rt61-pci
))
544 $(eval
$(call KernelPackage
,rt73-usb
))
545 $(eval
$(call KernelPackage
,rt2800-pci
))
546 $(eval
$(call KernelPackage
,rt2800-usb
))
547 $(eval
$(call KernelPackage
,zd1211rw
))
548 $(eval
$(call KernelPackage
,mac80211-hwsim
))
549 $(eval
$(call KernelPackage
,ath9k
))
550 $(eval
$(call KernelPackage
,b43
))
551 $(eval
$(call KernelPackage
,b43legacy
))