1 SUMMARY = "Helper for enabling UART connected HCI Bluetooth devices"
3 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
5 inherit systemd allarch
7 SRC_URI = "file://hci-uart-helper.service \
8 file://hci-uart-helper.sh \
11 COMPATIBLE_MACHINE = "imx8mq-evk"
13 do_configure[noexec] = "1"
14 do_compile[noexec] = "1"
17 # Install helper script
18 install -d ${D}${sbindir}
19 install -m 0755 ${WORKDIR}/hci-uart-helper.sh ${D}${sbindir}/
21 # Install systemd unit
22 install -d ${D}${systemd_system_unitdir}/
23 install -m 0644 ${WORKDIR}/hci-uart-helper.service ${D}${systemd_system_unitdir}/
24 install -d ${D}${systemd_system_unitdir}/bluetooth.service.wants
25 ln -s ../hci-uart-helper.service ${D}${systemd_system_unitdir}/bluetooth.service.wants/
28 FILES:${PN} += "${systemd_system_unitdir}"
30 RDEPENDS:${PN} += "bluez5"