Initial commit
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
FILESEXTRAPATHS:prepend:olympus-nuvoton := "${THISDIR}/${PN}:"
|
||||
|
||||
SRC_URI:append:olympus-nuvoton = " file://config-olympus-nuvoton.json"
|
||||
SRC_URI:append:olympus-nuvoton = " file://fan-full-speed.sh"
|
||||
SRC_URI:append:olympus-nuvoton = " file://phosphor-pid-control.service"
|
||||
SRC_URI:append:olympus-nuvoton = " file://fan-reboot-control.service"
|
||||
|
||||
FILES:${PN}:append:olympus-nuvoton = " ${bindir}/fan-full-speed.sh"
|
||||
FILES:${PN}:append:olympus-nuvoton = " ${datadir}/swampd/config.json"
|
||||
|
||||
RDEPENDS:${PN} += "bash"
|
||||
|
||||
SYSTEMD_SERVICE:${PN}:append:olympus-nuvoton = " phosphor-pid-control.service"
|
||||
SYSTEMD_SERVICE:${PN}:append:olympus-nuvoton = " fan-reboot-control.service"
|
||||
|
||||
do_install:append:olympus-nuvoton() {
|
||||
install -d ${D}/${bindir}
|
||||
install -m 0755 ${WORKDIR}/fan-full-speed.sh ${D}/${bindir}
|
||||
|
||||
install -d ${D}${datadir}/swampd
|
||||
install -m 0644 -D ${WORKDIR}/config-olympus-nuvoton.json \
|
||||
${D}${datadir}/swampd/config.json
|
||||
|
||||
install -d ${D}${systemd_unitdir}/system/
|
||||
install -m 0644 ${WORKDIR}/phosphor-pid-control.service \
|
||||
${D}${systemd_unitdir}/system
|
||||
install -m 0644 ${WORKDIR}/fan-reboot-control.service \
|
||||
${D}${systemd_unitdir}/system
|
||||
}
|
||||
Reference in New Issue
Block a user