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>
This commit is contained in:
Martin Kelly 2018-01-16 12:25:36 -08:00 committed by Paul Barker
parent 2be59f293d
commit a2d98d9c60

View File

@ -1,11 +1,11 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
FILESEXTRAPATHS_prepend_rpi := "${THISDIR}/files:"
SRC_URI += " \
SRC_URI_append_rpi = " \
file://brcmfmac43430-sdio.bin \
file://brcmfmac43430-sdio.txt \
"
"
do_install_append() {
do_install_append_rpi() {
# Overwrite v7.45.41.26 by the one we currently provide in this layer
# (v7.45.41.46)
local _firmware="brcmfmac43430-sdio.bin"
@ -21,6 +21,6 @@ do_install_append() {
install -m 0644 $_firmware ${WORKDIR}/brcmfmac43430-sdio.txt ${D}${nonarch_base_libdir}/firmware/brcm
}
FILES_${PN}-bcm43430 += " \
FILES_${PN}-bcm43430_rpi += " \
${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.txt \
"