All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH v2] broadcom-bt-firmware: Add new recipe for Broadcom Bluetooth firmwares
@ 2018-05-29 13:35 Krzysztof Kozlowski
  2018-05-29 16:40 ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2018-05-29 13:35 UTC (permalink / raw)
  To: openembedded-devel

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>

---

Changes since v1:
1. Rebase on sumo

The patch is also available here:
https://github.com/krzk/meta-openembedded/commits/broadcom-bt-v2
---
 .../broadcom-bt-firmware_git.bb                    | 76 ++++++++++++++++++++++
 1 file changed, 76 insertions(+)
 create mode 100644 meta-oe/recipes-kernel/broadcom-bt-firmware/broadcom-bt-firmware_git.bb

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 000000000000..8c474ecdc472
--- /dev/null
+++ b/meta-oe/recipes-kernel/broadcom-bt-firmware/broadcom-bt-firmware_git.bb
@@ -0,0 +1,76 @@
+# Copyright (C) 2018 Krzysztof Kozlowski <krzk@kernel.org>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "Broadcom Bluetooth firmware files"
+DESCRIPTION = "Firmware for Broadcom Bluetooth devices. Note that in case of BT+WiFi devices, separate WiFi firmware might be needed."
+HOMEPAGE = "https://github.com/winterheart/broadcom-bt-firmware"
+
+LICENSE = "Firmware-Broadcom-WIDCOMM"
+NO_GENERIC_LICENSE[Firmware-Broadcom-WIDCOMM] = "LICENSE.broadcom_bcm20702"
+
+LIC_FILES_CHKSUM = "file://LICENSE.broadcom_bcm20702;md5=c0d5ea0502b00df74173d0f8a48b619d"
+SRC_URI = "git://github.com/winterheart/broadcom-bt-firmware.git"
+SRCREV = "c0bd928b8ae5754b6077c99afe6ef5c949a58f32"
+PE = "1"
+PV = "0.0+git${SRCPV}"
+
+S = "${WORKDIR}/git"
+
+inherit allarch
+
+CLEANBROKEN = "1"
+
+do_compile() {
+    :
+}
+
+do_install() {
+    install -d ${D}${nonarch_base_libdir}/firmware/brcm/
+    cp brcm/*.hcd ${D}${nonarch_base_libdir}/firmware/brcm/
+
+    # For license package:
+    install -m 0644 LICENSE.broadcom_bcm20702 ${D}${nonarch_base_libdir}/firmware/brcm/
+
+    # For main package:
+    install -m 0644 DEVICES.md ${D}${nonarch_base_libdir}/firmware/brcm/
+}
+
+PACKAGES =+ " \
+    ${PN}-bcm20702a1 \
+    ${PN}-bcm20702b0 \
+    ${PN}-bcm20703a1 \
+    ${PN}-bcm43142a0 \
+    ${PN}-bcm4335c0 \
+    ${PN}-bcm4350c5 \
+    ${PN}-bcm4356a2 \
+    ${PN}-bcm4371c2 \
+    ${PN}-license \
+"
+
+RDEPENDS_${PN}-bcm20702a1 = "${PN}-license"
+RDEPENDS_${PN}-bcm20702b0 = "${PN}-license"
+RDEPENDS_${PN}-bcm20703a1 = "${PN}-license"
+RDEPENDS_${PN}-bcm43142a0 = "${PN}-license"
+RDEPENDS_${PN}-bcm4335c0 = "${PN}-license"
+RDEPENDS_${PN}-bcm4350c5 = "${PN}-license"
+RDEPENDS_${PN}-bcm4356a2 = "${PN}-license"
+RDEPENDS_${PN}-bcm4371c2 = "${PN}-license"
+
+FILES_${PN}-bcm20702a1 = "${nonarch_base_libdir}/firmware/brcm/BCM20702A1*hcd"
+FILES_${PN}-bcm20702b0 = "${nonarch_base_libdir}/firmware/brcm/BCM20702B0*hcd"
+FILES_${PN}-bcm20703a1 = "${nonarch_base_libdir}/firmware/brcm/BCM20703A1*hcd"
+FILES_${PN}-bcm43142a0 = "${nonarch_base_libdir}/firmware/brcm/BCM43142A0*hcd"
+FILES_${PN}-bcm4335c0 = "${nonarch_base_libdir}/firmware/brcm/BCM4335C0*hcd"
+FILES_${PN}-bcm4350c5 = "${nonarch_base_libdir}/firmware/brcm/BCM4350C5*hcd"
+FILES_${PN}-bcm4356a2 = "${nonarch_base_libdir}/firmware/brcm/BCM4356A2*hcd"
+FILES_${PN}-bcm4371c2 = "${nonarch_base_libdir}/firmware/brcm/BCM4371C2*hcd"
+FILES_${PN}-license += "${nonarch_base_libdir}/firmware/brcm/LICENSE.broadcom_bcm20702"
+
+FILES_${PN} += "${nonarch_base_libdir}/firmware/brcm/*"
+RDEPENDS_${PN} += "${PN}-license"
+
+# Make broadcom-bt-firmware depend on all of the split-out packages.
+python populate_packages_prepend () {
+    firmware_pkgs = oe.utils.packages_filter_out_system(d)
+    d.appendVar('RDEPENDS_broadcom-bt-firmware', ' ' + ' '.join(firmware_pkgs))
+}
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [meta-oe][PATCH v2] broadcom-bt-firmware: Add new recipe for Broadcom Bluetooth firmwares
  2018-05-29 13:35 [meta-oe][PATCH v2] broadcom-bt-firmware: Add new recipe for Broadcom Bluetooth firmwares Krzysztof Kozlowski
@ 2018-05-29 16:40 ` Khem Raj
  2018-05-30  6:12   ` Krzysztof Kozlowski
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2018-05-29 16:40 UTC (permalink / raw)
  To: Krzysztof Kozlowski; +Cc: openembeded-devel

Previous version is now upstreamed. Please send the delta rebased on
top of the prior version in a v3

On Tue, May 29, 2018 at 6:35 AM, Krzysztof Kozlowski <krzk@kernel.org> wrote:
> 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>
>
> ---
>
> Changes since v1:
> 1. Rebase on sumo
>
> The patch is also available here:
> https://github.com/krzk/meta-openembedded/commits/broadcom-bt-v2
> ---
>  .../broadcom-bt-firmware_git.bb                    | 76 ++++++++++++++++++++++
>  1 file changed, 76 insertions(+)
>  create mode 100644 meta-oe/recipes-kernel/broadcom-bt-firmware/broadcom-bt-firmware_git.bb
>
> 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 000000000000..8c474ecdc472
> --- /dev/null
> +++ b/meta-oe/recipes-kernel/broadcom-bt-firmware/broadcom-bt-firmware_git.bb
> @@ -0,0 +1,76 @@
> +# Copyright (C) 2018 Krzysztof Kozlowski <krzk@kernel.org>
> +# Released under the MIT license (see COPYING.MIT for the terms)
> +
> +SUMMARY = "Broadcom Bluetooth firmware files"
> +DESCRIPTION = "Firmware for Broadcom Bluetooth devices. Note that in case of BT+WiFi devices, separate WiFi firmware might be needed."
> +HOMEPAGE = "https://github.com/winterheart/broadcom-bt-firmware"
> +
> +LICENSE = "Firmware-Broadcom-WIDCOMM"
> +NO_GENERIC_LICENSE[Firmware-Broadcom-WIDCOMM] = "LICENSE.broadcom_bcm20702"
> +
> +LIC_FILES_CHKSUM = "file://LICENSE.broadcom_bcm20702;md5=c0d5ea0502b00df74173d0f8a48b619d"
> +SRC_URI = "git://github.com/winterheart/broadcom-bt-firmware.git"
> +SRCREV = "c0bd928b8ae5754b6077c99afe6ef5c949a58f32"
> +PE = "1"
> +PV = "0.0+git${SRCPV}"
> +
> +S = "${WORKDIR}/git"
> +
> +inherit allarch
> +
> +CLEANBROKEN = "1"
> +
> +do_compile() {
> +    :
> +}
> +
> +do_install() {
> +    install -d ${D}${nonarch_base_libdir}/firmware/brcm/
> +    cp brcm/*.hcd ${D}${nonarch_base_libdir}/firmware/brcm/
> +
> +    # For license package:
> +    install -m 0644 LICENSE.broadcom_bcm20702 ${D}${nonarch_base_libdir}/firmware/brcm/
> +
> +    # For main package:
> +    install -m 0644 DEVICES.md ${D}${nonarch_base_libdir}/firmware/brcm/
> +}
> +
> +PACKAGES =+ " \
> +    ${PN}-bcm20702a1 \
> +    ${PN}-bcm20702b0 \
> +    ${PN}-bcm20703a1 \
> +    ${PN}-bcm43142a0 \
> +    ${PN}-bcm4335c0 \
> +    ${PN}-bcm4350c5 \
> +    ${PN}-bcm4356a2 \
> +    ${PN}-bcm4371c2 \
> +    ${PN}-license \
> +"
> +
> +RDEPENDS_${PN}-bcm20702a1 = "${PN}-license"
> +RDEPENDS_${PN}-bcm20702b0 = "${PN}-license"
> +RDEPENDS_${PN}-bcm20703a1 = "${PN}-license"
> +RDEPENDS_${PN}-bcm43142a0 = "${PN}-license"
> +RDEPENDS_${PN}-bcm4335c0 = "${PN}-license"
> +RDEPENDS_${PN}-bcm4350c5 = "${PN}-license"
> +RDEPENDS_${PN}-bcm4356a2 = "${PN}-license"
> +RDEPENDS_${PN}-bcm4371c2 = "${PN}-license"
> +
> +FILES_${PN}-bcm20702a1 = "${nonarch_base_libdir}/firmware/brcm/BCM20702A1*hcd"
> +FILES_${PN}-bcm20702b0 = "${nonarch_base_libdir}/firmware/brcm/BCM20702B0*hcd"
> +FILES_${PN}-bcm20703a1 = "${nonarch_base_libdir}/firmware/brcm/BCM20703A1*hcd"
> +FILES_${PN}-bcm43142a0 = "${nonarch_base_libdir}/firmware/brcm/BCM43142A0*hcd"
> +FILES_${PN}-bcm4335c0 = "${nonarch_base_libdir}/firmware/brcm/BCM4335C0*hcd"
> +FILES_${PN}-bcm4350c5 = "${nonarch_base_libdir}/firmware/brcm/BCM4350C5*hcd"
> +FILES_${PN}-bcm4356a2 = "${nonarch_base_libdir}/firmware/brcm/BCM4356A2*hcd"
> +FILES_${PN}-bcm4371c2 = "${nonarch_base_libdir}/firmware/brcm/BCM4371C2*hcd"
> +FILES_${PN}-license += "${nonarch_base_libdir}/firmware/brcm/LICENSE.broadcom_bcm20702"
> +
> +FILES_${PN} += "${nonarch_base_libdir}/firmware/brcm/*"
> +RDEPENDS_${PN} += "${PN}-license"
> +
> +# Make broadcom-bt-firmware depend on all of the split-out packages.
> +python populate_packages_prepend () {
> +    firmware_pkgs = oe.utils.packages_filter_out_system(d)
> +    d.appendVar('RDEPENDS_broadcom-bt-firmware', ' ' + ' '.join(firmware_pkgs))
> +}
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [meta-oe][PATCH v2] broadcom-bt-firmware: Add new recipe for Broadcom Bluetooth firmwares
  2018-05-29 16:40 ` Khem Raj
@ 2018-05-30  6:12   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2018-05-30  6:12 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembeded-devel

On Tue, May 29, 2018 at 6:40 PM, Khem Raj <raj.khem@gmail.com> wrote:
> Previous version is now upstreamed. Please send the delta rebased on
> top of the prior version in a v3

I missed that it is already applied, sorry for the noise then.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-05-30  6:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-29 13:35 [meta-oe][PATCH v2] broadcom-bt-firmware: Add new recipe for Broadcom Bluetooth firmwares Krzysztof Kozlowski
2018-05-29 16:40 ` Khem Raj
2018-05-30  6:12   ` Krzysztof Kozlowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.