mirror of
git://git.yoctoproject.org/meta-raspberrypi
synced 2026-09-26 17:16:08 +00:00
functions/variables in this bbappend implemented for only raspberrypi3. But these must be able to used to enabling bluetooth on another raspberrypi that has bluetooth feature such as raspberrypi0-wifi. The simple solution is a duplicating these but it is not good ideas for maintainance. Add functions/variables follows to simplify to enabling bluetooth on another raspberrypi that has bluetooth. - BCM_BT_SOURCES - enable_bcm_bluetooth() - BCM_BT_FIRMWARE - BCM_BT_SERVICE Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
|
|
|
BCM_BT_SOURCES = " \
|
|
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 \
|
|
"
|
|
|
|
enable_bcm_bluetooth() {
|
|
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
|
|
}
|
|
|
|
BCM_BT_FIRMWARE = " \
|
|
/lib/firmware/brcm/BCM43430A1.hcd \
|
|
"
|
|
|
|
BCM_BT_SERVICE = " brcm43438.service"
|
|
|
|
SRC_URI_append_raspberrypi3 = " ${BCM_BT_SOURCES}"
|
|
|
|
do_install_append_raspberrypi3() {
|
|
enable_bcm_bluetooth
|
|
}
|
|
|
|
FILES_${PN}_append_raspberrypi3 = " ${BCM_BT_FIRMWARE}"
|
|
|
|
SYSTEMD_SERVICE_${PN}_append_raspberrypi3 = " ${BCM_BT_SERVICE}"
|