summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.com>2018-03-28 14:43:10 +0100
committerAndrei Gherzan <andrei@gherzan.com>2018-03-29 11:04:40 +0100
commit9209f20c7a586320fc103d8274ae78f3e0d132ff (patch)
tree3f94a727616538c6d60d8359c604af860985c6ed
parente99afb0c89a141c8173ac186f4d1b2df29ffc548 (diff)
downloadmeta-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.bb53
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 @@
1SUMMARY = "Firmware files for use with Linux kernel"
2SECTION = "kernel"
3
4LICENSE = "Firmware-broadcom_bcm43xx"
5
6LIC_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
10NO_GENERIC_LICENSE[Firmware-broadcom_bcm43xx] = "LICENCE.broadcom_bcm43xx"
11
12SRCREV = "86e88fbf0345da49555d0ec34c80b4fbae7d0cd3"
13PV = "0.0+git${SRCPV}"
14
15SRC_URI = "git://github.com/RPi-Distro/firmware-nonfree"
16
17UPSTREAM_VERSION_UNKNOWN = "1"
18
19S = "${WORKDIR}/git"
20
21inherit allarch
22
23CLEANBROKEN = "1"
24
25do_compile() {
26 :
27}
28
29do_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
36PACKAGES = " \
37 ${PN}-broadcom-license \
38 ${PN}-bcm43430 \
39 ${PN}-bcm43455 \
40 "
41
42LICENSE_${PN}-bcm43430 = "Firmware-broadcom_bcm43xx"
43LICENSE_${PN}-bcm43455 = "Firmware-broadcom_bcm43xx"
44LICENSE_${PN}-broadcom-license = "Firmware-broadcom_bcm43xx"
45FILES_${PN}-broadcom-license = "${nonarch_base_libdir}/firmware/LICENCE.broadcom_bcm43xx"
46FILES_${PN}-bcm43430 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43430*"
47FILES_${PN}-bcm43455 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43455*"
48RDEPENDS_${PN}-bcm43430 += "${PN}-broadcom-license"
49RDEPENDS_${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
53INSANE_SKIP = "arch"