packagegroup-opendreambox-wlan: add rtl88x2bu wlan driver to image
[opendreambox.git] / meta-opendreambox / recipes-connectivity / wlan-rt73 / wlan-rt73.bb
1 SUMMARY = "Driver for Ralink rt73 USB 802.11b/g WiFi sticks"
2 HOMEPAGE = "http://www.ralinktech.com.tw"
3 SECTION = "kernel/modules"
4 LICENSE = "GPLv2+"
5 LIC_FILES_CHKSUM = "file://rtmp_main.c;endline=25;md5=10585d272398025e832fa0793385f9a1"
6
7 inherit module
8
9 SRC_URI = "http://www.ralinktech.com.tw/data/drivers/2008_0506_RT73_Linux_STA_Drv1.1.0.1.tar.bz2 \
10            file://make.patch \
11            file://changeiface.patch"
12
13 SRC_URI[md5sum] = "3e08bf734b740e83391fda571c8e9ecd"
14 SRC_URI[sha256sum] = "932b9c127992fd7985e4054d91120164e54f7132fa457b06fdcd30307e5b70f9"
15
16 RDEPEND = "wireless-tools"
17
18 FILES_${PN} += " /lib/firmware/rt73.bin"
19
20 S = "${WORKDIR}/2008_0506_RT73_Linux_STA_Drv1.1.0.1/Module/"
21 EXTRA_OEMAKE = "KERNDIR=${STAGING_KERNEL_DIR}"
22
23 do_compile() {
24         unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CC LD CPP
25         oe_runmake 'MODPATH={D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net' \
26                    'KERNEL_SOURCE=${STAGING_KERNEL_DIR}' \
27                    'LINUX_SRC=${STAGING_KERNEL_DIR}' \
28                    'KDIR=${STAGING_KERNEL_DIR}' \
29                    'KERNDIR=${STAGING_KERNEL_DIR}' \
30                    'KERNEL_VERSION=${KERNEL_VERSION}' \
31                    'CC=${KERNEL_CC}' \
32                    'LD=${KERNEL_LD}'
33 }
34
35 do_install() {
36         install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net
37         install -m 0644 rt73${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net/
38         install -d ${D}/lib/firmware
39         install -m 0644 rt73.bin ${D}/lib/firmware/
40 }
41