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 \ |
Tung Nguyen | 8f221bf | 2020-12-16 05:52:18 +0000 | [diff] [blame] | 14 | " |
| 15 | |
Tung Nguyen | 8f221bf | 2020-12-16 05:52:18 +0000 | [diff] [blame] | 16 | SYSTEMD_PACKAGES = "${PN}" |
| 17 | SYSTEMD_SERVICE_${PN} = " \ |
ThuBaNguyen | 2f95214 | 2021-07-05 13:32:26 +0700 | [diff] [blame] | 18 | ampere-host-force-reset@.service \ |
Tung Nguyen | 8f221bf | 2020-12-16 05:52:18 +0000 | [diff] [blame] | 19 | " |
Tung Nguyen | 8f221bf | 2020-12-16 05:52:18 +0000 | [diff] [blame] | 20 | |
ThuBaNguyen | fb21478 | 2021-07-08 14:20:43 +0700 | [diff] [blame^] | 21 | # append force reboot |
ThuBaNguyen | 2f95214 | 2021-07-05 13:32:26 +0700 | [diff] [blame] | 22 | HOST_WARM_REBOOT_FORCE_TGT = "ampere-host-force-reset@.service" |
ThuBaNguyen | fb21478 | 2021-07-08 14:20:43 +0700 | [diff] [blame^] | 23 | HOST_WARM_REBOOT_FORCE_INSTMPL = "ampere-host-force-reset@{0}.service" |
Tung Nguyen | 8f221bf | 2020-12-16 05:52:18 +0000 | [diff] [blame] | 24 | HOST_WARM_REBOOT_FORCE_TGTFMT = "obmc-host-force-warm-reboot@{0}.target" |
ThuBaNguyen | fb21478 | 2021-07-08 14:20:43 +0700 | [diff] [blame^] | 25 | HOST_WARM_REBOOT_FORCE_TARGET_FMT = "../${HOST_WARM_REBOOT_FORCE_TGT}:${HOST_WARM_REBOOT_FORCE_TGTFMT}.requires/${HOST_WARM_REBOOT_FORCE_INSTMPL}" |
Tung Nguyen | 8f221bf | 2020-12-16 05:52:18 +0000 | [diff] [blame] | 26 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'HOST_WARM_REBOOT_FORCE_TARGET_FMT', 'OBMC_HOST_INSTANCES')}" |
| 27 | |