David Wang | 026925d | 2021-08-13 11:39:20 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS:append := "${THISDIR}/files:" |
Brad Bishop | 74c51e9 | 2018-11-05 20:47:38 -0800 | [diff] [blame] | 2 | LICENSE = "Apache-2.0" |
Brad Bishop | 07d2b9d | 2019-09-13 13:04:22 -0400 | [diff] [blame] | 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
Patrick Venture | ccd06d2 | 2017-04-10 15:21:32 -0700 | [diff] [blame] | 4 | |
| 5 | inherit systemd |
Patrick Venture | ccd06d2 | 2017-04-10 15:21:32 -0700 | [diff] [blame] | 6 | inherit obmc-phosphor-systemd |
| 7 | |
David Wang | 026925d | 2021-08-13 11:39:20 +0800 | [diff] [blame] | 8 | S = "${WORKDIR}" |
Patrick Venture | ccd06d2 | 2017-04-10 15:21:32 -0700 | [diff] [blame] | 9 | |
| 10 | SRC_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 | |
| 17 | DEPENDS = "systemd" |
David Wang | 026925d | 2021-08-13 11:39:20 +0800 | [diff] [blame] | 18 | RDEPENDS:${PN} = "bash" |
Patrick Venture | ccd06d2 | 2017-04-10 15:21:32 -0700 | [diff] [blame] | 19 | |
| 20 | SYSTEMD_PACKAGES = "${PN}" |
David Wang | 026925d | 2021-08-13 11:39:20 +0800 | [diff] [blame] | 21 | SYSTEMD_SERVICE:${PN} = "host-gpio.service host-poweron.service host-poweroff.service" |
Patrick Venture | ccd06d2 | 2017-04-10 15:21:32 -0700 | [diff] [blame] | 22 | |
| 23 | do_install() { |
Patrick Venture | 29e3528 | 2019-04-10 07:34:36 -0700 | [diff] [blame] | 24 | install -d ${D}/${bindir} |
Peter Foley | f966d3c | 2022-02-09 15:30:01 +0000 | [diff] [blame^] | 25 | 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 Venture | ccd06d2 | 2017-04-10 15:21:32 -0700 | [diff] [blame] | 28 | } |