summaryrefslogtreecommitdiff
path: root/meta-ibm/meta-sbp1/recipes-phosphor/gpio/phosphor-gpio-monitor_%.bbappend
blob: 400f9df09cb26104bc01dac8b98c1aa9100ac65d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
inherit systemd
inherit obmc-phosphor-systemd

SRC_URI += " \
            file://phosphor-multi-gpio-presence.json \
            file://dependencies.conf \
           "

FILES:${PN}-presence += " ${datadir}/${PN}/phosphor-multi-gpio-presence.json \
                          ${systemd_system_unitdir}/phosphor-multi-gpio-presence.service.d/dependencies.conf \
                       "

do_install:append() {
    rm -f ${D}${datadir}/${PN}/phosphor-multi-gpio-presence.json
    install -m 0644 ${WORKDIR}/phosphor-multi-gpio-presence.json ${D}${datadir}/${PN}/
    install -d ${D}${systemd_system_unitdir}/phosphor-multi-gpio-presence.service.d/
    install -m 644 -D ${WORKDIR}/dependencies.conf ${D}${systemd_system_unitdir}/phosphor-multi-gpio-presence.service.d/dependencies.conf
}