diff options
author | Peter A. Bigot <pab@pabigot.com> | 2018-11-14 07:48:51 -0600 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2018-11-23 16:25:34 +0200 |
commit | f752e9238366db7a6e134bbc00ef1f7697cb7eba (patch) | |
tree | d66af7c4f2c9c152711fa9a78497f6ffc93ddeb7 /recipes-connectivity/bluez5 | |
parent | bfc35b773ff405394d066d7d8efb32ced3ac0410 (diff) | |
download | meta-raspberrypi-f752e9238366db7a6e134bbc00ef1f7697cb7eba.tar.gz |
bluez5: use pi-bluetooth package for startup infrastructure
RPi-Distro has augmented their bluetooth infrastructure to support new
features. It also correctly handles restart, which fixes problems when
faults cause hciattach to exit. Replace brcm43438.service with the
upstream ones.
Resolves: #330
Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Diffstat (limited to 'recipes-connectivity/bluez5')
-rw-r--r-- | recipes-connectivity/bluez5/bluez5/brcm43438.service | 14 | ||||
-rw-r--r-- | recipes-connectivity/bluez5/bluez5_%.bbappend | 35 |
2 files changed, 3 insertions, 46 deletions
diff --git a/recipes-connectivity/bluez5/bluez5/brcm43438.service b/recipes-connectivity/bluez5/bluez5/brcm43438.service deleted file mode 100644 index a51f6bc..0000000 --- a/recipes-connectivity/bluez5/bluez5/brcm43438.service +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | [Unit] | ||
2 | Description=Broadcom BCM43438 bluetooth HCI | ||
3 | ConditionPathIsDirectory=/proc/device-tree/soc/gpio@7e200000/bt_pins | ||
4 | Before=bluetooth.service | ||
5 | BindsTo=dev-serial1.device | ||
6 | After=dev-serial1.device | ||
7 | |||
8 | [Service] | ||
9 | Type=oneshot | ||
10 | RemainAfterExit=yes | ||
11 | ExecStart=/usr/bin/btuart | ||
12 | |||
13 | [Install] | ||
14 | WantedBy=multi-user.target | ||
diff --git a/recipes-connectivity/bluez5/bluez5_%.bbappend b/recipes-connectivity/bluez5/bluez5_%.bbappend index d1b84df..6651fb8 100644 --- a/recipes-connectivity/bluez5/bluez5_%.bbappend +++ b/recipes-connectivity/bluez5/bluez5_%.bbappend | |||
@@ -5,41 +5,12 @@ BCM_BT_SOURCES = " \ | |||
5 | file://0002-bcm43xx-The-UART-speed-must-be-reset-after-the-firmw.patch \ | 5 | file://0002-bcm43xx-The-UART-speed-must-be-reset-after-the-firmw.patch \ |
6 | file://0003-Increase-firmware-load-timeout-to-30s.patch \ | 6 | file://0003-Increase-firmware-load-timeout-to-30s.patch \ |
7 | file://0004-Move-the-43xx-firmware-into-lib-firmware.patch \ | 7 | file://0004-Move-the-43xx-firmware-into-lib-firmware.patch \ |
8 | file://brcm43438.service \ | ||
9 | " | ||
10 | |||
11 | BCM_BT_SERVICE = "brcm43438.service" | ||
12 | |||
13 | enable_bcm_bluetooth() { | ||
14 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
15 | install -d ${D}${systemd_unitdir}/system | ||
16 | install -m 0644 ${WORKDIR}/${BCM_BT_SERVICE} ${D}${systemd_unitdir}/system | ||
17 | fi | ||
18 | } | ||
19 | |||
20 | BCM_BT_RDEPENDS = "\ | ||
21 | udev-rules-rpi \ | ||
22 | pi-bluetooth \ | ||
23 | " | 8 | " |
24 | 9 | ||
25 | # for raspberrypi3 | 10 | BCM_BT_RDEPENDS = "pi-bluetooth" |
26 | SRC_URI_append_raspberrypi3 = " ${BCM_BT_SOURCES}" | ||
27 | |||
28 | do_install_append_raspberrypi3() { | ||
29 | enable_bcm_bluetooth | ||
30 | } | ||
31 | |||
32 | SYSTEMD_SERVICE_${PN}_append_raspberrypi3 = " ${BCM_BT_SERVICE}" | ||
33 | 11 | ||
34 | RDEPENDS_${PN}_append_raspberrypi3 = " ${BCM_BT_RDEPENDS}" | ||
35 | |||
36 | # for raspberrypi0-wifi | ||
37 | SRC_URI_append_raspberrypi0-wifi = " ${BCM_BT_SOURCES}" | 12 | SRC_URI_append_raspberrypi0-wifi = " ${BCM_BT_SOURCES}" |
38 | 13 | SRC_URI_append_raspberrypi3 = " ${BCM_BT_SOURCES}" | |
39 | do_install_append_raspberrypi0-wifi() { | ||
40 | enable_bcm_bluetooth | ||
41 | } | ||
42 | |||
43 | SYSTEMD_SERVICE_${PN}_append_raspberrypi0-wifi = " ${BCM_BT_SERVICE}" | ||
44 | 14 | ||
45 | RDEPENDS_${PN}_append_raspberrypi0-wifi = " ${BCM_BT_RDEPENDS}" | 15 | RDEPENDS_${PN}_append_raspberrypi0-wifi = " ${BCM_BT_RDEPENDS}" |
16 | RDEPENDS_${PN}_append_raspberrypi3 = " ${BCM_BT_RDEPENDS}" | ||