mustafa | e67e228 | 2021-03-29 15:08:45 -0500 | [diff] [blame] | 1 | SUMMARY = "Initialize PWM sensors" |
| 2 | DESCRIPTION = "Initialize PWM sensors" |
| 3 | LICENSE = "CLOSED" |
| 4 | PR = "r1" |
| 5 | |
| 6 | inherit systemd |
| 7 | |
| 8 | DEPENDS = "systemd" |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 9 | RDEPENDS:${PN} = "bash" |
mustafa | e67e228 | 2021-03-29 15:08:45 -0500 | [diff] [blame] | 10 | |
| 11 | S = "${WORKDIR}" |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 12 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
mustafa | e67e228 | 2021-03-29 15:08:45 -0500 | [diff] [blame] | 13 | SRC_URI += " \ |
| 14 | file://pwm_init.service \ |
| 15 | file://bin/pwm_init.sh \ |
| 16 | " |
| 17 | |
| 18 | SYSTEMD_PACKAGES = "${PN}" |
| 19 | SYSTEMD_AUTO_ENABLE = "enable" |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 20 | SYSTEMD_SERVICE:${PN} += "pwm_init.service" |
mustafa | e67e228 | 2021-03-29 15:08:45 -0500 | [diff] [blame] | 21 | |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 22 | FILES:${PN} += "${bindir}/* ${systemd_system_unitdir}/*" |
mustafa | e67e228 | 2021-03-29 15:08:45 -0500 | [diff] [blame] | 23 | |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 24 | do_install:append() { |
mustafa | e67e228 | 2021-03-29 15:08:45 -0500 | [diff] [blame] | 25 | install -d ${D}${bindir} |
| 26 | install -m 0755 ${S}/bin/* ${D}${bindir}/ |
| 27 | install -d ${D}${systemd_system_unitdir} |
| 28 | install -m 0644 ${S}/*.service ${D}${systemd_system_unitdir} |
| 29 | } |