summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.com>2018-03-28 14:43:10 +0100
committerAndrei Gherzan <andrei@gherzan.com>2018-08-17 15:24:49 +0100
commitd9e2a38a1f2be5df343935bde32362b869e1687a (patch)
treed927019b35c5e16beaac6ec5e96541746a3a79bf /recipes-kernel
parent9e08912bbaadaac9e1a15a3d003ca66d769cc9b9 (diff)
downloadmeta-raspberrypi-d9e2a38a1f2be5df343935bde32362b869e1687a.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>
Diffstat (limited to 'recipes-kernel')
-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"