diff options
author | Martin Kelly <mkelly@xevo.com> | 2018-01-16 12:25:36 -0800 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.com> | 2018-01-22 19:10:14 +0000 |
commit | 61c2a965a21cfc927b817dc517100d31c07ffa95 (patch) | |
tree | 684bc21ceae2250a56d7575e1cdb75f3f031bce0 | |
parent | c47caaca325b8cd81ee5bcd7cb30295faf0d440d (diff) | |
download | meta-raspberrypi-61c2a965a21cfc927b817dc517100d31c07ffa95.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_%.bbappend | 40 |
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 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | 1 | FILESEXTRAPATHS_prepend_rpi := "${THISDIR}/files:" |
2 | 2 | ||
3 | SRC_URI += " \ | 3 | SRC_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 | ||
8 | do_install_append() { | 8 | do_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 | ||
24 | FILES_${PN}-bcm43430 += " \ | 24 | FILES_${PN}-bcm43430_rpi += " \ |
25 | ${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.txt \ | 25 | ${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.txt \ |
26 | " | 26 | " |