rtl8712-module: add a driver for popular rtl wifi USB adapers
authorGrazvydas Ignotas <notasas@gmail.com>
Thu, 6 Oct 2011 20:26:21 +0000 (23:26 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Thu, 6 Oct 2011 20:26:21 +0000 (23:26 +0300)
According to manufacturer's description, this should support
Realtek RTL8712/8188/8191/8192SU. Firmware is compiled into the module.

recipes/pandora-system/rtl8712-module.bb [new file with mode: 0644]

diff --git a/recipes/pandora-system/rtl8712-module.bb b/recipes/pandora-system/rtl8712-module.bb
new file mode 100644 (file)
index 0000000..1fab7cf
--- /dev/null
@@ -0,0 +1,32 @@
+DESCRIPTION = "Kernel driver for the Realtek RTL8712/8188/8191/8192SU USB chipsets"
+LICENSE = "GPLv2"
+
+SRC_URI = " \
+       http://notaz.gp2x.de/downloads/misc/RTL8192SU_usb_linux_v2.6.6.0.20110401.zip \
+"
+
+PV = "2.6.6.0"
+
+S = "${WORKDIR}/rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20110401"
+
+inherit module
+
+EXTRA_OEMAKE = " \
+       'KSRC=${STAGING_KERNEL_DIR}' \
+       "
+
+do_unpackpost() {
+       cd ${WORKDIR}
+       tar xvf rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20110401/driver/rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20110401.tar.gz
+}
+
+addtask unpackpost after do_unpack before do_patch
+
+do_install() {
+       install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/updates/kernel/drivers/net/wireless
+       install -m 0644 ${S}/8712u.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/updates/kernel/drivers/net/wireless/
+}
+
+FILES_${PN} += "/lib/modules/${KERNEL_VERSION}/updates/kernel/drivers/net/wireless/*.ko.*"
+
+SRC_URI[md5sum] = "9e3215f535ed580e3380241c73534cea"