blob: ee720216401e7f86041bffb697d99547f928d4cb [file] [log] [blame]
Patrick Williams6f746642021-08-06 07:40:55 -05001FILESEXTRAPATHS:append := "${THISDIR}/files:"
Vijay Khemka45269ba2018-12-13 11:07:06 -08002
Vijay Khemka3becf042019-01-08 10:45:20 -08003inherit obmc-phosphor-systemd
4LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=a8328fd2a610bf4527feedcaa3ae3d14"
Vijay Khemka45269ba2018-12-13 11:07:06 -08006
Patrick Williams1b4a85e2021-01-25 17:06:50 -06007S = "${WORKDIR}"
Vijay Khemka45269ba2018-12-13 11:07:06 -08008
9SRC_URI = "file://setup_gpio.sh \
10 file://power-util \
11 file://host-gpio.service \
12 file://host-poweroff.service \
Vijay Khemka3becf042019-01-08 10:45:20 -080013 file://host-poweron.service \
14 file://LICENSE"
Vijay Khemka45269ba2018-12-13 11:07:06 -080015
16DEPENDS = "systemd"
Patrick Williams6f746642021-08-06 07:40:55 -050017RDEPENDS:${PN} = "bash"
Vijay Khemka45269ba2018-12-13 11:07:06 -080018
19SYSTEMD_PACKAGES = "${PN}"
Patrick Williams6f746642021-08-06 07:40:55 -050020SYSTEMD_SERVICE:${PN} = "host-gpio.service host-poweron.service host-poweroff.service"
Vijay Khemka45269ba2018-12-13 11:07:06 -080021
22do_install() {
23 install -d ${D}/usr/sbin
Patrick Williams1b4a85e2021-01-25 17:06:50 -060024 install -m 0755 ${S}/setup_gpio.sh ${D}/${sbindir}/
25 install -m 0755 ${S}/power-util ${D}/${sbindir}/
Vijay Khemka45269ba2018-12-13 11:07:06 -080026}