[mas80211] Do not build some modules as they are not needed
[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:=2
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/config
47 source "$(SOURCE)/Config.in"
48 endef
49
50 define KernelPackage/mac80211/description
51 Linux 802.11 Wireless Networking Stack
52 endef
53
54 # Prism54 drivers
55 P54PCIFW:=2.13.12.0.arm
56 P54USBFW:=2.13.24.0.lm86.arm
57
58 define Download/p54usb
59 FILE:=$(P54USBFW)
60 URL:=http://daemonizer.de/prism54/prism54-fw/fw-usb
61 MD5SUM:=2efd50eab43c0d0376765576a54b7a30
62 endef
63 $(eval $(call Download,p54usb))
64
65 define Download/p54pci
66 FILE:=$(P54PCIFW)
67 URL:=http://daemonizer.de/prism54/prism54-fw/fw-softmac
68 MD5SUM:=ff7536af2092b1c4b21315bd103ef4c4
69 endef
70 $(eval $(call Download,p54pci))
71
72 define KernelPackage/p54/Default
73 $(call KernelPackage/mac80211/Default)
74 TITLE:=Prism54 Drivers
75 endef
76
77 define KernelPackage/p54/description
78 Kernel module for Prism54 chipsets (mac80211)
79 endef
80
81 define KernelPackage/p54-common
82 $(call KernelPackage/p54/Default)
83 DEPENDS+= @PCI_SUPPORT||@USB_SUPPORT +kmod-mac80211
84 TITLE+= (COMMON)
85 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/p54/p54common.$(LINUX_KMOD_SUFFIX)
86 AUTOLOAD:=$(call AutoLoad,30,p54common)
87 endef
88
89 define KernelPackage/p54-pci
90 $(call KernelPackage/p54/Default)
91 TITLE+= (PCI)
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)
95 endef
96
97 define KernelPackage/p54-usb
98 $(call KernelPackage/p54/Default)
99 TITLE+= (USB)
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)
103 endef
104
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
110
111 define Download/rt61
112 FILE:=$(RT61FW)
113 URL:=http://www.ralinktech.com.tw/data/
114 MD5SUM:=d4c690c93b470bc9a681297c2adc6281
115 endef
116 $(eval $(call Download,rt61))
117
118 define Download/rt71w
119 FILE:=$(RT71FW)
120 URL:=http://www.ralinktech.com.tw/data/
121 MD5SUM:=1e7a5dc574e0268574fcda3fd5cf52f7
122 endef
123 $(eval $(call Download,rt71w))
124
125 define Download/rt2860
126 FILE:=$(RT2860FW)
127 URL:=http://www.ralinktech.com.tw/data/drivers
128 MD5SUM:=440a81756a52c53528f16faa41c40124
129 endef
130 $(eval $(call Download,rt2860))
131
132 define Download/rt2870
133 FILE:=$(RT2870FW)
134 URL:=http://www.ralinktech.com.tw/data/drivers
135 MD5SUM:=a7aae1d8cfd68e4d86a73000df0b6584
136 endef
137 $(eval $(call Download,rt2870))
138
139 define KernelPackage/rt2x00/Default
140 $(call KernelPackage/mac80211/Default)
141 TITLE:=Ralink Drivers for RT2x00 cards
142 endef
143
144 define KernelPackage/rt2x00-lib
145 $(call KernelPackage/rt2x00/Default)
146 DEPENDS+= @PCI_SUPPORT||@USB_SUPPORT +kmod-mac80211 +kmod-crc-itu-t
147 TITLE+= (LIB)
148 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2x00lib.$(LINUX_KMOD_SUFFIX)
149 AUTOLOAD:=$(call AutoLoad,25,blkcipher ecb arc4 rt2x00lib)
150 endef
151
152 define KernelPackage/rt2x00-pci
153 $(call KernelPackage/rt2x00/Default)
154 DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-lib +kmod-eeprom-93cx6
155 TITLE+= (PCI)
156 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2x00pci.$(LINUX_KMOD_SUFFIX)
157 AUTOLOAD:=$(call AutoLoad,26,rt2x00pci)
158 endef
159
160 define KernelPackage/rt2x00-usb
161 $(call KernelPackage/rt2x00/Default)
162 DEPENDS+= @USB_SUPPORT +kmod-rt2x00-lib +kmod-usb-core
163 TITLE+= (USB)
164 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2x00usb.$(LINUX_KMOD_SUFFIX)
165 AUTOLOAD:=$(call AutoLoad,26,rt2x00usb)
166 endef
167
168 define KernelPackage/rt2400-pci
169 $(call KernelPackage/rt2x00/Default)
170 DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci
171 TITLE+= (RT2400 PCI)
172 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2400pci.$(LINUX_KMOD_SUFFIX)
173 AUTOLOAD:=$(call AutoLoad,27,rt2400pci)
174 endef
175
176 define KernelPackage/rt2500-pci
177 $(call KernelPackage/rt2x00/Default)
178 DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci
179 TITLE+= (RT2500 PCI)
180 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2500pci.$(LINUX_KMOD_SUFFIX)
181 AUTOLOAD:=$(call AutoLoad,27,rt2500pci)
182 endef
183
184 define KernelPackage/rt2500-usb
185 $(call KernelPackage/rt2x00/Default)
186 DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb
187 TITLE+= (RT2500 USB)
188 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2500usb.$(LINUX_KMOD_SUFFIX)
189 AUTOLOAD:=$(call AutoLoad,27,rt2500usb)
190 endef
191
192 define KernelPackage/rt61-pci
193 $(call KernelPackage/rt2x00/Default)
194 DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci
195 TITLE+= (RT2x61 PCI)
196 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt61pci.$(LINUX_KMOD_SUFFIX)
197 AUTOLOAD:=$(call AutoLoad,27,rt61pci)
198 endef
199
200 define KernelPackage/rt73-usb
201 $(call KernelPackage/rt2x00/Default)
202 DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb
203 TITLE+= (RT73 USB)
204 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt73usb.$(LINUX_KMOD_SUFFIX)
205 AUTOLOAD:=$(call AutoLoad,27,rt73usb)
206 endef
207
208 define KernelPackage/rt2800-pci
209 $(call KernelPackage/rt2x00/Default)
210 DEPENDS+= +kmod-rt2x00-pci +kmod-crc-ccitt
211 TITLE+= (RT2860 PCI)
212 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2800pci.$(LINUX_KMOD_SUFFIX)
213 AUTOLOAD:=$(call AutoLoad,27,rt2800pci)
214 endef
215
216 define KernelPackage/rt2800-usb
217 $(call KernelPackage/rt2x00/Default)
218 DEPENDS+= +kmod-rt2x00-usb +kmod-crc-ccitt
219 TITLE+= (RT2870 USB)
220 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2800usb.$(LINUX_KMOD_SUFFIX)
221 AUTOLOAD:=$(call AutoLoad,27,rt2800usb)
222 endef
223
224 define KernelPackage/rtl818x/Default
225 $(call KernelPackage/mac80211/Default)
226 TITLE:=Realtek Drivers for RTL818x devices
227 URL:=http://wireless.kernel.org/en/users/Drivers/rtl8187
228 DEPENDS+= +kmod-eeprom-93cx6 +kmod-mac80211
229 endef
230
231 define KernelPackage/rtl8180
232 $(call KernelPackage/rtl818x/Default)
233 DEPENDS+= @PCI_SUPPORT
234 TITLE+= (RTL8180 PCI)
235 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rtl818x/rtl8180.$(LINUX_KMOD_SUFFIX)
236 AUTOLOAD:=$(call AutoLoad,27,rtl8180)
237 endef
238
239 define KernelPackage/rtl8187
240 $(call KernelPackage/rtl818x/Default)
241 DEPENDS+= @USB_SUPPORT
242 TITLE+= (RTL8187 USB)
243 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rtl818x/rtl8187.$(LINUX_KMOD_SUFFIX)
244 AUTOLOAD:=$(call AutoLoad,27,rtl8187)
245 endef
246
247 ZD1211FW_NAME:=zd1211-firmware
248 ZD1211FW_VERSION:=1.4
249 define Download/zd1211rw
250 FILE:=$(ZD1211FW_NAME)-$(ZD1211FW_VERSION).tar.bz2
251 URL:=@SF/zd1211/
252 MD5SUM:=19f28781d76569af8551c9d11294c870
253 endef
254 $(eval $(call Download,zd1211rw))
255
256 define KernelPackage/zd1211rw
257 $(call KernelPackage/mac80211/Default)
258 TITLE:=Zydas ZD1211 support
259 DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-mac80211
260 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/zd1211rw/zd1211rw.$(LINUX_KMOD_SUFFIX)
261 AUTOLOAD:=$(call AutoLoad,60,zd1211rw)
262 endef
263
264
265 define KernelPackage/ath
266 $(call KernelPackage/mac80211/Default)
267 TITLE:=Atheros common driver part
268 DEPENDS+= @PCI_SUPPORT +kmod-mac80211
269 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath.$(LINUX_KMOD_SUFFIX)
270 AUTOLOAD:=$(call AutoLoad,26,ath)
271 endef
272
273 define KernelPackage/ath/description
274 This module contains some common parts needed by Atheros Wireless drivers.
275 endef
276
277 define KernelPackage/ath5k
278 $(call KernelPackage/mac80211/Default)
279 TITLE:=Atheros 5xxx wireless cards support
280 URL:=http://linuxwireless.org/en/users/Drivers/ath5k
281 DEPENDS+= +kmod-ath
282 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath5k/ath5k.$(LINUX_KMOD_SUFFIX)
283 AUTOLOAD:=$(call AutoLoad,27,ath5k)
284 endef
285
286 define KernelPackage/ath5k/description
287 This module adds support for wireless adapters based on
288 Atheros 5xxx chipset.
289 endef
290
291 define KernelPackage/ath9k
292 $(call KernelPackage/mac80211/Default)
293 TITLE:=Atheros 802.11n wireless cards support
294 URL:=http://linuxwireless.org/en/users/Drivers/ath9k
295 DEPENDS+= +kmod-ath
296 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k.$(LINUX_KMOD_SUFFIX)
297 AUTOLOAD:=$(call AutoLoad,27,ath9k)
298 endef
299
300 define KernelPackage/ath9k/description
301 This module adds support for wireless adapters based on
302 Atheros IEEE 802.11n AR5008 and AR9001 family of chipsets.
303 endef
304
305 define KernelPackage/ath9k/config
306 source "$(SOURCE)/Config.in.ath9k"
307 endef
308
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)
315 endef
316
317 #Broadcom firmware
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
325 else
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
332 endif
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
340 endif
341
342
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
348
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/
357 else
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)/
366 endif
367
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)
375 endef
376 $(eval $(call Download,b43-common))
377
378 define Download/b43
379 FILE:=$(PKG_B43_FWV4_SOURCE)
380 URL:=$(PKG_B43_FWV4_SOURCE_URL)
381 MD5SUM:=$(PKG_B43_FWV4_MD5SUM)
382 endef
383 $(eval $(call Download,b43))
384
385 define Download/b43legacy
386 FILE:=$(PKG_B43_FWV3_SOURCE)
387 URL:=$(PKG_B43_FWV3_SOURCE_URL)
388 MD5SUM:=$(PKG_B43_FWV3_MD5SUM)
389 endef
390 $(eval $(call Download,b43legacy))
391
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
397 endef
398
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)
404 endef
405
406 define KernelPackage/b43/config
407 source "$(SOURCE)/Config.in.b43"
408 endef
409
410 define KernelPackage/b43/description
411 Kernel module for Broadcom 43xx wireless support (mac80211 stack) new
412 endef
413
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)
419 endef
420
421 define KernelPackage/b43legacy/description
422 Kernel module for Broadcom 43xx-legacy wireless support (mac80211 stack) new
423 endef
424
425 BUILDFLAGS:= \
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_PACKAGE_MAC80211_DEBUGFS),-DCONFIG_MAC80211_DEBUGFS) \
434 $(if $(CONFIG_PACKAGE_ATH9K_DEBUG),-DCONFIG_ATH9K_DEBUG) \
435 -D__CONFIG_MAC80211_RC_DEFAULT=minstrel \
436
437 MAKE_OPTS:= \
438 CROSS_COMPILE="$(KERNEL_CROSS)" \
439 ARCH="$(LINUX_KARCH)" \
440 EXTRA_CFLAGS="$(BUILDFLAGS)" \
441 $(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=$(if $(CONFIG_PACKAGE_MAC80211_DEBUGFS),y) \
446 CONFIG_B43_PCMCIA=n CONFIG_B43_PIO=n \
447 CONFIG_B43_PCI_AUTOSELECT=$(if $(CONFIG_PCI),y) \
448 CONFIG_B43_PCICORE_AUTOSELECT=$(if $(CONFIG_PCI),y) \
449 CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=$(if $(CONFIG_PCI),y) \
450 CONFIG_SSB_DRIVER_PCICORE=$(if $(CONFIG_PCI),y) \
451 CONFIG_SSB_PCIHOST_POSSIBLE=$(if $(CONFIG_PCI),y) \
452 CONFIG_SSB_PCIHOST=$(if $(CONFIG_PCI),y) \
453 CONFIG_B43LEGACY_LEDS=$(CONFIG_LEDS_TRIGGERS) \
454 CONFIG_B43_LEDS=$(CONFIG_LEDS_TRIGGERS) \
455 CONFIG_B43_HWRNG=$(if $(CONFIG_HW_RANDOM),y) \
456 CONFIG_B43LEGACY_HWRNG=$(if $(CONFIG_HW_RANDOM),y) \
457 CONFIG_B43=$(if $(CONFIG_PACKAGE_kmod-b43),m) \
458 CONFIG_B43LEGACY=$(if $(CONFIG_PACKAGE_kmod-b43legacy),m) \
459 CONFIG_ATH_COMMON=$(if $(CONFIG_PACKAGE_kmod-ath),m) \
460 CONFIG_ATH5K=$(if $(CONFIG_PACKAGE_kmod-ath5k),m) \
461 CONFIG_ATH9K=$(if $(CONFIG_PACKAGE_kmod-ath9k),m) \
462 CONFIG_ATH9K_DEBUG=$(if $(CONFIG_PACKAGE_ATH9K_DEBUG),y) \
463 CONFIG_ZD1211RW=$(if $(CONFIG_PACKAGE_kmod-zd1211rw),m) \
464 CONFIG_P54_COMMON=$(if $(CONFIG_PACKAGE_kmod-p54-common),m) \
465 CONFIG_P54_PCI=$(if $(CONFIG_PACKAGE_kmod-p54-pci),m) \
466 CONFIG_P54_USB=$(if $(CONFIG_PACKAGE_kmod-p54-usb),m) \
467 CONFIG_P54_SPI= \
468 CONFIG_RT2X00=$(if $(CONFIG_PACKAGE_kmod-rt2x00-lib),m) \
469 CONFIG_RT2X00_LIB_PCI=$(if $(CONFIG_PACKAGE_kmod-rt2x00-pci),m) \
470 CONFIG_RT2X00_LIB_USB=$(if $(CONFIG_PACKAGE_kmod-rt2x00-usb),m) \
471 CONFIG_RT2400PCI=$(if $(CONFIG_PACKAGE_kmod-rt2400-pci),m) \
472 CONFIG_RT2500PCI=$(if $(CONFIG_PACKAGE_kmod-rt2500-pci),m) \
473 CONFIG_RT2500USB=$(if $(CONFIG_PACKAGE_kmod-rt2500-usb),m) \
474 CONFIG_RT61PCI=$(if $(CONFIG_PACKAGE_kmod-rt61-pci),m) \
475 CONFIG_RT73USB=$(if $(CONFIG_PACKAGE_kmod-rt73-usb),m) \
476 CONFIG_RT2800PCI=$(if $(CONFIG_PACKAGE_kmod-rt2800-pci),m) \
477 CONFIG_RT2800USB=$(if $(CONFIG_PACKAGE_kmod-rt2800-usb),m) \
478 CONFIG_RTL8180=$(if $(CONFIG_PACKAGE_kmod-rtl8180),m) \
479 CONFIG_RTL8187=$(if $(CONFIG_PACKAGE_kmod-rtl8187),m) \
480 CONFIG_MAC80211_HWSIM=$(if $(CONFIG_PACKAGE_kmod-mac80211-hwsim),m) \
481 CONFIG_PCMCIA= \
482 CONFIG_LIBIPW= \
483 CONFIG_LIBERTAS= \
484 CONFIG_LIBERTAS_CS= \
485 CONFIG_LIBERTAS_SDIO= \
486 CONFIG_LIBERTAS_THINFIRM= \
487 CONFIG_IPW2100= \
488 CONFIG_IPW2200= \
489 CONFIG_NL80211=y \
490 CONFIG_LIB80211= \
491 CONFIG_LIB80211_CRYPT_WEP= \
492 CONFIG_LIB80211_CRYPT_CCMP= \
493 CONFIG_LIB80211_CRYPT_TKIP= \
494 CONFIG_IWLWIFI= \
495 CONFIG_IWLAGN= \
496 CONFIG_MWL8K= \
497 CONFIG_ATMEL= \
498 CONFIG_PCMCIA_ATMEL= \
499 CONFIG_ADM8211= \
500 CONFIG_USB_NET_RNDIS_HOST= \
501 CONFIG_USB_NET_RNDIS_WLAN= \
502 CONFIG_USB_NET_CDCETHER= \
503 CONFIG_USB_USBNET= \
504 CONFIG_AT76C50X_USB= \
505 CONFIG_WL12XX= \
506 CONFIG_EEPROM_93CX6= \
507 CONFIG_AR9170_USB= \
508 CONFIG_IWM= \
509 MADWIFI= \
510 OLD_IWL= \
511 KLIB_BUILD="$(LINUX_DIR)" \
512 MODPROBE=: \
513 KLIB=$(TARGET_MODULES_DIR) \
514 KERNEL_SUBLEVEL=$(lastword $(subst ., ,$(KERNEL_PATCHVER)))
515
516 define Build/Prepare
517 rm -rf $(PKG_BUILD_DIR)
518 mkdir -p $(PKG_BUILD_DIR)
519 $(PKG_UNPACK)
520 $(Build/Patch)
521 unzip -jod $(PKG_BUILD_DIR) $(DL_DIR)/$(RT61FW)
522 unzip -jod $(PKG_BUILD_DIR) $(DL_DIR)/$(RT71FW)
523 -unzip -jod $(PKG_BUILD_DIR) $(DL_DIR)/$(RT2860FW)
524 -unzip -jod $(PKG_BUILD_DIR) $(DL_DIR)/$(RT2870FW)
525 $(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(ZD1211FW_NAME)-$(ZD1211FW_VERSION).tar.bz2
526 rm -rf $(PKG_BUILD_DIR)/include/linux/ssb
527 rm -f $(PKG_BUILD_DIR)/include/net/ieee80211.h
528 rm $(PKG_BUILD_DIR)/include/linux/eeprom_93cx6.h
529 endef
530
531 ifneq ($(CONFIG_PACKAGE_kmod-mac80211),)
532 define Build/Compile/kmod
533 rm -rf $(PKG_BUILD_DIR)/modules
534 $(MAKE) -C "$(PKG_BUILD_DIR)" $(MAKE_OPTS) all
535 endef
536 endif
537
538 define Build/Compile
539 $(call Build/Compile/kmod)
540 endef
541
542 define Build/InstallDev
543 mkdir -p $(1)/usr/include/mac80211 $(1)/usr/include/net/mac80211
544 $(CP) $(PKG_BUILD_DIR)/net/mac80211/*.h $(PKG_BUILD_DIR)/include/* $(1)/usr/include/mac80211/
545 $(CP) $(PKG_BUILD_DIR)/net/mac80211/rate.h $(1)/usr/include/net/mac80211/
546 endef
547
548 define KernelPackage/mac80211/install
549 $(INSTALL_DIR) $(1)/lib/wifi
550 $(INSTALL_DATA) ./files/lib/wifi/mac80211.sh $(1)/lib/wifi
551 endef
552
553 define KernelPackage/p54-pci/install
554 $(INSTALL_DIR) $(1)/lib/firmware
555 $(INSTALL_DATA) $(DL_DIR)/$(P54PCIFW) $(1)/lib/firmware/isl3886pci
556 endef
557
558 define KernelPackage/p54-usb/install
559 $(INSTALL_DIR) $(1)/lib/firmware
560 $(INSTALL_DATA) $(DL_DIR)/$(P54USBFW) $(1)/lib/firmware/isl3886usb
561 endef
562
563 define KernelPackage/rt61-pci/install
564 $(INSTALL_DIR) $(1)/lib/firmware
565 $(INSTALL_DATA) $(PKG_BUILD_DIR)/rt2?61*.bin $(1)/lib/firmware/
566 endef
567
568 define KernelPackage/rt73-usb/install
569 $(INSTALL_DIR) $(1)/lib/firmware
570 $(INSTALL_DATA) $(PKG_BUILD_DIR)/rt73.bin $(1)/lib/firmware/
571 endef
572
573 define KernelPackage/rt2800-pci/install
574 $(INSTALL_DIR) $(1)/lib/firmware
575 $(INSTALL_DATA) $(PKG_BUILD_DIR)/rt2860.bin $(1)/lib/firmware/
576 endef
577
578 define KernelPackage/rt2800-usb/install
579 $(INSTALL_DIR) $(1)/lib/firmware
580 $(INSTALL_DATA) $(PKG_BUILD_DIR)/rt2870.bin $(1)/lib/firmware/
581 endef
582
583 define KernelPackage/zd1211rw/install
584 $(INSTALL_DIR) $(1)/lib/firmware/zd1211
585 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(ZD1211FW_NAME)/zd1211* $(1)/lib/firmware/zd1211
586 endef
587
588 define Build/b43-common
589 tar xjf "$(DL_DIR)/$(PKG_B43_FWCUTTER_SOURCE)" -C "$(PKG_BUILD_DIR)"
590 $(MAKE) -C "$(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_OBJECT)" \
591 CFLAGS="-I$(STAGING_DIR_HOST)/include -include endian.h"
592 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_OBJECT)/b43-fwcutter $(STAGING_DIR_HOST)/bin/
593 ifneq ($(CONFIG_B43_OPENFIRMWARE),)
594 $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
595 $(MAKE) -C "$(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_SUBDIR)/assembler/"
596 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_SUBDIR)/assembler/b43-asm $(STAGING_DIR_HOST)/bin/
597 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_SUBDIR)/assembler/b43-asm.bin $(STAGING_DIR_HOST)/bin/
598 endif
599 $(INSTALL_BIN) ./files/host_bin/b43-fwsquash.py $(STAGING_DIR_HOST)/bin/
600 endef
601
602 define KernelPackage/b43/install
603 rm -rf $(1)/lib/firmware/
604 $(call Build/b43-common)
605 ifneq ($(CONFIG_B43_OPENFIRMWARE),)
606 tar xzf "$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C "$(PKG_BUILD_DIR)"
607 else
608 tar xjf "$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C "$(PKG_BUILD_DIR)"
609 endif
610 $(INSTALL_DIR) $(1)/lib/firmware/
611 ifneq ($(CONFIG_B43_OPENFIRMWARE),)
612 $(MAKE) -C "$(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/"
613 $(INSTALL_DIR) $(1)/lib/firmware/b43-open/
614 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/ucode5.fw $(1)/lib/firmware/b43-open/ucode5.fw
615 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/b0g0bsinitvals5.fw $(1)/lib/firmware/b43-open/b0g0bsinitvals5.fw
616 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/b0g0initvals5.fw $(1)/lib/firmware/b43-open/b0g0initvals5.fw
617 else
618 b43-fwcutter --unsupported -w $(1)/lib/firmware/ $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)
619 endif
620 ifneq ($(CONFIG_B43_FW_SQUASH),)
621 b43-fwsquash.py "$(CONFIG_B43_FW_SQUASH_PHYTYPES)" "$(CONFIG_B43_FW_SQUASH_COREREVS)" "$(1)/lib/firmware/b43"
622 endif
623 endef
624
625 define KernelPackage/b43legacy/install
626 $(call Build/b43-common)
627 $(INSTALL_DIR) $(1)/lib/firmware/
628
629 b43-fwcutter --unsupported -w $(1)/lib/firmware/ $(DL_DIR)/$(PKG_B43_FWV3_SOURCE)
630 endef
631
632 $(eval $(call KernelPackage,ath5k))
633 $(eval $(call KernelPackage,mac80211))
634 $(eval $(call KernelPackage,p54-common))
635 $(eval $(call KernelPackage,p54-pci))
636 $(eval $(call KernelPackage,p54-usb))
637 $(eval $(call KernelPackage,rt2x00-lib))
638 $(eval $(call KernelPackage,rt2x00-pci))
639 $(eval $(call KernelPackage,rt2x00-usb))
640 $(eval $(call KernelPackage,rt2400-pci))
641 $(eval $(call KernelPackage,rt2500-pci))
642 $(eval $(call KernelPackage,rt2500-usb))
643 $(eval $(call KernelPackage,rt61-pci))
644 $(eval $(call KernelPackage,rt73-usb))
645 $(eval $(call KernelPackage,rt2800-pci))
646 $(eval $(call KernelPackage,rt2800-usb))
647 $(eval $(call KernelPackage,rtl8180))
648 $(eval $(call KernelPackage,rtl8187))
649 $(eval $(call KernelPackage,zd1211rw))
650 $(eval $(call KernelPackage,mac80211-hwsim))
651 $(eval $(call KernelPackage,ath9k))
652 $(eval $(call KernelPackage,ath))
653 $(eval $(call KernelPackage,b43))
654 $(eval $(call KernelPackage,b43legacy))
This page took 0.087165 seconds and 5 git commands to generate.