summaryrefslogtreecommitdiff
path: root/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-virtual-sensor_%.bbappend
blob: 77546694ec52c562437c8a7c3c0258e0e5f4d797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FILESEXTRAPATHS_prepend_gbs := "${THISDIR}/${PN}:"

SRC_URI_append_gbs = " file://config-virtual-sensor.json \
                       file://phosphor-virtual-sensor.service.replace \
                       file://setMaxMinValue.sh \
                     "

RDEPENDS_${PN}_append_gbs = "bash"

do_install_append_gbs() {
    install -d ${D}${bindir}
    install -m 0755 ${WORKDIR}/setMaxMinValue.sh ${D}${bindir}/

    install -d ${D}${datadir}/${PN}
    install -m 0644 -D ${WORKDIR}/config-virtual-sensor.json \
        ${D}${datadir}/${PN}/virtual_sensor_config.json

    install -d ${D}${systemd_system_unitdir}
    install -m 0644 ${WORKDIR}/${PN}.service.replace \
        ${D}${systemd_system_unitdir}/${PN}.service
}