bluez5: Use serial device alias for BT device

Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
This commit is contained in:
Andrei Gherzan 2018-01-26 15:10:23 +00:00
parent 0202bc2881
commit 6235b0a854
2 changed files with 5 additions and 1 deletions

View File

@ -6,7 +6,7 @@ After=dev-ttyAMA0.device
[Service]
Type=simple
ExecStart=/usr/bin/hciattach -n /dev/ttyAMA0 bcm43xx 921600 noflow -
ExecStart=/usr/bin/hciattach -n /dev/serial1 bcm43xx 921600 noflow -
[Install]
WantedBy=multi-user.target

View File

@ -36,6 +36,8 @@ FILES_${PN}_append_raspberrypi3 = " ${BCM_BT_FIRMWARE}"
SYSTEMD_SERVICE_${PN}_append_raspberrypi3 = " ${BCM_BT_SERVICE}"
RDEPENDS_${PN}_append_raspberrypi3 = " udev-rules-rpi"
# for raspberrypi0-wifi
SRC_URI_append_raspberrypi0-wifi = " ${BCM_BT_SOURCES}"
@ -46,3 +48,5 @@ do_install_append_raspberrypi0-wifi() {
FILES_${PN}_append_raspberrypi0-wifi = " ${BCM_BT_FIRMWARE}"
SYSTEMD_SERVICE_${PN}_append_raspberrypi0-wifi = " ${BCM_BT_SERVICE}"
RDEPENDS_${PN}_append_raspebrrypi0-wifi = " udev-rules-rpi"