summaryrefslogtreecommitdiffstats
path: root/meta-facebook/meta-tiogapass/recipes-fbtp/fb-powerctrl/fb-powerctrl.bb
blob: 37fa835886f7b837d89e65aaf5a3af7ad547003d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FILESEXTRAPATHS_append := "${THISDIR}/files:"

inherit systemd

S = "${WORKDIR}/"

SRC_URI = "file://setup_gpio.sh \
           file://power-util \
           file://host-gpio.service \
           file://host-poweroff.service \
           file://host-poweron.service"

DEPENDS = "systemd"
RDEPENDS_${PN} = "bash"

SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = "host-gpio.service host-poweron.service host-poweroff.service"

do_install() {
    install -d ${D}/usr/sbin
    install -m 0755 ${S}setup_gpio.sh ${D}/${sbindir}/
    install -m 0755 ${S}power-util ${D}/${sbindir}/
}
OpenPOWER on IntegriCloud