summaryrefslogtreecommitdiffstats
path: root/meta-oem-production-readiness/meta-agl-basesystem/recipes-core/agl-systemd/agl-systemd_1.0.0.bb
blob: 4de2b702554fd9b2cfe0ac3e52b3b6966f57d703 (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
36
37
38
SUMMARY = "Systemd related file for launching sample application"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"

PV = "1.0.0+gitr${SRCPV}"
SRC_URI = "git://gerrit.automotivelinux.org/gerrit/staging/basesystem.git;protocol=https;branch=${AGL_BRANCH}"
SRCREV := "${BASESYSTEM_REVISION}"

S = "${WORKDIR}/git/agl-systemd"

inherit systemd

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

do_install() {
    install -d ${D}/etc/systemd/system/
    install -m 644 ${S}/launch_sm.service ${D}/etc/systemd/system/
    install -m 644 ${S}/systemd-udev-trigger.service ${D}/etc/systemd/system/
    install -m 644 ${S}/setup_refhw.service ${D}/etc/systemd/system/

    install -d ${D}${CONFDIR}/
    install -m 644 ${S}/env.txt ${D}${CONFDIR}/

    install -d ${D}${bindir}
    install -m 755 ${S}/tool_9E_SI/*.sh ${D}${bindir}/

    install -d ${D}/lib/udev/rules.d
    install -m 644 ${S}/99-basesystem.rules ${D}/lib/udev/rules.d/
}

RDEPENDS_${PN} += "bash"

SYSTEMD_SERVICE_${PN} = " \
    launch_sm.service \
    systemd-udev-trigger.service \
    setup_refhw.service \
"