Delphine CC Chiu | 9d5d248 | 2023-10-18 18:39:21 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
| 2 | |
| 3 | inherit obmc-phosphor-systemd systemd |
| 4 | |
| 5 | SRC_URI += "file://yosemite4-phosphor-multi-gpio-monitor.json \ |
| 6 | file://set-button-sled.service \ |
Delphine CC Chiu | 6e311d3 | 2023-11-15 15:40:58 +0800 | [diff] [blame] | 7 | file://probe-slot-device@.service \ |
| 8 | file://probe-slot-device \ |
Delphine CC Chiu | 085d619 | 2023-11-24 16:02:08 +0800 | [diff] [blame] | 9 | file://rescan-fru-device@.service \ |
| 10 | file://rescan-fru-device \ |
Delphine CC Chiu | 2f1f94c | 2024-01-12 17:22:20 +0800 | [diff] [blame] | 11 | file://slot-hot-plug@.service \ |
Delphine CC Chiu | 9d5d248 | 2023-10-18 18:39:21 +0800 | [diff] [blame] | 12 | " |
| 13 | |
Patrick Williams | a2fb20c | 2024-02-05 14:11:29 -0600 | [diff] [blame^] | 14 | RDEPENDS:${PN}:append = " bash" |
Delphine CC Chiu | 6e311d3 | 2023-11-15 15:40:58 +0800 | [diff] [blame] | 15 | |
Delphine CC Chiu | 9d5d248 | 2023-10-18 18:39:21 +0800 | [diff] [blame] | 16 | FILES:${PN} += "${systemd_system_unitdir}/*" |
| 17 | |
| 18 | SYSTEMD_SERVICE:${PN} += " \ |
| 19 | set-button-sled.service \ |
Delphine CC Chiu | 6e311d3 | 2023-11-15 15:40:58 +0800 | [diff] [blame] | 20 | probe-slot-device@.service \ |
Delphine CC Chiu | 085d619 | 2023-11-24 16:02:08 +0800 | [diff] [blame] | 21 | rescan-fru-device@.service \ |
Delphine CC Chiu | 2f1f94c | 2024-01-12 17:22:20 +0800 | [diff] [blame] | 22 | slot-hot-plug@.service \ |
Delphine CC Chiu | 9d5d248 | 2023-10-18 18:39:21 +0800 | [diff] [blame] | 23 | " |
Delphine CC Chiu | 6e311d3 | 2023-11-15 15:40:58 +0800 | [diff] [blame] | 24 | |
Delphine CC Chiu | 9d5d248 | 2023-10-18 18:39:21 +0800 | [diff] [blame] | 25 | SYSTEMD_AUTO_ENABLE = "enable" |
| 26 | |
| 27 | do_install:append:() { |
| 28 | install -d ${D}${datadir}/phosphor-gpio-monitor |
| 29 | install -m 0644 ${WORKDIR}/yosemite4-phosphor-multi-gpio-monitor.json \ |
| 30 | ${D}${datadir}/phosphor-gpio-monitor/phosphor-multi-gpio-monitor.json |
| 31 | install -m 0644 ${WORKDIR}/set-button-sled.service ${D}${systemd_system_unitdir}/set-button-sled.service |
Delphine CC Chiu | 6e311d3 | 2023-11-15 15:40:58 +0800 | [diff] [blame] | 32 | install -m 0644 ${WORKDIR}/probe-slot-device@.service ${D}${systemd_system_unitdir}/probe-slot-device@.service |
Delphine CC Chiu | 085d619 | 2023-11-24 16:02:08 +0800 | [diff] [blame] | 33 | install -m 0644 ${WORKDIR}/rescan-fru-device@.service ${D}${systemd_system_unitdir}/rescan-fru-device@.service |
Delphine CC Chiu | 2f1f94c | 2024-01-12 17:22:20 +0800 | [diff] [blame] | 34 | install -m 0644 ${WORKDIR}/slot-hot-plug@.service ${D}${systemd_system_unitdir}/slot-hot-plug@.service |
Delphine CC Chiu | 6e311d3 | 2023-11-15 15:40:58 +0800 | [diff] [blame] | 35 | install -d ${D}${libexecdir}/${PN} |
Patrick Williams | d313524 | 2024-01-19 16:45:58 -0600 | [diff] [blame] | 36 | install -m 0755 ${WORKDIR}/probe-slot-device ${D}${libexecdir}/${PN}/ |
| 37 | install -m 0755 ${WORKDIR}/rescan-fru-device ${D}${libexecdir}/${PN}/ |
Delphine CC Chiu | 9d5d248 | 2023-10-18 18:39:21 +0800 | [diff] [blame] | 38 | } |