Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 2 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 3 | BCM_BT_SOURCES = " \ |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 4 | file://BCM43430A1.hcd \ |
| 5 | file://0001-bcm43xx-Add-bcm43xx-3wire-variant.patch \ |
| 6 | file://0002-bcm43xx-The-UART-speed-must-be-reset-after-the-firmw.patch \ |
| 7 | file://0003-Increase-firmware-load-timeout-to-30s.patch \ |
| 8 | file://0004-Move-the-43xx-firmware-into-lib-firmware.patch \ |
| 9 | file://brcm43438.service \ |
| 10 | " |
| 11 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 12 | enable_bcm_bluetooth() { |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 13 | install -d ${D}/lib/firmware/brcm/ |
| 14 | install -m 0644 ${WORKDIR}/BCM43430A1.hcd ${D}/lib/firmware/brcm/BCM43430A1.hcd |
| 15 | |
| 16 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
| 17 | install -d ${D}${systemd_unitdir}/system |
| 18 | install -m 0644 ${WORKDIR}/brcm43438.service ${D}${systemd_unitdir}/system |
| 19 | fi |
| 20 | } |
| 21 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 22 | BCM_BT_FIRMWARE = " \ |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 23 | /lib/firmware/brcm/BCM43430A1.hcd \ |
| 24 | " |
| 25 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 26 | BCM_BT_SERVICE = " brcm43438.service" |
| 27 | |
| 28 | # for raspberrypi3 |
| 29 | SRC_URI_append_raspberrypi3 = " ${BCM_BT_SOURCES}" |
| 30 | |
| 31 | do_install_append_raspberrypi3() { |
| 32 | enable_bcm_bluetooth |
| 33 | } |
| 34 | |
| 35 | FILES_${PN}_append_raspberrypi3 = " ${BCM_BT_FIRMWARE}" |
| 36 | |
| 37 | SYSTEMD_SERVICE_${PN}_append_raspberrypi3 = " ${BCM_BT_SERVICE}" |
| 38 | |
| 39 | # for raspberrypi0-wifi |
| 40 | SRC_URI_append_raspberrypi0-wifi = " ${BCM_BT_SOURCES}" |
| 41 | |
| 42 | do_install_append_raspberrypi0-wifi() { |
| 43 | enable_bcm_bluetooth |
| 44 | } |
| 45 | |
| 46 | FILES_${PN}_append_raspberrypi0-wifi = " ${BCM_BT_FIRMWARE}" |
| 47 | |
| 48 | SYSTEMD_SERVICE_${PN}_append_raspberrypi0-wifi = " ${BCM_BT_SERVICE}" |