Patchwork linux-firmware: Add Realtex rt8192* firmwares

login
register
mail settings
Submitter Michael Lippautz
Date June 30, 2011, 6:09 p.m.
Message ID <1309457351-6103-1-git-send-email-michael.lippautz@gmail.com>
Download mbox | patch
Permalink /patch/6759/
State Accepted
Commit 0da0c424bcbc1a0aab5e978c1e74b9542e74add5
Headers show

Comments

Michael Lippautz - June 30, 2011, 6:09 p.m.
This patch adds the firmware files for:
 * rt8192cu
 * rt8192ce
 * rt8192su

Signed-off-by: Michael Lippautz <michael.lippautz@gmail.com>
---
 .../linux-firmware/linux-firmware_git.bb           |   39 +++++++++++++++++++-
 1 files changed, 37 insertions(+), 2 deletions(-)
Richard Purdie - June 30, 2011, 10:48 p.m.
On Thu, 2011-06-30 at 20:09 +0200, Michael Lippautz wrote:
> This patch adds the firmware files for:
>  * rt8192cu
>  * rt8192ce
>  * rt8192su
> 
> Signed-off-by: Michael Lippautz <michael.lippautz@gmail.com>

Merged to master, thanks.

For reference, I changed the file modes to 0644 as per some other recent
audit changed we were making.

Cheers,

Richard

Patch

diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
index 3d822c5..bdeb264 100644
--- a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
+++ b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
@@ -2,6 +2,9 @@  DESCRIPTION = "Firmware files for use with Linux kernel"
 SECTION = "kernel"
 LICENSE = "Proprietary"
 LICENSE_${PN}-sd8686 = "Firmware:LICENSE.libertas"
+LICENSE_${PN}-rtl8192cu = "Firmware:LICENCE.rtlwifi_firmware"
+LICENSE_${PN}-rtl8192ce = "Firmware:LICENCE.rtlwifi_firmware"
+LICENSE_${PN}-rtl8192su = "Firmware:LICENCE.rtlwifi_firmware"
 
 LIC_FILES_CHKSUM = "file://LICENSE.radeon_rlc;md5=4c243f7854d2884b483abda991adef43 \
                     file://LICENSE.dib0700;md5=f7411825c8a555a1a3e5eab9ca773431 \
@@ -14,12 +17,14 @@  LIC_FILES_CHKSUM = "file://LICENSE.radeon_rlc;md5=4c243f7854d2884b483abda991adef
                     file://LICENCE.i2400m;md5=14b901969e23c41881327c0d9e4b7d36 \
                     file://LICENCE.atheros_firmware;md5=62748c8fecfa12010fd76409db4b5459 \
                     file://LICENCE.agere;md5=af0133de6b4a9b2522defd5f188afd31 \
+                    file://LICENCE.rtlwifi_firmware.txt;md5=00d06cfd3eddd5a2698948ead2ad54a5 \
                    "
 
-PROVIDES += "linux-firmware-sd8686"
+PROVIDES += "linux-firmware-sd8686 linux-firmware-rtl8192cu linux-firmware-rtl8192ce linux-firmware-rtl8192su"
 
 SRCREV = "40c0f950be7040614dc45df54e25e54d00e3b73b"
 PV = "0.0+git${SRCPV}"
+PR = "r1"
 
 SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git;protocol=git"
 
@@ -35,12 +40,42 @@  do_install() {
 	install -m 0666 libertas/sd8686_v9.bin ${D}/lib/firmware/sd8686.bin
 	install -m 0666 libertas/sd8686_v9_helper.bin ${D}/lib/firmware/sd8686_helper.bin
 	install -m 0666 LICENCE.libertas ${D}/lib/firmware/
+	# Realtek rtl8192* 
+	install -d ${D}/lib/firmware/rtlwifi/
+	install -m 0666 rtlwifi/rtl8192cufw.bin ${D}/lib/firmware/rtlwifi/rtl8192cufw.bin
+	install -m 0666 rtlwifi/rtl8192cfw.bin ${D}/lib/firmware/rtlwifi/rtl8192cfw.bin
+	install -m 0666 rtlwifi/rtl8712u.bin ${D}/lib/firmware/rtlwifi/rtl8712u.bin	
+	install -m 0666 LICENCE.rtlwifi_firmware.txt ${D}/lib/firmware/rtlwifi/LICENCE.rtlwifi_firmware.txt
 }
 
-PACKAGES = "${PN}-sd8686"
+PACKAGES = "${PN}-sd8686 ${PN}-rtl8192cu linux-firmware-rtl8192ce linux-firmware-rtl8192su"
 
 FILES_${PN}-sd8686 = "/lib/firmware/sd8686* /lib/firmware/LICENCE.libertas"
 
 RPROVIDES_${PN}-sd8686 = "${PN}-sd8686"
 
+FILES_${PN}-rtl8192cu = " \
+  /lib/firmware/rtlwifi/rtl8192cufw.bin \
+  /lib/firmware/rtlwifi/LICENCE.rtlwifi_firmware.txt \
+"
+RPROVIDES_${PN}-rtl8192cu = "${PN}-rtl8192cu"
+
+FILES_${PN}-rtl8192cu = " \
+  /lib/firmware/rtlwifi/rtl8192cufw.bin \
+  /lib/firmware/rtlwifi/LICENCE.rtlwifi_firmware.txt \
+"
+RPROVIDES_${PN}-rtl8192cu = "${PN}-rtl8192cu"
+
+FILES_${PN}-rtl8192ce = " \
+  /lib/firmware/rtlwifi/rtl8192cfw.bin \
+  /lib/firmware/rtlwifi/LICENCE.rtlwifi_firmware.txt \
+"
+RPROVIDES_${PN}-rtl8192ce = "${PN}-rtl8192ce"
+
+FILES_${PN}-rtl8192su = " \
+  /lib/firmware/rtlwifi/rtl8712u.bin \
+  /lib/firmware/rtlwifi/LICENCE.rtlwifi_firmware.txt \
+"
+RPROVIDES_${PN}-rtl8192su = "${PN}-rtl8192su"
+
 PACKAGE_ARCH = "all"