Patchwork [meta-fsl-arm-extra,v2,3/5] linux-firmware: Add bbappend to include Broadcom wifi drivers

login
register
mail settings
Submitter John Weber
Date March 18, 2013, 8:25 p.m.
Message ID <1363638331-4603-4-git-send-email-rjohnweber@gmail.com>
Download mbox | patch
Permalink /patch/46411/
State Changes Requested
Delegated to: Otavio Salvador
Headers show

Comments

John Weber - March 18, 2013, 8:25 p.m.
This recipe adds files for split packages to support the bcm4329, bcm4330,
and bcm4334.

They are installed in /lib/firmware/brcm/brcmfmac43<N>.bin where <N> is
the last two digits of the device product number.

Note: The wifi driver for these devices expects the firmware file to be
named brcmfmac-sdio.bin, and so a link must be created named
brcmfmac-sdio.bin to the appropriate file.  Ultimately, this could be
done with update-alternatives in this recipe but it could also be
accomplished in another recipe which RDEPENDS on linux-firmware-bcm43<N>

Signed-off-by: John Weber <rjohnweber@gmail.com>
---
 .../linux-firmware/linux-firmware_git.bbappend     |   24 ++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 recipes-kernel/linux-firmware/linux-firmware_git.bbappend

Patch

diff --git a/recipes-kernel/linux-firmware/linux-firmware_git.bbappend b/recipes-kernel/linux-firmware/linux-firmware_git.bbappend
new file mode 100644
index 0000000..b854cca
--- /dev/null
+++ b/recipes-kernel/linux-firmware/linux-firmware_git.bbappend
@@ -0,0 +1,24 @@ 
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}"
+
+LIC_FILES_CHKSUM += "file://LICENCE.broadcom_bcm43xx;md5=3160c14df7228891b868060e1951dfbc\
+"
+
+PACKAGES =+ "${PN}-bcm4329 ${PN}-bcm4330 ${PN}-bcm4334"
+
+LICENSE_${PN}-bcm4329 = "Firmware-bcm4329"
+FILES_${PN}-bcm4329 = " \
+  /lib/firmware/brcm/brcmfmac4329.bin \
+  /lib/firmware/LICENCE.broadcom_bcm43xx \
+"
+
+LICENSE_${PN}-bcm4330 = "Firmware-bcm4330"
+FILES_${PN}-bcm4330 = " \
+  /lib/firmware/brcm/brcmfmac4330.bin \
+  /lib/firmware/LICENCE.broadcom_bcm43xx \
+"
+
+LICENSE_${PN}-bcm4334 = "Firmware-bcm4334"
+FILES_${PN}-bcm4334 = " \
+  /lib/firmware/brcm/brcmfmac4334.bin \
+  /lib/firmware/LICENCE.broadcom_bcm43xx \
+"