blob: cfefa8d94fee0aae8e9f90cf1c380ec23bcf3754 [file] [log] [blame]
Tung Nguyen8f221bf2020-12-16 05:52:18 +00001SUMMARY = "Ampere Computing LLC Host Control Implementation"
2DESCRIPTION = "A host control implementation suitable for Ampere Computing LLC's systems"
3PR = "r1"
4LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
6
7inherit systemd
8inherit obmc-phosphor-systemd
9
Tung Nguyen8f221bf2020-12-16 05:52:18 +000010S = "${WORKDIR}"
11
ThuBaNguyen98f43be2021-07-01 22:29:49 +070012SRC_URI = " \
ThuBaNguyen2f952142021-07-05 13:32:26 +070013 file://ampere-host-force-reset@.service \
Tung Nguyen8f221bf2020-12-16 05:52:18 +000014 "
15
Tung Nguyen8f221bf2020-12-16 05:52:18 +000016SYSTEMD_PACKAGES = "${PN}"
17SYSTEMD_SERVICE_${PN} = " \
ThuBaNguyen2f952142021-07-05 13:32:26 +070018 ampere-host-force-reset@.service \
Tung Nguyen8f221bf2020-12-16 05:52:18 +000019 "
Tung Nguyen8f221bf2020-12-16 05:52:18 +000020
ThuBaNguyenfb214782021-07-08 14:20:43 +070021# append force reboot
ThuBaNguyen2f952142021-07-05 13:32:26 +070022HOST_WARM_REBOOT_FORCE_TGT = "ampere-host-force-reset@.service"
ThuBaNguyenfb214782021-07-08 14:20:43 +070023HOST_WARM_REBOOT_FORCE_INSTMPL = "ampere-host-force-reset@{0}.service"
Tung Nguyen8f221bf2020-12-16 05:52:18 +000024HOST_WARM_REBOOT_FORCE_TGTFMT = "obmc-host-force-warm-reboot@{0}.target"
ThuBaNguyenfb214782021-07-08 14:20:43 +070025HOST_WARM_REBOOT_FORCE_TARGET_FMT = "../${HOST_WARM_REBOOT_FORCE_TGT}:${HOST_WARM_REBOOT_FORCE_TGTFMT}.requires/${HOST_WARM_REBOOT_FORCE_INSTMPL}"
Tung Nguyen8f221bf2020-12-16 05:52:18 +000026SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'HOST_WARM_REBOOT_FORCE_TARGET_FMT', 'OBMC_HOST_INSTANCES')}"
27