Tung Nguyen | 8f221bf | 2020-12-16 05:52:18 +0000 | [diff] [blame] | 1 | SUMMARY = "Ampere Computing LLC Host Control Implementation" |
| 2 | DESCRIPTION = "A host control implementation suitable for Ampere Computing LLC's systems" |
| 3 | PR = "r1" |
| 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 6 | |
| 7 | inherit systemd |
| 8 | inherit obmc-phosphor-systemd |
| 9 | |
Tung Nguyen | 8f221bf | 2020-12-16 05:52:18 +0000 | [diff] [blame] | 10 | S = "${WORKDIR}" |
| 11 | |
ThuBaNguyen | 98f43be | 2021-07-01 22:29:49 +0700 | [diff] [blame] | 12 | SRC_URI = " \ |
ThuBaNguyen | 2f95214 | 2021-07-05 13:32:26 +0700 | [diff] [blame] | 13 | file://ampere-host-force-reset@.service \ |
ThuBaNguyen | 7b45282 | 2021-06-06 14:36:07 +0700 | [diff] [blame] | 14 | file://ampere-host-on-host-check@.service \ |
Tung Nguyen | 8f221bf | 2020-12-16 05:52:18 +0000 | [diff] [blame] | 15 | " |
| 16 | |
Tung Nguyen | 8f221bf | 2020-12-16 05:52:18 +0000 | [diff] [blame] | 17 | SYSTEMD_PACKAGES = "${PN}" |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 18 | SYSTEMD_SERVICE:${PN} = " \ |
ThuBaNguyen | 2f95214 | 2021-07-05 13:32:26 +0700 | [diff] [blame] | 19 | ampere-host-force-reset@.service \ |
Tung Nguyen | 8f221bf | 2020-12-16 05:52:18 +0000 | [diff] [blame] | 20 | " |
Tung Nguyen | 8f221bf | 2020-12-16 05:52:18 +0000 | [diff] [blame] | 21 | |
ThuBaNguyen | fb21478 | 2021-07-08 14:20:43 +0700 | [diff] [blame] | 22 | # append force reboot |
ThuBaNguyen | 2f95214 | 2021-07-05 13:32:26 +0700 | [diff] [blame] | 23 | HOST_WARM_REBOOT_FORCE_TGT = "ampere-host-force-reset@.service" |
ThuBaNguyen | fb21478 | 2021-07-08 14:20:43 +0700 | [diff] [blame] | 24 | HOST_WARM_REBOOT_FORCE_INSTMPL = "ampere-host-force-reset@{0}.service" |
Tung Nguyen | 8f221bf | 2020-12-16 05:52:18 +0000 | [diff] [blame] | 25 | HOST_WARM_REBOOT_FORCE_TGTFMT = "obmc-host-force-warm-reboot@{0}.target" |
ThuBaNguyen | fb21478 | 2021-07-08 14:20:43 +0700 | [diff] [blame] | 26 | HOST_WARM_REBOOT_FORCE_TARGET_FMT = "../${HOST_WARM_REBOOT_FORCE_TGT}:${HOST_WARM_REBOOT_FORCE_TGTFMT}.requires/${HOST_WARM_REBOOT_FORCE_INSTMPL}" |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 27 | SYSTEMD_LINK:${PN} += "${@compose_list_zip(d, 'HOST_WARM_REBOOT_FORCE_TARGET_FMT', 'OBMC_HOST_INSTANCES')}" |
| 28 | SYSTEMD_SERVICE:${PN} += "${HOST_WARM_REBOOT_FORCE_TGT}" |
Tung Nguyen | 8f221bf | 2020-12-16 05:52:18 +0000 | [diff] [blame] | 29 | |
ThuBaNguyen | 7b45282 | 2021-06-06 14:36:07 +0700 | [diff] [blame] | 30 | HOST_ON_RESET_HOSTTMPL = "ampere-host-on-host-check@.service" |
| 31 | HOST_ON_RESET_HOSTINSTMPL = "ampere-host-on-host-check@{0}.service" |
| 32 | HOST_ON_RESET_HOSTTGTFMT = "obmc-host-startmin@{0}.target" |
| 33 | HOST_ON_RESET_HOSTFMT = "../${HOST_ON_RESET_HOSTTMPL}:${HOST_ON_RESET_HOSTTGTFMT}.requires/${HOST_ON_RESET_HOSTINSTMPL}" |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 34 | SYSTEMD_LINK:${PN} += "${@compose_list_zip(d, 'HOST_ON_RESET_HOSTFMT', 'OBMC_HOST_INSTANCES')}" |
| 35 | SYSTEMD_SERVICE:${PN} += "${HOST_ON_RESET_HOSTTMPL}" |