bluez-firmware-raspbian: create to hold non-free firmware

Remove the material covered by the Cypress license from the bluez5
package and move it to its own package, derived directly from the
upstream sources.

Closes #224

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
Peter A. Bigot
2018-05-07 07:25:18 -05:00
committed by Andrei Gherzan
parent 6f8926e80e
commit 2a0f25a71f
5 changed files with 184 additions and 17 deletions
Binary file not shown.
Binary file not shown.
+2 -17
View File
@@ -1,8 +1,6 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
BCM_BT_SOURCES = " \
file://BCM43430A1.hcd \
file://BCM4345C0.hcd \
file://0001-bcm43xx-Add-bcm43xx-3wire-variant.patch \
file://0002-bcm43xx-The-UART-speed-must-be-reset-after-the-firmw.patch \
file://0003-Increase-firmware-load-timeout-to-30s.patch \
@@ -11,21 +9,12 @@ BCM_BT_SOURCES = " \
"
enable_bcm_bluetooth() {
install -d ${D}${nonarch_base_libdir}/firmware/brcm/
install -m 0644 ${WORKDIR}/BCM43430A1.hcd ${D}${nonarch_base_libdir}/firmware/brcm/BCM43430A1.hcd
install -m 0644 ${WORKDIR}/BCM4345C0.hcd ${D}${nonarch_base_libdir}/firmware/brcm/BCM4345C0.hcd
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/brcm43438.service ${D}${systemd_unitdir}/system
fi
}
BCM_BT_FIRMWARE = " \
${nonarch_base_libdir}/firmware/brcm/BCM43430A1.hcd \
${nonarch_base_libdir}/firmware/brcm/BCM4345C0.hcd \
"
BCM_BT_SERVICE = " brcm43438.service"
# for raspberrypi3
@@ -35,11 +24,9 @@ do_install_append_raspberrypi3() {
enable_bcm_bluetooth
}
FILES_${PN}_append_raspberrypi3 = " ${BCM_BT_FIRMWARE}"
SYSTEMD_SERVICE_${PN}_append_raspberrypi3 = " ${BCM_BT_SERVICE}"
RDEPENDS_${PN}_append_raspberrypi3 = " udev-rules-rpi"
RDEPENDS_${PN}_append_raspberrypi3 = " udev-rules-rpi bluez-firmware-raspbian"
# for raspberrypi0-wifi
SRC_URI_append_raspberrypi0-wifi = " ${BCM_BT_SOURCES}"
@@ -48,8 +35,6 @@ do_install_append_raspberrypi0-wifi() {
enable_bcm_bluetooth
}
FILES_${PN}_append_raspberrypi0-wifi = " ${BCM_BT_FIRMWARE}"
SYSTEMD_SERVICE_${PN}_append_raspberrypi0-wifi = " ${BCM_BT_SERVICE}"
RDEPENDS_${PN}_append_raspberrypi0-wifi = " udev-rules-rpi"
RDEPENDS_${PN}_append_raspberrypi0-wifi = " udev-rules-rpi bluez-firmware-raspbian"