diff options
| author | Andrei Gherzan <andrei@gherzan.com> | 2018-03-28 14:43:10 +0100 |
|---|---|---|
| committer | Andrei Gherzan <andrei@gherzan.com> | 2018-03-29 11:04:40 +0100 |
| commit | 9209f20c7a586320fc103d8274ae78f3e0d132ff (patch) | |
| tree | 3f94a727616538c6d60d8359c604af860985c6ed | |
| parent | e99afb0c89a141c8173ac186f4d1b2df29ffc548 (diff) | |
| download | meta-raspberrypi-9209f20c7a586320fc103d8274ae78f3e0d132ff.tar.gz | |
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 <andrei@gherzan.com>
| -rw-r--r-- | recipes-kernel/linux-firmware/linux-firmware-raspbian.bb | 53 |
1 files changed, 53 insertions, 0 deletions
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 @@ | |||
| 1 | SUMMARY = "Firmware files for use with Linux kernel" | ||
| 2 | SECTION = "kernel" | ||
| 3 | |||
| 4 | LICENSE = "Firmware-broadcom_bcm43xx" | ||
| 5 | |||
| 6 | LIC_FILES_CHKSUM = "file://LICENCE.broadcom_bcm43xx;md5=3160c14df7228891b868060e1951dfbc" | ||
| 7 | |||
| 8 | # These are not common licenses, set NO_GENERIC_LICENSE for them | ||
| 9 | # so that the license files will be copied from fetched source | ||
| 10 | NO_GENERIC_LICENSE[Firmware-broadcom_bcm43xx] = "LICENCE.broadcom_bcm43xx" | ||
| 11 | |||
| 12 | SRCREV = "86e88fbf0345da49555d0ec34c80b4fbae7d0cd3" | ||
| 13 | PV = "0.0+git${SRCPV}" | ||
| 14 | |||
| 15 | SRC_URI = "git://github.com/RPi-Distro/firmware-nonfree" | ||
| 16 | |||
| 17 | UPSTREAM_VERSION_UNKNOWN = "1" | ||
| 18 | |||
| 19 | S = "${WORKDIR}/git" | ||
| 20 | |||
| 21 | inherit allarch | ||
| 22 | |||
| 23 | CLEANBROKEN = "1" | ||
| 24 | |||
| 25 | do_compile() { | ||
| 26 | : | ||
| 27 | } | ||
| 28 | |||
| 29 | do_install() { | ||
| 30 | install -d ${D}${nonarch_base_libdir}/firmware/brcm | ||
| 31 | cp ./LICENCE.broadcom_bcm43xx ${D}${nonarch_base_libdir}/firmware | ||
| 32 | cp -r ./brcm/brcmfmac43430* ${D}${nonarch_base_libdir}/firmware/brcm | ||
| 33 | cp -r ./brcm/brcmfmac43455* ${D}${nonarch_base_libdir}/firmware/brcm | ||
| 34 | } | ||
| 35 | |||
| 36 | PACKAGES = " \ | ||
| 37 | ${PN}-broadcom-license \ | ||
| 38 | ${PN}-bcm43430 \ | ||
| 39 | ${PN}-bcm43455 \ | ||
| 40 | " | ||
| 41 | |||
| 42 | LICENSE_${PN}-bcm43430 = "Firmware-broadcom_bcm43xx" | ||
| 43 | LICENSE_${PN}-bcm43455 = "Firmware-broadcom_bcm43xx" | ||
| 44 | LICENSE_${PN}-broadcom-license = "Firmware-broadcom_bcm43xx" | ||
| 45 | FILES_${PN}-broadcom-license = "${nonarch_base_libdir}/firmware/LICENCE.broadcom_bcm43xx" | ||
| 46 | FILES_${PN}-bcm43430 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43430*" | ||
| 47 | FILES_${PN}-bcm43455 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43455*" | ||
| 48 | RDEPENDS_${PN}-bcm43430 += "${PN}-broadcom-license" | ||
| 49 | RDEPENDS_${PN}-bcm43455 += "${PN}-broadcom-license" | ||
| 50 | |||
| 51 | # Firmware files are generally not ran on the CPU, so they can be | ||
| 52 | # allarch despite being architecture specific | ||
| 53 | INSANE_SKIP = "arch" | ||
