diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2018-05-22 12:12:54 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-05-26 21:10:55 -0700 |
commit | d84efe4190825953e55a1d2e91fb53b580851279 (patch) | |
tree | 9f0dd6f60e86945a359332a0dba310f4f75c172d /meta-oe/recipes-kernel | |
parent | 803f134c0b365cc25a7b910c6d28984b41111e2c (diff) | |
download | meta-openembedded-d84efe4190825953e55a1d2e91fb53b580851279.tar.gz |
broadcom-bt-firmware: Add new recipe for Broadcom Bluetooth firmwares
Several Broadcom Bluetooth USB dongles require firmware to be loaded.
This recipe provides the firmware for BCM20702, BCM20703, BCM43142,
BCM4335, BCM4350, BCM4356 and BCM4371 based devices.
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-kernel')
-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 | } | ||