aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaiane Angolini <daiane.angolini@nxp.com>2016-08-23 14:14:39 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2016-08-23 21:02:02 -0300
commit57e8b2145f7b600d65ef9d34075e184b8f2dfe3b (patch)
tree3f176a8419b11dede60fddc583559dd84f1ee274
parent2d34466354fb1083104024766438a867a5c75fde (diff)
downloadmeta-fsl-arm-57e8b2145f7b600d65ef9d34075e184b8f2dfe3b.tar.gz
meta-fsl-arm-57e8b2145f7b600d65ef9d34075e184b8f2dfe3b.tar.bz2
meta-fsl-arm-57e8b2145f7b600d65ef9d34075e184b8f2dfe3b.zip
firmware-imx: Add brcm firmware installation
Add the subpackage firmware-imx-brcm which installs 4 set of WiFi and Bluetooth firmwares: * 1BW_BCM43340 * 1DX_BCM4343W * SN8000_BCM43362 * ZP_BCM4339 Signed-off-by: Daiane Angolini <daiane.angolini@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--recipes-bsp/firmware-imx/firmware-imx.inc32
-rw-r--r--recipes-bsp/firmware-imx/firmware-imx_5.4.bb3
2 files changed, 33 insertions, 2 deletions
diff --git a/recipes-bsp/firmware-imx/firmware-imx.inc b/recipes-bsp/firmware-imx/firmware-imx.inc
index 3aa99a6..2f82791 100644
--- a/recipes-bsp/firmware-imx/firmware-imx.inc
+++ b/recipes-bsp/firmware-imx/firmware-imx.inc
@@ -6,14 +6,41 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=8cf95184c220e247b9917e7244124c5a"
PE = "1"
-SRC_URI = "${FSL_MIRROR}/firmware-imx-${PV}.bin;fsl-eula=true"
+#BRCM firmware git
+SRCBRANCH ?= "master"
+
+SRC_URI = "${FSL_MIRROR}/firmware-imx-${PV}.bin;fsl-eula=true \
+ git://git.freescale.com/imx/imx-firmware.git;branch=${SRCBRANCH};destsuffix=${S}/git "
inherit fsl-eula-unpack
do_install() {
install -d ${D}${base_libdir}/firmware/imx
+ install -d ${D}${base_libdir}/firmware/brcm
+ install -d ${D}${sysconfdir}/firmware
+
cp -rfv firmware/* ${D}${base_libdir}/firmware/
+ #1BW_BCM43340
+ cp -rfv git/brcm/1BW_BCM43340/*.bin ${D}${base_libdir}/firmware/brcm
+ cp -rfv git/brcm/1BW_BCM43340/*.cal ${D}${base_libdir}/firmware/brcm
+ cp -rfv git/brcm/1BW_BCM43340/*.hcd ${D}${sysconfdir}/firmware/
+
+ #1DX_BCM4343W
+ cp -rfv git/brcm/1DX_BCM4343W/*.bin ${D}${base_libdir}/firmware/brcm
+ cp -rfv git/brcm/1DX_BCM4343W/*.cal ${D}${base_libdir}/firmware/brcm
+ cp -rfv git/brcm/1DX_BCM4343W/*.hcd ${D}${sysconfdir}/firmware/
+
+ #SN8000_BCM43362
+ cp -rfv git/brcm/SN8000_BCM43362/*.bin ${D}${base_libdir}/firmware/brcm
+ cp -rfv git/brcm/SN8000_BCM43362/*.cal ${D}${base_libdir}/firmware/brcm
+ cp -rfv git/brcm/1DX_BCM4343W/*.hcd ${D}${sysconfdir}/firmware/
+
+ #ZP_BCM4339
+ cp -rfv git/brcm/ZP_BCM4339/*.bin ${D}${base_libdir}/firmware/brcm
+ cp -rfv git/brcm/ZP_BCM4339/*.cal ${D}${base_libdir}/firmware/brcm
+ cp -rfv git/brcm/ZP_BCM4339/*.hcd ${D}${sysconfdir}/firmware/
+
mv ${D}${base_libdir}/firmware/epdc/ ${D}${base_libdir}/firmware/imx/epdc/
mv ${D}${base_libdir}/firmware/imx/epdc/epdc_ED060XH2C1.fw.nonrestricted ${D}${base_libdir}/firmware/imx/epdc/epdc_ED060XH2C1.fw
@@ -44,8 +71,9 @@ ALLOW_EMPTY_${PN} = "1"
PACKAGES_DYNAMIC = "${PN}-vpu-* ${PN}-sdma-*"
-PACKAGES =+ "${PN}-epdc"
+PACKAGES =+ "${PN}-epdc ${PN}-brcm"
FILES_${PN}-epdc = "${base_libdir}/firmware/imx/epdc/"
+FILES_${PN}-brcm = "${base_libdir}/firmware/brcm/*.bin ${base_libdir}/firmware/brcm/*.cal ${sysconfdir}/firmware/"
PACKAGE_ARCH = "${MACHINE_SOCARCH}"
diff --git a/recipes-bsp/firmware-imx/firmware-imx_5.4.bb b/recipes-bsp/firmware-imx/firmware-imx_5.4.bb
index a7a2b38..5f7a6a1 100644
--- a/recipes-bsp/firmware-imx/firmware-imx_5.4.bb
+++ b/recipes-bsp/firmware-imx/firmware-imx_5.4.bb
@@ -6,4 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=8cf95184c220e247b9917e7244124c5a"
SRC_URI[md5sum] = "dae846ca2fc4504067f725f501491adf"
SRC_URI[sha256sum] = "c5bd4bff48cce9715a5d6d2c190ff3cd2262c7196f7facb9b0eda231c92cc223"
+#BRCM firmware git
+SRCREV = "951c1363abe95dd75ab3e9447f640d7807240236"
+
COMPATIBLE_MACHINE = "(mx5|mx6|mx6ul|mx7)"