summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kelly <mkelly@xevo.com>2018-01-16 12:25:36 -0800
committerPaul Barker <pbarker@toganlabs.com>2018-04-23 08:49:31 +0000
commita2d98d9c602214847f5e56b8c2a7a0a9cd2285b7 (patch)
treeb7e8fba34245fae77ffab4618ee60b575dca08c8
parent2be59f293d61e39de76d9ad9cdab880f45d9a30b (diff)
downloadmeta-raspberrypi-a2d98d9c602214847f5e56b8c2a7a0a9cd2285b7.tar.gz
linux-firmware: make rpi fw specific to rpi
Currently, we are installing the rpi custom txt and fw files whenever the meta-raspberrypi layer is included in bblayers.conf. This breaks other machines that need to use the bcm43430 drivers but with alternate txt or fw files. Install these files only when "rpi" is in MACHINEOVERRIDES. Signed-off-by: Martin Kelly <mkelly@xevo.com>
-rw-r--r--recipes-kernel/linux-firmware/linux-firmware_%.bbappend40
1 files changed, 20 insertions, 20 deletions
diff --git a/recipes-kernel/linux-firmware/linux-firmware_%.bbappend b/recipes-kernel/linux-firmware/linux-firmware_%.bbappend
index daf1dbc..fc62a02 100644
--- a/recipes-kernel/linux-firmware/linux-firmware_%.bbappend
+++ b/recipes-kernel/linux-firmware/linux-firmware_%.bbappend
@@ -1,26 +1,26 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/files:" 1FILESEXTRAPATHS_prepend_rpi := "${THISDIR}/files:"
2 2
3SRC_URI += " \ 3SRC_URI_append_rpi = " \
4 file://brcmfmac43430-sdio.bin \ 4 file://brcmfmac43430-sdio.bin \
5 file://brcmfmac43430-sdio.txt \ 5 file://brcmfmac43430-sdio.txt \
6 " 6"
7 7
8do_install_append() { 8do_install_append_rpi() {
9 # Overwrite v7.45.41.26 by the one we currently provide in this layer 9 # Overwrite v7.45.41.26 by the one we currently provide in this layer
10 # (v7.45.41.46) 10 # (v7.45.41.46)
11 local _firmware="brcmfmac43430-sdio.bin" 11 local _firmware="brcmfmac43430-sdio.bin"
12 local _oldmd5=9258986488eca9fe5343b0d6fe040f8e 12 local _oldmd5=9258986488eca9fe5343b0d6fe040f8e
13 if [ "$(md5sum ${D}${nonarch_base_libdir}/firmware/brcm/$_firmware | awk '{print $1}')" != "$_oldmd5" ]; then 13 if [ "$(md5sum ${D}${nonarch_base_libdir}/firmware/brcm/$_firmware | awk '{print $1}')" != "$_oldmd5" ]; then
14 _firmware="" 14 _firmware=""
15 bbwarn "linux-firmware stopped providing brcmfmac43430 v7.45.41.26." 15 bbwarn "linux-firmware stopped providing brcmfmac43430 v7.45.41.26."
16 else 16 else
17 _firmware="${WORKDIR}/$_firmware" 17 _firmware="${WORKDIR}/$_firmware"
18 fi 18 fi
19 19
20 mkdir -p ${D}/${nonarch_base_libdir}/firmware/brcm 20 mkdir -p ${D}/${nonarch_base_libdir}/firmware/brcm
21 install -m 0644 $_firmware ${WORKDIR}/brcmfmac43430-sdio.txt ${D}${nonarch_base_libdir}/firmware/brcm 21 install -m 0644 $_firmware ${WORKDIR}/brcmfmac43430-sdio.txt ${D}${nonarch_base_libdir}/firmware/brcm
22} 22}
23 23
24FILES_${PN}-bcm43430 += " \ 24FILES_${PN}-bcm43430_rpi += " \
25 ${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.txt \ 25 ${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.txt \
26" 26"