task-opendreambox-wlan.bb: add support for realtek 8192C based wlan sticks, move...
[opendreambox.git] / meta-opendreambox / recipes-connectivity / tasks / task-opendreambox-wlan.bb
1 SUMMARY = "OpenDreambox: WLAN support"
2 SECTION = "opendreambox/base"
3 LICENSE = "MIT"
4 LIC_FILES_CHKSUM = "file://${OPENDREAMBOX_BASE}/LICENSE;md5=0a5ec7423edaca24547634f416478834"
5 DEPENDS = " \
6   ${@base_contains('MACHINE_FEATURES', 'pci', 'madwifi-ng', '',d)} \
7   ${@base_version_less_or_equal('DREAMBOX_KERNEL_VERSION', '2.6.18', '${WLAN_USB_MODULES_LEGACY}', '', d)} \
8   r8192c \
9   virtual/kernel \
10 "
11 PR = "r15"
12
13 inherit task
14
15 PACKAGE_ARCH = "${MACHINE_ARCH}"
16
17 RDEPENDS_${PN} = " \
18   wireless-tools \
19   wpa-supplicant \
20 "
21
22 RRECOMMENDS_${PN} = " \
23   ${@base_contains('MACHINE_FEATURES', 'pci', '${WLAN_PCI_MODULES}', '', d)} \
24   ${@base_version_less_or_equal('DREAMBOX_KERNEL_VERSION', '2.6.18', '${WLAN_USB_MODULES_LEGACY}', '${WLAN_USB_MODULES_KERNEL}', d)} \
25   r8192c \
26 "
27
28 WLAN_USB_MODULES_KERNEL = " \
29   kernel-module-carl9170 \
30   kernel-module-r8712u \
31   kernel-module-rt2800usb \
32   kernel-module-rt73usb \
33   kernel-module-zd1211rw \
34 "
35
36 WLAN_USB_MODULES_LEGACY = " \
37   r8712u \
38   rt3070 \
39   wlan-rt73 \
40   zd1211b \
41 "
42
43 WLAN_PCI_MODULES = " \
44   madwifi-ng-modules \
45   madwifi-ng \
46 "