summaryrefslogtreecommitdiff
path: root/meta-fii/meta-kudo/recipes-phosphor/fans/pwm-init.bb
blob: c380feba3093243ff00a6e9e4e9df06a72f30106 (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
27
28
29
SUMMARY = "Initialize PWM sensors"
DESCRIPTION = "Initialize PWM sensors"
LICENSE = "CLOSED"
PR = "r1"

inherit systemd

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

S = "${WORKDIR}"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += " \
    file://pwm_init.service \
    file://bin/pwm_init.sh \
    "

SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_AUTO_ENABLE = "enable"
SYSTEMD_SERVICE_${PN} += "pwm_init.service"

FILES_${PN} += "${bindir}/* ${systemd_system_unitdir}/*"

do_install_append() {
    install -d ${D}${bindir}
    install -m 0755 ${S}/bin/* ${D}${bindir}/
    install -d ${D}${systemd_system_unitdir}
    install -m 0644 ${S}/*.service ${D}${systemd_system_unitdir}
}