a7cc5424114c760aafcfdf279185c4e1662f4791
[openpandora.oe.git] / recipes / pandora-system / rtl8192u-module.bb
1 DESCRIPTION = "Kernel driver for the Realtek RTL8712/8188/8191/8192SU USB chipsets"
2 LICENSE = "GPLv2"
3
4 SRC_URI = " \
5         http://notaz.gp2x.de/downloads/misc/RTL8192CU_linux_v3.1.2590.20110922.zip \
6 "
7
8 PV = "3.1.2590"
9
10 S = "${WORKDIR}/rtl8192_8188CU_linux_v3.1.2590.20110922"
11
12 inherit module
13
14 EXTRA_OEMAKE = " \
15         'KSRC=${STAGING_KERNEL_DIR}' \
16         "
17
18 do_unpackpost() {
19         cd ${WORKDIR}
20         tar xvf RTL8192CU_8188CUS_8188CE-VAU_linux_v3.1.2590.20110922/driver/rtl8192_8188CU_linux_v3.1.2590.20110922.tar.gz
21 }
22
23 addtask unpackpost after do_unpack before do_patch
24
25 do_install() {
26         install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/updates/kernel/drivers/net/wireless
27         install -m 0644 ${S}/8192cu.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/updates/kernel/drivers/net/wireless/
28 }
29
30 FILES_${PN} += "/lib/modules/${KERNEL_VERSION}/updates/kernel/drivers/net/wireless/*.ko.*"
31
32 SRC_URI[md5sum] = "2106588b000653d2168a9ec01889dd69"