summaryrefslogtreecommitdiff
path: root/meta-facebook/recipes-fb/fb-powerctrl/fb-powerctrl.bb
blob: ee720216401e7f86041bffb697d99547f928d4cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FILESEXTRAPATHS:append := "${THISDIR}/files:"

inherit obmc-phosphor-systemd
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=a8328fd2a610bf4527feedcaa3ae3d14"

S = "${WORKDIR}"

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

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}/
}