blob: 716251ed7d4967e391fe23f19d7f30d97b96beab [file] [log] [blame]
Delphine CC Chiubed86692023-02-22 13:17:37 +08001SUMMARY = "Initialize system state"
2DESCRIPTION = "Initialize system state"
3LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
5
6inherit pkgconfig
7inherit systemd
8inherit obmc-phosphor-systemd
9
10RDEPENDS:${PN} += "bash"
11
12SRC_URI += " \
13 file://greatlakes-system-state-init \
14 file://greatlakes-system-state-init@.service \
15 "
16
17do_install() {
18 install -d ${D}${libexecdir}/${PN}
19 install -m 0755 ${WORKDIR}/greatlakes-system-state-init ${D}${libexecdir}/${PN}/
20}
21
22TGT = "${SYSTEMD_DEFAULT_TARGET}"
23GREATLAKES_SYS_ST_INIT_INSTFMT="../greatlakes-system-state-init@.service:${TGT}.wants/greatlakes-system-state-init@{0}.service"
24
25SYSTEMD_SERVICE:${PN} += "greatlakes-system-state-init@.service"
26SYSTEMD_LINK:${PN} += "${@compose_list(d, 'GREATLAKES_SYS_ST_INIT_INSTFMT', 'OBMC_HOST_INSTANCES')}"