mirror of
https://git.yoctoproject.org/meta-raspberrypi
synced 2026-05-07 04:58:12 +00:00
pi-bluetooth: create to provide standard raspbian script for bluetooth setup
Unique bluetooth device addresses are not assigned correctly with some firmware, resulting in a fixed default address. Use the same utility as raspbian does to initialize the device. Closes #236 Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
committed by
Andrei Gherzan
parent
2a0f25a71f
commit
53af636f88
@@ -8,7 +8,7 @@ After=dev-serial1.device
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/hciattach -n /dev/serial1 bcm43xx 921600 noflow -
|
||||
ExecStart=/usr/bin/btuart
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -8,14 +8,20 @@ BCM_BT_SOURCES = " \
|
||||
file://brcm43438.service \
|
||||
"
|
||||
|
||||
BCM_BT_SERVICE = "brcm43438.service"
|
||||
|
||||
enable_bcm_bluetooth() {
|
||||
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
|
||||
install -m 0644 ${WORKDIR}/${BCM_BT_SERVICE} ${D}${systemd_unitdir}/system
|
||||
fi
|
||||
}
|
||||
|
||||
BCM_BT_SERVICE = " brcm43438.service"
|
||||
BCM_BT_RDEPENDS = "\
|
||||
udev-rules-rpi \
|
||||
bluez-firmware-raspbian \
|
||||
pi-bluetooth \
|
||||
"
|
||||
|
||||
# for raspberrypi3
|
||||
SRC_URI_append_raspberrypi3 = " ${BCM_BT_SOURCES}"
|
||||
@@ -26,7 +32,7 @@ do_install_append_raspberrypi3() {
|
||||
|
||||
SYSTEMD_SERVICE_${PN}_append_raspberrypi3 = " ${BCM_BT_SERVICE}"
|
||||
|
||||
RDEPENDS_${PN}_append_raspberrypi3 = " udev-rules-rpi bluez-firmware-raspbian"
|
||||
RDEPENDS_${PN}_append_raspberrypi3 = " ${BCM_BT_RDEPENDS}"
|
||||
|
||||
# for raspberrypi0-wifi
|
||||
SRC_URI_append_raspberrypi0-wifi = " ${BCM_BT_SOURCES}"
|
||||
@@ -37,4 +43,4 @@ do_install_append_raspberrypi0-wifi() {
|
||||
|
||||
SYSTEMD_SERVICE_${PN}_append_raspberrypi0-wifi = " ${BCM_BT_SERVICE}"
|
||||
|
||||
RDEPENDS_${PN}_append_raspberrypi0-wifi = " udev-rules-rpi bluez-firmware-raspbian"
|
||||
RDEPENDS_${PN}_append_raspberrypi0-wifi = " ${BCM_BT_RDEPENDS}"
|
||||
|
||||
Reference in New Issue
Block a user