blob: df3bc74ba45c73e1126be90d922ab8b7e8968b97 [file] [log] [blame]
David Wang026925d2021-08-13 11:39:20 +08001FILESEXTRAPATHS:append := "${THISDIR}/files:"
Brad Bishop74c51e92018-11-05 20:47:38 -08002LICENSE = "Apache-2.0"
Brad Bishop07d2b9d2019-09-13 13:04:22 -04003LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
Patrick Ventureccd06d22017-04-10 15:21:32 -07004
5inherit systemd
Patrick Ventureccd06d22017-04-10 15:21:32 -07006inherit obmc-phosphor-systemd
7
David Wang026925d2021-08-13 11:39:20 +08008S = "${WORKDIR}"
Patrick Ventureccd06d22017-04-10 15:21:32 -07009
10SRC_URI = "file://init_once.sh \
11 file://poweroff.sh \
12 file://poweron.sh \
13 file://host-gpio.service \
14 file://host-poweroff.service \
15 file://host-poweron.service"
16
17DEPENDS = "systemd"
David Wang026925d2021-08-13 11:39:20 +080018RDEPENDS:${PN} = "bash"
Patrick Ventureccd06d22017-04-10 15:21:32 -070019
20SYSTEMD_PACKAGES = "${PN}"
David Wang026925d2021-08-13 11:39:20 +080021SYSTEMD_SERVICE:${PN} = "host-gpio.service host-poweron.service host-poweroff.service"
Patrick Ventureccd06d22017-04-10 15:21:32 -070022
23do_install() {
Patrick Venture29e35282019-04-10 07:34:36 -070024 install -d ${D}/${bindir}
Peter Foleyf966d3c2022-02-09 15:30:01 +000025 install -m 0755 ${S}/init_once.sh ${D}/${bindir}/
26 install -m 0755 ${S}/poweroff.sh ${D}/${bindir}/
27 install -m 0755 ${S}/poweron.sh ${D}/${bindir}/
Patrick Ventureccd06d22017-04-10 15:21:32 -070028}