Squashed 'import-layers/meta-raspberrypi/' content from commit 2745399
Change-Id: I8a89d81813dea98209d089ef500a403ea4da5d9d
git-subtree-dir: import-layers/meta-raspberrypi
git-subtree-split: 2745399f75d7564fcc586d0365ff73be47849d0e
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/import-layers/meta-raspberrypi/recipes-connectivity/bluez5/bluez5_%.bbappend b/import-layers/meta-raspberrypi/recipes-connectivity/bluez5/bluez5_%.bbappend
new file mode 100644
index 0000000..89798a4
--- /dev/null
+++ b/import-layers/meta-raspberrypi/recipes-connectivity/bluez5/bluez5_%.bbappend
@@ -0,0 +1,26 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI_append_raspberrypi3 = " \
+ file://BCM43430A1.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 \
+ file://0004-Move-the-43xx-firmware-into-lib-firmware.patch \
+ file://brcm43438.service \
+ "
+
+do_install_append_raspberrypi3() {
+ install -d ${D}/lib/firmware/brcm/
+ install -m 0644 ${WORKDIR}/BCM43430A1.hcd ${D}/lib/firmware/brcm/BCM43430A1.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
+}
+
+FILES_${PN}_append_raspberrypi3 = " \
+ /lib/firmware/brcm/BCM43430A1.hcd \
+ "
+
+SYSTEMD_SERVICE_${PN}_raspberrypi3 += "brcm43438.service"