diff options
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/recipes-kernel/broadcom-bt-firmware/broadcom-bt-firmware_git.bb | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/broadcom-bt-firmware/broadcom-bt-firmware_git.bb b/meta-oe/recipes-kernel/broadcom-bt-firmware/broadcom-bt-firmware_git.bb new file mode 100644 index 000000000..8c474ecdc --- /dev/null +++ b/meta-oe/recipes-kernel/broadcom-bt-firmware/broadcom-bt-firmware_git.bb | |||
@@ -0,0 +1,76 @@ | |||
1 | # Copyright (C) 2018 Krzysztof Kozlowski <krzk@kernel.org> | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | |||
4 | SUMMARY = "Broadcom Bluetooth firmware files" | ||
5 | DESCRIPTION = "Firmware for Broadcom Bluetooth devices. Note that in case of BT+WiFi devices, separate WiFi firmware might be needed." | ||
6 | HOMEPAGE = "https://github.com/winterheart/broadcom-bt-firmware" | ||
7 | |||
8 | LICENSE = "Firmware-Broadcom-WIDCOMM" | ||
9 | NO_GENERIC_LICENSE[Firmware-Broadcom-WIDCOMM] = "LICENSE.broadcom_bcm20702" | ||
10 | |||
11 | LIC_FILES_CHKSUM = "file://LICENSE.broadcom_bcm20702;md5=c0d5ea0502b00df74173d0f8a48b619d" | ||
12 | SRC_URI = "git://github.com/winterheart/broadcom-bt-firmware.git" | ||
13 | SRCREV = "c0bd928b8ae5754b6077c99afe6ef5c949a58f32" | ||
14 | PE = "1" | ||
15 | PV = "0.0+git${SRCPV}" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | inherit allarch | ||
20 | |||
21 | CLEANBROKEN = "1" | ||
22 | |||
23 | do_compile() { | ||
24 | : | ||
25 | } | ||
26 | |||
27 | do_install() { | ||
28 | install -d ${D}${nonarch_base_libdir}/firmware/brcm/ | ||
29 | cp brcm/*.hcd ${D}${nonarch_base_libdir}/firmware/brcm/ | ||
30 | |||
31 | # For license package: | ||
32 | install -m 0644 LICENSE.broadcom_bcm20702 ${D}${nonarch_base_libdir}/firmware/brcm/ | ||
33 | |||
34 | # For main package: | ||
35 | install -m 0644 DEVICES.md ${D}${nonarch_base_libdir}/firmware/brcm/ | ||
36 | } | ||
37 | |||
38 | PACKAGES =+ " \ | ||
39 | ${PN}-bcm20702a1 \ | ||
40 | ${PN}-bcm20702b0 \ | ||
41 | ${PN}-bcm20703a1 \ | ||
42 | ${PN}-bcm43142a0 \ | ||
43 | ${PN}-bcm4335c0 \ | ||
44 | ${PN}-bcm4350c5 \ | ||
45 | ${PN}-bcm4356a2 \ | ||
46 | ${PN}-bcm4371c2 \ | ||
47 | ${PN}-license \ | ||
48 | " | ||
49 | |||
50 | RDEPENDS_${PN}-bcm20702a1 = "${PN}-license" | ||
51 | RDEPENDS_${PN}-bcm20702b0 = "${PN}-license" | ||
52 | RDEPENDS_${PN}-bcm20703a1 = "${PN}-license" | ||
53 | RDEPENDS_${PN}-bcm43142a0 = "${PN}-license" | ||
54 | RDEPENDS_${PN}-bcm4335c0 = "${PN}-license" | ||
55 | RDEPENDS_${PN}-bcm4350c5 = "${PN}-license" | ||
56 | RDEPENDS_${PN}-bcm4356a2 = "${PN}-license" | ||
57 | RDEPENDS_${PN}-bcm4371c2 = "${PN}-license" | ||
58 | |||
59 | FILES_${PN}-bcm20702a1 = "${nonarch_base_libdir}/firmware/brcm/BCM20702A1*hcd" | ||
60 | FILES_${PN}-bcm20702b0 = "${nonarch_base_libdir}/firmware/brcm/BCM20702B0*hcd" | ||
61 | FILES_${PN}-bcm20703a1 = "${nonarch_base_libdir}/firmware/brcm/BCM20703A1*hcd" | ||
62 | FILES_${PN}-bcm43142a0 = "${nonarch_base_libdir}/firmware/brcm/BCM43142A0*hcd" | ||
63 | FILES_${PN}-bcm4335c0 = "${nonarch_base_libdir}/firmware/brcm/BCM4335C0*hcd" | ||
64 | FILES_${PN}-bcm4350c5 = "${nonarch_base_libdir}/firmware/brcm/BCM4350C5*hcd" | ||
65 | FILES_${PN}-bcm4356a2 = "${nonarch_base_libdir}/firmware/brcm/BCM4356A2*hcd" | ||
66 | FILES_${PN}-bcm4371c2 = "${nonarch_base_libdir}/firmware/brcm/BCM4371C2*hcd" | ||
67 | FILES_${PN}-license += "${nonarch_base_libdir}/firmware/brcm/LICENSE.broadcom_bcm20702" | ||
68 | |||
69 | FILES_${PN} += "${nonarch_base_libdir}/firmware/brcm/*" | ||
70 | RDEPENDS_${PN} += "${PN}-license" | ||
71 | |||
72 | # Make broadcom-bt-firmware depend on all of the split-out packages. | ||
73 | python populate_packages_prepend () { | ||
74 | firmware_pkgs = oe.utils.packages_filter_out_system(d) | ||
75 | d.appendVar('RDEPENDS_broadcom-bt-firmware', ' ' + ' '.join(firmware_pkgs)) | ||
76 | } | ||