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 \ |
Chris Wang | 0598b57 | 2024-03-12 17:29:15 +0800 | [diff] [blame] | 6 | file://configure-nic-mctp-endpoint.sh \ |
| 7 | file://setup-nic-endpoint-slot@.service \ |
| 8 | file://remove-nic-endpoint-slot@.service \ |
Delphine CC Chiu | 9d5d248 | 2023-10-18 18:39:21 +0800 | [diff] [blame] | 9 | file://set-button-sled.service \ |
Delphine CC Chiu | 6e311d3 | 2023-11-15 15:40:58 +0800 | [diff] [blame] | 10 | file://probe-slot-device@.service \ |
| 11 | file://probe-slot-device \ |
Delphine CC Chiu | 085d619 | 2023-11-24 16:02:08 +0800 | [diff] [blame] | 12 | file://rescan-fru-device@.service \ |
| 13 | file://rescan-fru-device \ |
Delphine CC Chiu | 2f1f94c | 2024-01-12 17:22:20 +0800 | [diff] [blame] | 14 | file://slot-hot-plug@.service \ |
Delphine CC Chiu | 9d5d248 | 2023-10-18 18:39:21 +0800 | [diff] [blame] | 15 | " |
| 16 | |
Patrick Williams | a2fb20c | 2024-02-05 14:11:29 -0600 | [diff] [blame] | 17 | RDEPENDS:${PN}:append = " bash" |
Delphine CC Chiu | 6e311d3 | 2023-11-15 15:40:58 +0800 | [diff] [blame] | 18 | |
Delphine CC Chiu | 9d5d248 | 2023-10-18 18:39:21 +0800 | [diff] [blame] | 19 | FILES:${PN} += "${systemd_system_unitdir}/*" |
| 20 | |
| 21 | SYSTEMD_SERVICE:${PN} += " \ |
| 22 | set-button-sled.service \ |
Delphine CC Chiu | 6e311d3 | 2023-11-15 15:40:58 +0800 | [diff] [blame] | 23 | probe-slot-device@.service \ |
Delphine CC Chiu | 085d619 | 2023-11-24 16:02:08 +0800 | [diff] [blame] | 24 | rescan-fru-device@.service \ |
Delphine CC Chiu | 2f1f94c | 2024-01-12 17:22:20 +0800 | [diff] [blame] | 25 | slot-hot-plug@.service \ |
Chris Wang | 0598b57 | 2024-03-12 17:29:15 +0800 | [diff] [blame] | 26 | setup-nic-endpoint-slot@.service \ |
| 27 | remove-nic-endpoint-slot@.service \ |
Delphine CC Chiu | 9d5d248 | 2023-10-18 18:39:21 +0800 | [diff] [blame] | 28 | " |
Delphine CC Chiu | 6e311d3 | 2023-11-15 15:40:58 +0800 | [diff] [blame] | 29 | |
Delphine CC Chiu | 9d5d248 | 2023-10-18 18:39:21 +0800 | [diff] [blame] | 30 | SYSTEMD_AUTO_ENABLE = "enable" |
| 31 | |
| 32 | do_install:append:() { |
| 33 | install -d ${D}${datadir}/phosphor-gpio-monitor |
| 34 | install -m 0644 ${WORKDIR}/yosemite4-phosphor-multi-gpio-monitor.json \ |
| 35 | ${D}${datadir}/phosphor-gpio-monitor/phosphor-multi-gpio-monitor.json |
| 36 | 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] | 37 | 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] | 38 | 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] | 39 | install -m 0644 ${WORKDIR}/slot-hot-plug@.service ${D}${systemd_system_unitdir}/slot-hot-plug@.service |
Chris Wang | 0598b57 | 2024-03-12 17:29:15 +0800 | [diff] [blame] | 40 | install -m 0644 ${WORKDIR}/setup-nic-endpoint-slot@.service ${D}${systemd_system_unitdir}/ |
| 41 | install -m 0644 ${WORKDIR}/remove-nic-endpoint-slot@.service ${D}${systemd_system_unitdir}/ |
Delphine CC Chiu | 6e311d3 | 2023-11-15 15:40:58 +0800 | [diff] [blame] | 42 | install -d ${D}${libexecdir}/${PN} |
Patrick Williams | d313524 | 2024-01-19 16:45:58 -0600 | [diff] [blame] | 43 | install -m 0755 ${WORKDIR}/probe-slot-device ${D}${libexecdir}/${PN}/ |
| 44 | install -m 0755 ${WORKDIR}/rescan-fru-device ${D}${libexecdir}/${PN}/ |
Chris Wang | 0598b57 | 2024-03-12 17:29:15 +0800 | [diff] [blame] | 45 | install -d ${D}/${bindir} |
| 46 | install -m 0755 ${WORKDIR}/configure-nic-mctp-endpoint.sh ${D}/${bindir}/ |
Delphine CC Chiu | 9d5d248 | 2023-10-18 18:39:21 +0800 | [diff] [blame] | 47 | } |