meta-*: use SUMMARY instead of DESCRIPTION where appropriate (max. 80 chars)
[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 PR = "r6"
10
11 SRC_URI = "http://www.ralinktech.com.tw/data/drivers/2008_0506_RT73_Linux_STA_Drv1.1.0.1.tar.bz2 \
12            file://make.patch \
13            file://changeiface.patch"
14
15 SRC_URI[md5sum] = "3e08bf734b740e83391fda571c8e9ecd"
16 SRC_URI[sha256sum] = "932b9c127992fd7985e4054d91120164e54f7132fa457b06fdcd30307e5b70f9"
17
18 RDEPEND = "wireless-tools"
19
20 FILES_${PN} += " /lib/firmware/rt73.bin"
21
22 S = "${WORKDIR}/2008_0506_RT73_Linux_STA_Drv1.1.0.1/Module/"
23 EXTRA_OEMAKE = "KERNDIR=${STAGING_KERNEL_DIR}"
24
25 do_compile() {
26         unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CC LD CPP
27         oe_runmake 'MODPATH={D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net' \
28                    'KERNEL_SOURCE=${STAGING_KERNEL_DIR}' \
29                    'LINUX_SRC=${STAGING_KERNEL_DIR}' \
30                    'KDIR=${STAGING_KERNEL_DIR}' \
31                    'KERNDIR=${STAGING_KERNEL_DIR}' \
32                    'KERNEL_VERSION=${KERNEL_VERSION}' \
33                    'CC=${KERNEL_CC}' \
34                    'LD=${KERNEL_LD}'
35 }
36
37 do_install() {
38         install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net
39         install -m 0644 rt73${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net/
40         install -d ${D}/lib/firmware
41         install -m 0644 rt73.bin ${D}/lib/firmware/
42 }
43