Brad Bishop | 3a5fbf5 | 2017-12-04 02:17:07 -0500 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
| 2 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame^] | 3 | SRC_URI += " \ |
| 4 | file://brcmfmac43430-sdio.bin \ |
| 5 | file://brcmfmac43430-sdio.txt \ |
| 6 | " |
Brad Bishop | 3a5fbf5 | 2017-12-04 02:17:07 -0500 | [diff] [blame] | 7 | |
| 8 | do_install_append() { |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame^] | 9 | # Overwrite v7.45.41.26 by the one we currently provide in this layer |
| 10 | # (v7.45.41.46) |
| 11 | local _firmware="brcmfmac43430-sdio.bin" |
| 12 | local _oldmd5=9258986488eca9fe5343b0d6fe040f8e |
| 13 | if [ "$(md5sum ${D}/lib/firmware/brcm/$_firmware | awk '{print $1}')" != "$_oldmd5" ]; then |
| 14 | _firmware="" |
| 15 | bbwarn "linux-firmware stopped providing brcmfmac43430 v7.45.41.26." |
| 16 | else |
| 17 | _firmware="${WORKDIR}/$_firmware" |
| 18 | fi |
| 19 | |
| 20 | mkdir -p ${D}/lib/firmware/brcm |
| 21 | install -m 0644 $_firmware ${WORKDIR}/brcmfmac43430-sdio.txt ${D}/lib/firmware/brcm |
Brad Bishop | 3a5fbf5 | 2017-12-04 02:17:07 -0500 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | FILES_${PN}-bcm43430 += " \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame^] | 25 | /lib/firmware/brcm/brcmfmac43430-sdio.txt \ |
Brad Bishop | 3a5fbf5 | 2017-12-04 02:17:07 -0500 | [diff] [blame] | 26 | " |