opendreambox 2.0
[opendreambox.git] / meta-opendreambox / recipes-connectivity / ralink / rt3070_2.5.0.3.bb
1 DESCRIPTION = "Driver for Ralink RT8070/3070/3370/5370/5372 USB 802.11abgn WiFi sticks"
2 SECTION = "kernel/modules"
3 LICENSE = "GPLv2+"
4 LIC_FILES_CHKSUM = "file://os/linux/rt_linux.c;endline=25;md5=21ed2a5918a3062a6c0323ef549f0803"
5
6 SRC_URI = " \
7         http://sources.dreamboxupdate.com/download/sources/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V${PV}_DPO.tar.bz2 \
8         file://makefile.patch \
9         file://config.patch \
10 "
11 SRC_URI[md5sum] = "8ea0d247ac5881de1cb4c113ebf65724"
12 SRC_URI[sha256sum] = "e732d6b114137aa0badf46281d25d442278639d798735317b0061d3ae573593e"
13
14 S = "${WORKDIR}/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V${PV}_DPO"
15
16 inherit module
17
18 EXTRA_OEMAKE = "LINUX_SRC=${STAGING_KERNEL_DIR}"
19
20 do_install() {
21         install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/drivers/net/wireless
22         install -m 0644 ${S}/*sta${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/drivers/net/wireless
23         install -d ${D}${sysconfdir}/Wireless/RT2870STA
24         install -m 0644 ${S}/RT2870STA.dat ${D}${sysconfdir}/Wireless/RT2870STA
25 }