blob: 798bf2bac787d3ed7423ed939f0ed6c10cb4a008 [file] [log] [blame]
Ashwin Murali321eb032022-04-29 14:47:15 -05001SUMMARY = "Initialize PWM sensors"
2DESCRIPTION = "Initialize PWM sensors"
3LICENSE = "CLOSED"
Kyle Niemanaefbb652023-06-30 10:57:34 -05004DEPENDS:append = " systemd"
Ashwin Murali321eb032022-04-29 14:47:15 -05005PR = "r1"
6
Kyle Niemanaefbb652023-06-30 10:57:34 -05007SRC_URI = " \
8 file://pwm_init.service \
9 file://bin/pwm_init.sh \
10"
11
12S = "${WORKDIR}"
13SYSTEMD_AUTO_ENABLE = "enable"
14SYSTEMD_SERVICE:${PN} = " pwm_init.service"
15
Ashwin Murali321eb032022-04-29 14:47:15 -050016inherit systemd
17
Kyle Niemanaefbb652023-06-30 10:57:34 -050018do_install() {
Ashwin Murali321eb032022-04-29 14:47:15 -050019 install -d ${D}${libexecdir}/${PN}
20 install -m 0755 ${S}/bin/* ${D}${libexecdir}/${PN}/
21 install -d ${D}${systemd_system_unitdir}
22 install -m 0644 ${S}/*.service ${D}${systemd_system_unitdir}
23}
Kyle Niemanaefbb652023-06-30 10:57:34 -050024
25RDEPENDS:${PN}:append = " bash"
26
27FILES:${PN}:append = " ${bindir}/* ${systemd_system_unitdir}/*"