aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/meta-freescale-layer/recipes-connectivity/hci-uart-helper/hci-uart-helper_1.0.bb
blob: e497a4a2152d20030795a83ecb21454af0155585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
SUMMARY     = "Helper for enabling UART connected HCI Bluetooth devices"
LICENSE     = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

inherit systemd allarch

SRC_URI = "file://hci-uart-helper.service \
           file://hci-uart-helper.sh \
"

COMPATIBLE_MACHINE = "imx8mqevk"

do_configure[noexec] = "1"
do_compile[noexec] = "1"

do_install() {
    # Install helper script
    install -d ${D}${sbindir}
    install -m 0755 ${WORKDIR}/hci-uart-helper.sh ${D}${sbindir}/

    # Install systemd unit
    install -d ${D}${systemd_system_unitdir}/
    install -m 0644 ${WORKDIR}/hci-uart-helper.service ${D}${systemd_system_unitdir}/
    install -d ${D}${systemd_system_unitdir}/bluetooth.service.wants
    ln -s ../hci-uart-helper.service ${D}${systemd_system_unitdir}/bluetooth.service.wants/
}

FILES_${PN} += "${systemd_system_unitdir}"

RDEPENDS_${PN} += "bluez5"