1e67e2287SmustafaSUMMARY = "Initialize PWM sensors" 2e67e2287SmustafaDESCRIPTION = "Initialize PWM sensors" 3e67e2287SmustafaLICENSE = "CLOSED" 4e67e2287SmustafaPR = "r1" 5e67e2287Smustafa 6e67e2287Smustafainherit systemd 7e67e2287Smustafa 8e67e2287SmustafaDEPENDS = "systemd" 9f59d0178SMohaimen AlsamaraiRDEPENDS:${PN} = "bash" 10e67e2287Smustafa 11e67e2287SmustafaS = "${WORKDIR}" 12f59d0178SMohaimen AlsamaraiFILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 13e67e2287SmustafaSRC_URI += " \ 14e67e2287Smustafa file://pwm_init.service \ 15e67e2287Smustafa file://bin/pwm_init.sh \ 16e67e2287Smustafa " 17e67e2287Smustafa 18e67e2287SmustafaSYSTEMD_PACKAGES = "${PN}" 19e67e2287SmustafaSYSTEMD_AUTO_ENABLE = "enable" 20f59d0178SMohaimen AlsamaraiSYSTEMD_SERVICE:${PN} += "pwm_init.service" 21e67e2287Smustafa 22f59d0178SMohaimen AlsamaraiFILES:${PN} += "${bindir}/* ${systemd_system_unitdir}/*" 23e67e2287Smustafa 24f59d0178SMohaimen Alsamaraido_install:append() { 25*2adad365SCharles Boyer install -d ${D}${libexecdir}/${PN} 26*2adad365SCharles Boyer install -m 0755 ${S}/bin/* ${D}${libexecdir}/${PN}/ 27e67e2287Smustafa install -d ${D}${systemd_system_unitdir} 28e67e2287Smustafa install -m 0644 ${S}/*.service ${D}${systemd_system_unitdir} 29e67e2287Smustafa} 30