summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/android-tools/android-tools-conf-configfs_1.0.bb
blob: 3f9d49a2d293f5e7b3d94325d57d5512126eb3b3 (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
31
32
33
34
35
DESCRIPTION = "Different utilities from Android - corressponding configuration files for using ConfigFS"
SECTION = "console/utils"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = " \
    file://android-gadget-setup \
    file://android-gadget-start \
    file://android-gadget-cleanup \
    file://10-adbd-configfs.conf \
"

PACKAGE_ARCH = "${MACHINE_ARCH}"

do_install() {
    install -d ${D}${bindir}
    install -m 0755 ${WORKDIR}/android-gadget-setup ${D}${bindir}
    install -m 0755 ${WORKDIR}/android-gadget-start ${D}${bindir}
    install -m 0755 ${WORKDIR}/android-gadget-cleanup ${D}${bindir}

    if [ -r ${WORKDIR}/android-gadget-setup.machine ] ; then
	install -d ${D}${sysconfdir}
	install -m 0644 ${WORKDIR}/android-gadget-setup.machine ${D}${sysconfdir}
    fi

    install -d ${D}${systemd_unitdir}/system/android-tools-adbd.service.d
    install -m 0644 ${WORKDIR}/10-adbd-configfs.conf ${D}${systemd_unitdir}/system/android-tools-adbd.service.d
}

FILES:${PN} += " \
    ${systemd_unitdir}/system/ \
"

PROVIDES += "android-tools-conf"
RPROVIDES:${PN} = "android-tools-conf"