From 9209f20c7a586320fc103d8274ae78f3e0d132ff Mon Sep 17 00:00:00 2001 From: Andrei Gherzan Date: Wed, 28 Mar 2018 14:43:10 +0100 Subject: linux-firmware-raspbian: New recipe which uses RPi-Distro repository This packages only the firmware needed for the RaspberryPi boards. We use the RPi-Distro as it's already maintained by the Raspbian guys and we get better support for the RaspberryPi needed firmwares. Signed-off-by: Andrei Gherzan --- .../linux-firmware/linux-firmware-raspbian.bb | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 recipes-kernel/linux-firmware/linux-firmware-raspbian.bb diff --git a/recipes-kernel/linux-firmware/linux-firmware-raspbian.bb b/recipes-kernel/linux-firmware/linux-firmware-raspbian.bb new file mode 100644 index 0000000..ee89301 --- /dev/null +++ b/recipes-kernel/linux-firmware/linux-firmware-raspbian.bb @@ -0,0 +1,53 @@ +SUMMARY = "Firmware files for use with Linux kernel" +SECTION = "kernel" + +LICENSE = "Firmware-broadcom_bcm43xx" + +LIC_FILES_CHKSUM = "file://LICENCE.broadcom_bcm43xx;md5=3160c14df7228891b868060e1951dfbc" + +# These are not common licenses, set NO_GENERIC_LICENSE for them +# so that the license files will be copied from fetched source +NO_GENERIC_LICENSE[Firmware-broadcom_bcm43xx] = "LICENCE.broadcom_bcm43xx" + +SRCREV = "86e88fbf0345da49555d0ec34c80b4fbae7d0cd3" +PV = "0.0+git${SRCPV}" + +SRC_URI = "git://github.com/RPi-Distro/firmware-nonfree" + +UPSTREAM_VERSION_UNKNOWN = "1" + +S = "${WORKDIR}/git" + +inherit allarch + +CLEANBROKEN = "1" + +do_compile() { + : +} + +do_install() { + install -d ${D}${nonarch_base_libdir}/firmware/brcm + cp ./LICENCE.broadcom_bcm43xx ${D}${nonarch_base_libdir}/firmware + cp -r ./brcm/brcmfmac43430* ${D}${nonarch_base_libdir}/firmware/brcm + cp -r ./brcm/brcmfmac43455* ${D}${nonarch_base_libdir}/firmware/brcm +} + +PACKAGES = " \ + ${PN}-broadcom-license \ + ${PN}-bcm43430 \ + ${PN}-bcm43455 \ + " + +LICENSE_${PN}-bcm43430 = "Firmware-broadcom_bcm43xx" +LICENSE_${PN}-bcm43455 = "Firmware-broadcom_bcm43xx" +LICENSE_${PN}-broadcom-license = "Firmware-broadcom_bcm43xx" +FILES_${PN}-broadcom-license = "${nonarch_base_libdir}/firmware/LICENCE.broadcom_bcm43xx" +FILES_${PN}-bcm43430 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43430*" +FILES_${PN}-bcm43455 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43455*" +RDEPENDS_${PN}-bcm43430 += "${PN}-broadcom-license" +RDEPENDS_${PN}-bcm43455 += "${PN}-broadcom-license" + +# Firmware files are generally not ran on the CPU, so they can be +# allarch despite being architecture specific +INSANE_SKIP = "arch" -- cgit v1.2.3-54-g00ecf