[ar71xx] remove AR71XX_EARLY_SERIAL stuff
[openwrt.git] / package / mac80211 / Makefile
1 #
2 # Copyright (C) 2007-2009 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:=2009-08-20
14 PKG_RELEASE:=1
15 PKG_SOURCE_URL:= \
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
19
20 PKG_SOURCE:=compat-wireless-$(PKG_VERSION).tar.bz2
21 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/compat-wireless-$(PKG_VERSION)
22
23 PKG_CONFIG_DEPENDS:= \
24 CONFIG_PACKAGE_kmod-mac80211 \
25
26 include $(INCLUDE_DIR)/package.mk
27
28 WMENU:=Wireless Drivers
29
30 define KernelPackage/mac80211/Default
31 SUBMENU:=$(WMENU)
32 URL:=http://linuxwireless.org/
33 DEPENDS:=@LINUX_2_6 @!TARGET_avr32
34 endef
35
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
40 FILES:= \
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)
44 endef
45
46 define KernelPackage/mac80211/description
47 Linux 802.11 Wireless Networking Stack
48 endef
49
50 # Prism54 drivers
51 P54PCIFW:=2.13.12.0.arm
52 P54USBFW:=2.13.24.0.lm86.arm
53
54 define Download/p54usb
55 FILE:=$(P54USBFW)
56 URL:=http://daemonizer.de/prism54/prism54-fw/fw-usb
57 MD5SUM:=2efd50eab43c0d0376765576a54b7a30
58 endef
59 $(eval $(call Download,p54usb))
60
61 define Download/p54pci
62 FILE:=$(P54PCIFW)
63 URL:=http://daemonizer.de/prism54/prism54-fw/fw-softmac
64 MD5SUM:=ff7536af2092b1c4b21315bd103ef4c4
65 endef
66 $(eval $(call Download,p54pci))
67
68 define KernelPackage/p54/Default
69 $(call KernelPackage/mac80211/Default)
70 TITLE:=Prism54 Drivers
71 endef
72
73 define KernelPackage/p54/description
74 Kernel module for Prism54 chipsets (mac80211)
75 endef
76
77 define KernelPackage/p54-common
78 $(call KernelPackage/p54/Default)
79 DEPENDS+= @PCI_SUPPORT||@USB_SUPPORT +kmod-mac80211
80 TITLE+= (COMMON)
81 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/p54/p54common.$(LINUX_KMOD_SUFFIX)
82 AUTOLOAD:=$(call AutoLoad,30,p54common)
83 endef
84
85 define KernelPackage/p54-pci
86 $(call KernelPackage/p54/Default)
87 TITLE+= (PCI)
88 DEPENDS+= @PCI_SUPPORT +kmod-p54-common
89 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/p54/p54pci.$(LINUX_KMOD_SUFFIX)
90 AUTOLOAD:=$(call AutoLoad,31,p54pci)
91 endef
92
93 define KernelPackage/p54-usb
94 $(call KernelPackage/p54/Default)
95 TITLE+= (USB)
96 DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-p54-common
97 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/p54/p54usb.$(LINUX_KMOD_SUFFIX)
98 AUTOLOAD:=$(call AutoLoad,31,p54usb)
99 endef
100
101 # Ralink rt2x00 drivers
102 RT61FW:=RT61_Firmware_V1.2.zip
103 RT71FW:=RT71W_Firmware_V1.8.zip
104 RT2860FW:=RT2860_Firmware_V11.zip
105 RT2870FW:=RT2870_Firmware_V8.zip
106
107 define Download/rt61
108 FILE:=$(RT61FW)
109 URL:=http://www.ralinktech.com.tw/data/
110 MD5SUM:=d4c690c93b470bc9a681297c2adc6281
111 endef
112 $(eval $(call Download,rt61))
113
114 define Download/rt71w
115 FILE:=$(RT71FW)
116 URL:=http://www.ralinktech.com.tw/data/
117 MD5SUM:=1e7a5dc574e0268574fcda3fd5cf52f7
118 endef
119 $(eval $(call Download,rt71w))
120
121 define Download/rt2860
122 FILE:=$(RT2860FW)
123 URL:=http://www.ralinktech.com.tw/data/drivers
124 MD5SUM:=440a81756a52c53528f16faa41c40124
125 endef
126 $(eval $(call Download,rt2860))
127
128 define Download/rt2870
129 FILE:=$(RT2870FW)
130 URL:=http://www.ralinktech.com.tw/data/drivers
131 MD5SUM:=a7aae1d8cfd68e4d86a73000df0b6584
132 endef
133 $(eval $(call Download,rt2870))
134
135 define KernelPackage/rt2x00/Default
136 $(call KernelPackage/mac80211/Default)
137 TITLE:=Ralink Drivers for RT2x00 cards
138 endef
139
140 define KernelPackage/rt2x00-lib
141 $(call KernelPackage/rt2x00/Default)
142 DEPENDS+= @PCI_SUPPORT||@USB_SUPPORT +kmod-mac80211 +kmod-crc-itu-t
143 TITLE+= (LIB)
144 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2x00lib.$(LINUX_KMOD_SUFFIX)
145 AUTOLOAD:=$(call AutoLoad,25,blkcipher ecb arc4 rt2x00lib)
146 endef
147
148 define KernelPackage/rt2x00-pci
149 $(call KernelPackage/rt2x00/Default)
150 DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-lib +kmod-eeprom-93cx6
151 TITLE+= (PCI)
152 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2x00pci.$(LINUX_KMOD_SUFFIX)
153 AUTOLOAD:=$(call AutoLoad,26,rt2x00pci)
154 endef
155
156 define KernelPackage/rt2x00-usb
157 $(call KernelPackage/rt2x00/Default)
158 DEPENDS+= @USB_SUPPORT +kmod-rt2x00-lib +kmod-usb-core
159 TITLE+= (USB)
160 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2x00usb.$(LINUX_KMOD_SUFFIX)
161 AUTOLOAD:=$(call AutoLoad,26,rt2x00usb)
162 endef
163
164 define KernelPackage/rt2400-pci
165 $(call KernelPackage/rt2x00/Default)
166 DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci
167 TITLE+= (RT2400 PCI)
168 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2400pci.$(LINUX_KMOD_SUFFIX)
169 AUTOLOAD:=$(call AutoLoad,27,rt2400pci)
170 endef
171
172 define KernelPackage/rt2500-pci
173 $(call KernelPackage/rt2x00/Default)
174 DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci
175 TITLE+= (RT2500 PCI)
176 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2500pci.$(LINUX_KMOD_SUFFIX)
177 AUTOLOAD:=$(call AutoLoad,27,rt2500pci)
178 endef
179
180 define KernelPackage/rt2500-usb
181 $(call KernelPackage/rt2x00/Default)
182 DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb
183 TITLE+= (RT2500 USB)
184 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2500usb.$(LINUX_KMOD_SUFFIX)
185 AUTOLOAD:=$(call AutoLoad,27,rt2500usb)
186 endef
187
188 define KernelPackage/rt61-pci
189 $(call KernelPackage/rt2x00/Default)
190 DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci
191 TITLE+= (RT2x61 PCI)
192 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt61pci.$(LINUX_KMOD_SUFFIX)
193 AUTOLOAD:=$(call AutoLoad,27,rt61pci)
194 endef
195
196 define KernelPackage/rt73-usb
197 $(call KernelPackage/rt2x00/Default)
198 DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb
199 TITLE+= (RT73 USB)
200 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt73usb.$(LINUX_KMOD_SUFFIX)
201 AUTOLOAD:=$(call AutoLoad,27,rt73usb)
202 endef
203
204 define KernelPackage/rt2800-pci
205 $(call KernelPackage/rt2x00/Default)
206 DEPENDS+= +kmod-rt2x00-pci +kmod-crc-ccitt
207 TITLE+= (RT2860 PCI)
208 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2800pci.$(LINUX_KMOD_SUFFIX)
209 AUTOLOAD:=$(call AutoLoad,27,rt2800pci)
210 endef
211
212 define KernelPackage/rt2800-usb
213 $(call KernelPackage/rt2x00/Default)
214 DEPENDS+= +kmod-rt2x00-usb +kmod-crc-ccitt
215 TITLE+= (RT2870 USB)
216 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2800usb.$(LINUX_KMOD_SUFFIX)
217 AUTOLOAD:=$(call AutoLoad,27,rt2800usb)
218 endef
219
220 define KernelPackage/rtl818x/Default
221 $(call KernelPackage/mac80211/Default)
222 TITLE:=Realtek Drivers for RTL818x devices
223 URL:=http://wireless.kernel.org/en/users/Drivers/rtl8187
224 DEPENDS+= +kmod-eeprom-93cx6 +kmod-mac80211
225 endef
226
227 define KernelPackage/rtl8180
228 $(call KernelPackage/rtl818x/Default)
229 DEPENDS+= @PCI_SUPPORT
230 TITLE+= (RTL8180 PCI)
231 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rtl818x/rtl8180.$(LINUX_KMOD_SUFFIX)
232 AUTOLOAD:=$(call AutoLoad,27,rtl8180)
233 endef
234
235 define KernelPackage/rtl8187
236 $(call KernelPackage/rtl818x/Default)
237 DEPENDS+= @USB_SUPPORT
238 TITLE+= (RTL8187 USB)
239 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rtl818x/rtl8187.$(LINUX_KMOD_SUFFIX)
240 AUTOLOAD:=$(call AutoLoad,27,rtl8187)
241 endef
242
243 ZD1211FW_NAME:=zd1211-firmware
244 ZD1211FW_VERSION:=1.4
245 define Download/zd1211rw
246 FILE:=$(ZD1211FW_NAME)-$(ZD1211FW_VERSION).tar.bz2
247 URL:=@SF/zd1211/
248 MD5SUM:=19f28781d76569af8551c9d11294c870
249 endef
250 $(eval $(call Download,zd1211rw))
251
252 define KernelPackage/zd1211rw
253 $(call KernelPackage/mac80211/Default)
254 TITLE:=Zydas ZD1211 support
255 DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-mac80211
256 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/zd1211rw/zd1211rw.$(LINUX_KMOD_SUFFIX)
257 AUTOLOAD:=$(call AutoLoad,60,zd1211rw)
258 endef
259
260
261 define KernelPackage/ath
262 $(call KernelPackage/mac80211/Default)
263 TITLE:=Atheros common driver part
264 DEPENDS+= @PCI_SUPPORT +kmod-mac80211
265 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath.$(LINUX_KMOD_SUFFIX)
266 AUTOLOAD:=$(call AutoLoad,26,ath)
267 endef
268
269 define KernelPackage/ath/description
270 This module contains some common parts needed by Atheros Wireless drivers.
271 endef
272
273 define KernelPackage/ath5k
274 $(call KernelPackage/mac80211/Default)
275 TITLE:=Atheros 5xxx wireless cards support
276 URL:=http://linuxwireless.org/en/users/Drivers/ath5k
277 DEPENDS+= +kmod-ath
278 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath5k/ath5k.$(LINUX_KMOD_SUFFIX)
279 AUTOLOAD:=$(call AutoLoad,27,ath5k)
280 endef
281
282 define KernelPackage/ath5k/description
283 This module adds support for wireless adapters based on
284 Atheros 5xxx chipset.
285 endef
286
287 define KernelPackage/ath9k
288 $(call KernelPackage/mac80211/Default)
289 TITLE:=Atheros 802.11n wireless cards support
290 URL:=http://linuxwireless.org/en/users/Drivers/ath9k
291 DEPENDS+= +kmod-ath
292 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k.$(LINUX_KMOD_SUFFIX)
293 AUTOLOAD:=$(call AutoLoad,27,ath9k)
294 endef
295
296 define KernelPackage/ath9k/description
297 This module adds support for wireless adapters based on
298 Atheros IEEE 802.11n AR5008 and AR9001 family of chipsets.
299 endef
300
301 define KernelPackage/mac80211-hwsim
302 $(call KernelPackage/mac80211/Default)
303 TITLE:=mac80211 HW simulation device
304 DEPENDS+= +kmod-mac80211
305 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/mac80211_hwsim.$(LINUX_KMOD_SUFFIX)
306 AUTOLOAD:=$(call AutoLoad,60,mac80211_hwsim)
307 endef
308
309 #Broadcom firmware
310 ifneq ($(CONFIG_B43_EXPERIMENTAL),)
311 PKG_B43_FWV4_NAME:=broadcom-wl
312 PKG_B43_FWV4_VERSION:=4.178.10.4
313 PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/linux/wl.o
314 PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).tar.bz2
315 PKG_B43_FWV4_SOURCE_URL:=http://mirror2.openwrt.org/sources/
316 PKG_B43_FWV4_MD5SUM:=14477e8cbbb91b11896affac9b219fdb
317 else
318 PKG_B43_FWV4_NAME:=broadcom-wl
319 PKG_B43_FWV4_VERSION:=4.150.10.5
320 PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/driver/wl_apsta_mimo.o
321 PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).tar.bz2
322 PKG_B43_FWV4_SOURCE_URL:=http://mirror2.openwrt.org/sources/
323 PKG_B43_FWV4_MD5SUM:=0c6ba9687114c6b598e8019e262d9a60
324 endif
325 ifneq ($(CONFIG_B43_OPENFIRMWARE),)
326 PKG_B43_FWV4_NAME:=broadcom-wl
327 PKG_B43_FWV4_VERSION:=5.2
328 PKG_B43_FWV4_OBJECT:=openfwwf-$(PKG_B43_FWV4_VERSION)
329 PKG_B43_FWV4_SOURCE:=openfwwf-$(PKG_B43_FWV4_VERSION).tar.gz
330 PKG_B43_FWV4_SOURCE_URL:=http://www.ing.unibs.it/openfwwf/firmware/
331 PKG_B43_FWV4_MD5SUM:=e045a135453274e439ae183f8498b0fa
332 endif
333
334
335 PKG_B43_FWV3_NAME:=wl_apsta
336 PKG_B43_FWV3_VERSION:=3.130.20.0
337 PKG_B43_FWV3_SOURCE:=$(PKG_B43_FWV3_NAME)-$(PKG_B43_FWV3_VERSION).o
338 PKG_B43_FWV3_SOURCE_URL:=http://downloads.openwrt.org/sources/
339 PKG_B43_FWV3_MD5SUM:=e08665c5c5b66beb9c3b2dd54aa80cb3
340
341 ifneq ($(CONFIG_B43_OPENFIRMWARE),)
342 PKG_B43_FWCUTTER_NAME:=b43-fwcutter
343 PKG_B43_FWCUTTER_VERSION:=3e69531aa65b8f664a0ab00dfc3e2eefeb0cb417
344 PKG_B43_FWCUTTER_SOURCE:=$(PKG_B43_FWCUTTER_NAME)-$(PKG_B43_FWCUTTER_VERSION).tar.bz2
345 PKG_B43_FWCUTTER_PROTO:=git
346 PKG_B43_FWCUTTER_SOURCE_URL:=http://git.bu3sch.de/git/b43-tools.git
347 PKG_B43_FWCUTTER_SUBDIR:=$(PKG_B43_FWCUTTER_NAME)-$(PKG_B43_FWCUTTER_VERSION)
348 PKG_B43_FWCUTTER_OBJECT:=$(PKG_B43_FWCUTTER_NAME)-$(PKG_B43_FWCUTTER_VERSION)/fwcutter/
349 else
350 PKG_B43_FWCUTTER_NAME:=b43-fwcutter
351 PKG_B43_FWCUTTER_VERSION:=012
352 PKG_B43_FWCUTTER_SOURCE:=$(PKG_B43_FWCUTTER_NAME)-$(PKG_B43_FWCUTTER_VERSION).tar.bz2
353 PKG_B43_FWCUTTER_PROTO:=default
354 PKG_B43_FWCUTTER_SOURCE_URL:=http://bu3sch.de/b43/fwcutter/
355 PKG_B43_FWCUTTER_MD5SUM:=69eadf67b459f313a8d6b37aaabef96c
356 PKG_B43_FWCUTTER_SUBDIR:=b43-fwcutter-$(PKG_B43_FWCUTTER_VERSION)
357 PKG_B43_FWCUTTER_OBJECT:=$(PKG_B43_FWCUTTER_NAME)-$(PKG_B43_FWCUTTER_VERSION)/
358 endif
359
360 define Download/b43-common
361 FILE:=$(PKG_B43_FWCUTTER_SOURCE)
362 URL:=$(PKG_B43_FWCUTTER_SOURCE_URL)
363 MD5SUM:=$(PKG_B43_FWCUTTER_MD5SUM)
364 PROTO:=$(PKG_B43_FWCUTTER_PROTO)
365 VERSION:=$(PKG_B43_FWCUTTER_VERSION)
366 SUBDIR:=$(PKG_B43_FWCUTTER_SUBDIR)
367 endef
368 $(eval $(call Download,b43-common))
369
370 define Download/b43
371 FILE:=$(PKG_B43_FWV4_SOURCE)
372 URL:=$(PKG_B43_FWV4_SOURCE_URL)
373 MD5SUM:=$(PKG_B43_FWV4_MD5SUM)
374 endef
375 $(eval $(call Download,b43))
376
377 define Download/b43legacy
378 FILE:=$(PKG_B43_FWV3_SOURCE)
379 URL:=$(PKG_B43_FWV3_SOURCE_URL)
380 MD5SUM:=$(PKG_B43_FWV3_MD5SUM)
381 endef
382 $(eval $(call Download,b43legacy))
383
384 define KernelPackage/b43-common
385 $(call KernelPackage/mac80211/Default)
386 TITLE:=Generic stuff for Broadcom wireless devices
387 URL:=http://linuxwireless.org/en/users/Drivers/b43
388 DEPENDS+= +kmod-mac80211 +!(TARGET_brcm47xx||TARGET_brcm63xx):kmod-ssb
389 endef
390
391 define KernelPackage/b43
392 $(call KernelPackage/b43-common)
393 TITLE:=Broadcom 43xx wireless support
394 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/b43/b43.$(LINUX_KMOD_SUFFIX)
395 AUTOLOAD:=$(call AutoLoad,30,b43)
396 endef
397
398 define KernelPackage/b43/config
399 source "$(SOURCE)/Config.in"
400 endef
401
402 define KernelPackage/b43/description
403 Kernel module for Broadcom 43xx wireless support (mac80211 stack) new
404 endef
405
406 define KernelPackage/b43legacy
407 $(call KernelPackage/b43-common)
408 TITLE:=Broadcom 43xx-legacy wireless support
409 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/b43legacy/b43legacy.$(LINUX_KMOD_SUFFIX)
410 AUTOLOAD:=$(call AutoLoad,30,b43legacy)
411 endef
412
413 define KernelPackage/b43legacy/description
414 Kernel module for Broadcom 43xx-legacy wireless support (mac80211 stack) new
415 endef
416
417 BUILDFLAGS:= \
418 -I$(PKG_BUILD_DIR)/include \
419 $(foreach opt,$(CONFOPTS),-DCONFIG_$(opt)) \
420 $(if $(CONFIG_PCI),-DCONFIG_B43_PCI_AUTOSELECT -DCONFIG_B43_PCICORE_AUTOSELECT -DCONFIG_SSB_DRIVER_PCICORE_POSSIBLE -DCONFIG_SSB_DRIVER_PCICORE) \
421 $(if $(CONFIG_PCI),-DCONFIG_SSB_PCIHOST_POSSIBLE -DCONFIG_SSB_PCIHOST) \
422 $(if $(CONFIG_PCI),-DCONFIG_SSB_SPROM) \
423 $(if $(CONFIG_LEDS_TRIGGERS), -DCONFIG_MAC80211_LEDS -DCONFIG_LEDS_TRIGGERS -DCONFIG_B43_LEDS -DCONFIG_B43LEGACY_LEDS) \
424 $(if $(CONFIG_HW_RANDOM),-DCONFIG_B43_HWRNG -DCONFIG_B43LEGACY_HWRNG) \
425 $(if $(CONFIG_DEBUG_FS), -DCONFIG_MAC80211_DEBUGFS) \
426 -D__CONFIG_MAC80211_RC_DEFAULT=minstrel \
427
428 MAKE_OPTS:= \
429 CROSS_COMPILE="$(KERNEL_CROSS)" \
430 ARCH="$(LINUX_KARCH)" \
431 EXTRA_CFLAGS="$(BUILDFLAGS)" \
432 $(foreach opt,$(CONFOPTS),CONFIG_$(opt)=m) \
433 CONFIG_MAC80211_RC_PID=y \
434 CONFIG_MAC80211_RC_MINSTREL=y \
435 CONFIG_MAC80211_LEDS=$(CONFIG_LEDS_TRIGGERS) \
436 CONFIG_MAC80211_DEBUGFS=$(CONFIG_DEBUG_FS) \
437 CONFIG_B43_PCMCIA=n CONFIG_B43_PIO=n \
438 CONFIG_B43_PCI_AUTOSELECT=$(if $(CONFIG_PCI),y) \
439 CONFIG_B43_PCICORE_AUTOSELECT=$(if $(CONFIG_PCI),y) \
440 CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=$(if $(CONFIG_PCI),y) \
441 CONFIG_SSB_DRIVER_PCICORE=$(if $(CONFIG_PCI),y) \
442 CONFIG_SSB_PCIHOST_POSSIBLE=$(if $(CONFIG_PCI),y) \
443 CONFIG_SSB_PCIHOST=$(if $(CONFIG_PCI),y) \
444 CONFIG_B43LEGACY_LEDS=$(CONFIG_LEDS_TRIGGERS) \
445 CONFIG_B43_LEDS=$(CONFIG_LEDS_TRIGGERS) \
446 CONFIG_B43_HWRNG=$(if $(CONFIG_HW_RANDOM),y) \
447 CONFIG_B43LEGACY_HWRNG=$(if $(CONFIG_HW_RANDOM),y) \
448 CONFIG_B43=$(if $(CONFIG_PACKAGE_kmod-b43),m) \
449 CONFIG_B43LEGACY=$(if $(CONFIG_PACKAGE_kmod-b43legacy),m) \
450 CONFIG_ATH_COMMON=$(if $(CONFIG_PACKAGE_kmod-ath),m) \
451 CONFIG_ATH5K=$(if $(CONFIG_PACKAGE_kmod-ath5k),m) \
452 CONFIG_ATH9K=$(if $(CONFIG_PACKAGE_kmod-ath9k),m) \
453 CONFIG_ZD1211RW=$(if $(CONFIG_PACKAGE_kmod-zd1211rw),m) \
454 CONFIG_P54_COMMON=$(if $(CONFIG_PACKAGE_kmod-p54-common),m) \
455 CONFIG_P54_PCI=$(if $(CONFIG_PACKAGE_kmod-p54-pci),m) \
456 CONFIG_P54_USB=$(if $(CONFIG_PACKAGE_kmod-p54-usb),m) \
457 CONFIG_RT2X00=$(if $(CONFIG_PACKAGE_kmod-rt2x00-lib),m) \
458 CONFIG_RT2X00_LIB_PCI=$(if $(CONFIG_PACKAGE_kmod-rt2x00-pci),m) \
459 CONFIG_RT2X00_LIB_USB=$(if $(CONFIG_PACKAGE_kmod-rt2x00-usb),m) \
460 CONFIG_RT2400PCI=$(if $(CONFIG_PACKAGE_kmod-rt2400-pci),m) \
461 CONFIG_RT2500PCI=$(if $(CONFIG_PACKAGE_kmod-rt2500-pci),m) \
462 CONFIG_RT2500USB=$(if $(CONFIG_PACKAGE_kmod-rt2500-usb),m) \
463 CONFIG_RT61PCI=$(if $(CONFIG_PACKAGE_kmod-rt61-pci),m) \
464 CONFIG_RT73USB=$(if $(CONFIG_PACKAGE_kmod-rt73-usb),m) \
465 CONFIG_RT2800PCI=$(if $(CONFIG_PACKAGE_kmod-rt2800-pci),m) \
466 CONFIG_RT2800USB=$(if $(CONFIG_PACKAGE_kmod-rt2800-usb),m) \
467 CONFIG_RTL8180=$(if $(CONFIG_PACKAGE_kmod-rtl8180),m) \
468 CONFIG_RTL8187=$(if $(CONFIG_PACKAGE_kmod-rtl8187),m) \
469 CONFIG_MAC80211_HWSIM=$(if $(CONFIG_PACKAGE_kmod-mac80211-hwsim),m) \
470 CONFIG_PCMCIA= \
471 CONFIG_LIBIPW= \
472 CONFIG_LIBERTAS= \
473 CONFIG_LIBERTAS_CS= \
474 CONFIG_LIBERTAS_SDIO= \
475 CONFIG_LIBERTAS_THINFIRM= \
476 CONFIG_IPW2100= \
477 CONFIG_IPW2200= \
478 CONFIG_NL80211=y \
479 CONFIG_LIB80211= \
480 CONFIG_LIB80211_CRYPT_WEP= \
481 CONFIG_LIB80211_CRYPT_CCMP= \
482 CONFIG_LIB80211_CRYPT_TKIP= \
483 CONFIG_IWLWIFI= \
484 CONFIG_IWLAGN= \
485 CONFIG_MWL8K= \
486 CONFIG_ATMEL= \
487 CONFIG_PCMCIA_ATMEL= \
488 CONFIG_ADM8211= \
489 CONFIG_USB_NET_RNDIS_HOST= \
490 CONFIG_USB_NET_RNDIS_WLAN= \
491 CONFIG_USB_NET_CDCETHER= \
492 CONFIG_AT76C50X_USB= \
493 CONFIG_WL12XX= \
494 CONFIG_EEPROM_93CX6= \
495 CONFIG_AR9170_USB= \
496 MADWIFI= \
497 OLD_IWL= \
498 KLIB_BUILD="$(LINUX_DIR)" \
499 MODPROBE=: \
500 KLIB=$(TARGET_MODULES_DIR) \
501 KERNEL_SUBLEVEL=$(lastword $(subst ., ,$(KERNEL_PATCHVER)))
502
503 define Build/Prepare
504 rm -rf $(PKG_BUILD_DIR)
505 mkdir -p $(PKG_BUILD_DIR)
506 $(PKG_UNPACK)
507 $(Build/Patch)
508 unzip -jod $(PKG_BUILD_DIR) $(DL_DIR)/$(RT61FW)
509 unzip -jod $(PKG_BUILD_DIR) $(DL_DIR)/$(RT71FW)
510 -unzip -jod $(PKG_BUILD_DIR) $(DL_DIR)/$(RT2860FW)
511 -unzip -jod $(PKG_BUILD_DIR) $(DL_DIR)/$(RT2870FW)
512 $(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(ZD1211FW_NAME)-$(ZD1211FW_VERSION).tar.bz2
513 rm -rf $(PKG_BUILD_DIR)/include/linux/ssb
514 rm -f $(PKG_BUILD_DIR)/include/net/ieee80211.h
515 rm $(PKG_BUILD_DIR)/include/linux/eeprom_93cx6.h
516 endef
517
518 ifneq ($(CONFIG_PACKAGE_kmod-mac80211),)
519 define Build/Compile/kmod
520 rm -rf $(PKG_BUILD_DIR)/modules
521 $(MAKE) -C "$(PKG_BUILD_DIR)" $(MAKE_OPTS) all
522 endef
523 endif
524
525 define Build/Compile
526 $(call Build/Compile/kmod)
527 endef
528
529 define Build/InstallDev
530 mkdir -p $(1)/usr/include/mac80211 $(1)/usr/include/net/mac80211
531 $(CP) $(PKG_BUILD_DIR)/net/mac80211/*.h $(PKG_BUILD_DIR)/include/* $(1)/usr/include/mac80211/
532 $(CP) $(PKG_BUILD_DIR)/net/mac80211/rate.h $(1)/usr/include/net/mac80211/
533 endef
534
535 define KernelPackage/mac80211/install
536 $(INSTALL_DIR) $(1)/lib/wifi
537 $(INSTALL_DATA) ./files/lib/wifi/mac80211.sh $(1)/lib/wifi
538 endef
539
540 define KernelPackage/p54-pci/install
541 $(INSTALL_DIR) $(1)/lib/firmware
542 $(INSTALL_DATA) $(DL_DIR)/$(P54PCIFW) $(1)/lib/firmware/isl3886pci
543 endef
544
545 define KernelPackage/p54-usb/install
546 $(INSTALL_DIR) $(1)/lib/firmware
547 $(INSTALL_DATA) $(DL_DIR)/$(P54USBFW) $(1)/lib/firmware/isl3886usb
548 endef
549
550 define KernelPackage/rt61-pci/install
551 $(INSTALL_DIR) $(1)/lib/firmware
552 $(INSTALL_DATA) $(PKG_BUILD_DIR)/rt2?61*.bin $(1)/lib/firmware/
553 endef
554
555 define KernelPackage/rt73-usb/install
556 $(INSTALL_DIR) $(1)/lib/firmware
557 $(INSTALL_DATA) $(PKG_BUILD_DIR)/rt73.bin $(1)/lib/firmware/
558 endef
559
560 define KernelPackage/rt2800-pci/install
561 $(INSTALL_DIR) $(1)/lib/firmware
562 $(INSTALL_DATA) $(PKG_BUILD_DIR)/rt2860.bin $(1)/lib/firmware/
563 endef
564
565 define KernelPackage/rt2800-usb/install
566 $(INSTALL_DIR) $(1)/lib/firmware
567 $(INSTALL_DATA) $(PKG_BUILD_DIR)/rt2870.bin $(1)/lib/firmware/
568 endef
569
570 define KernelPackage/zd1211rw/install
571 $(INSTALL_DIR) $(1)/lib/firmware/zd1211
572 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(ZD1211FW_NAME)/zd1211* $(1)/lib/firmware/zd1211
573 endef
574
575 define Build/b43-common
576 tar xjf "$(DL_DIR)/$(PKG_B43_FWCUTTER_SOURCE)" -C "$(PKG_BUILD_DIR)"
577 $(MAKE) -C "$(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_OBJECT)" \
578 CFLAGS="-I$(STAGING_DIR_HOST)/include -include endian.h"
579 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_OBJECT)/b43-fwcutter $(STAGING_DIR_HOST)/bin/
580 ifneq ($(CONFIG_B43_OPENFIRMWARE),)
581 $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
582 $(MAKE) -C "$(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_SUBDIR)/assembler/"
583 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_SUBDIR)/assembler/b43-asm $(STAGING_DIR_HOST)/bin/
584 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_SUBDIR)/assembler/b43-asm.bin $(STAGING_DIR_HOST)/bin/
585 endif
586 $(INSTALL_BIN) ./files/host_bin/b43-fwsquash.py $(STAGING_DIR_HOST)/bin/
587 endef
588
589 define KernelPackage/b43/install
590 rm -rf $(1)/lib/firmware/
591 $(call Build/b43-common)
592 ifneq ($(CONFIG_B43_OPENFIRMWARE),)
593 tar xzf "$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C "$(PKG_BUILD_DIR)"
594 else
595 tar xjf "$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C "$(PKG_BUILD_DIR)"
596 endif
597 $(INSTALL_DIR) $(1)/lib/firmware/
598 ifneq ($(CONFIG_B43_OPENFIRMWARE),)
599 $(MAKE) -C "$(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/"
600 $(INSTALL_DIR) $(1)/lib/firmware/b43-open/
601 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/ucode5.fw $(1)/lib/firmware/b43-open/ucode5.fw
602 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/b0g0bsinitvals5.fw $(1)/lib/firmware/b43-open/b0g0bsinitvals5.fw
603 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/b0g0initvals5.fw $(1)/lib/firmware/b43-open/b0g0initvals5.fw
604 else
605 b43-fwcutter --unsupported -w $(1)/lib/firmware/ $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)
606 endif
607 ifneq ($(CONFIG_B43_FW_SQUASH),)
608 b43-fwsquash.py "$(CONFIG_B43_FW_SQUASH_PHYTYPES)" "$(CONFIG_B43_FW_SQUASH_COREREVS)" "$(1)/lib/firmware/b43"
609 endif
610 endef
611
612 define KernelPackage/b43legacy/install
613 $(call Build/b43-common)
614 $(INSTALL_DIR) $(1)/lib/firmware/
615
616 b43-fwcutter --unsupported -w $(1)/lib/firmware/ $(DL_DIR)/$(PKG_B43_FWV3_SOURCE)
617 endef
618
619 $(eval $(call KernelPackage,ath5k))
620 $(eval $(call KernelPackage,mac80211))
621 $(eval $(call KernelPackage,p54-common))
622 $(eval $(call KernelPackage,p54-pci))
623 $(eval $(call KernelPackage,p54-usb))
624 $(eval $(call KernelPackage,rt2x00-lib))
625 $(eval $(call KernelPackage,rt2x00-pci))
626 $(eval $(call KernelPackage,rt2x00-usb))
627 $(eval $(call KernelPackage,rt2400-pci))
628 $(eval $(call KernelPackage,rt2500-pci))
629 $(eval $(call KernelPackage,rt2500-usb))
630 $(eval $(call KernelPackage,rt61-pci))
631 $(eval $(call KernelPackage,rt73-usb))
632 $(eval $(call KernelPackage,rt2800-pci))
633 $(eval $(call KernelPackage,rt2800-usb))
634 $(eval $(call KernelPackage,rtl8180))
635 $(eval $(call KernelPackage,rtl8187))
636 $(eval $(call KernelPackage,zd1211rw))
637 $(eval $(call KernelPackage,mac80211-hwsim))
638 $(eval $(call KernelPackage,ath9k))
639 $(eval $(call KernelPackage,ath))
640 $(eval $(call KernelPackage,b43))
641 $(eval $(call KernelPackage,b43legacy))
This page took 0.073177 seconds and 5 git commands to generate.