blob: c6ee5d0e276428a6095e4ed612e85768998bcc10 [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 \
ThuBaNguyen7b452822021-06-06 14:36:07 +070014 file://ampere-host-on-host-check@.service \
Tung Nguyen8f221bf2020-12-16 05:52:18 +000015 "
16
Tung Nguyen8f221bf2020-12-16 05:52:18 +000017SYSTEMD_PACKAGES = "${PN}"
Thang Q. Nguyenfa1aa4d2021-08-07 05:09:50 +000018SYSTEMD_SERVICE:${PN} = " \
ThuBaNguyen2f952142021-07-05 13:32:26 +070019 ampere-host-force-reset@.service \
Tung Nguyen8f221bf2020-12-16 05:52:18 +000020 "
Tung Nguyen8f221bf2020-12-16 05:52:18 +000021
ThuBaNguyenfb214782021-07-08 14:20:43 +070022# append force reboot
ThuBaNguyen2f952142021-07-05 13:32:26 +070023HOST_WARM_REBOOT_FORCE_TGT = "ampere-host-force-reset@.service"
ThuBaNguyenfb214782021-07-08 14:20:43 +070024HOST_WARM_REBOOT_FORCE_INSTMPL = "ampere-host-force-reset@{0}.service"
Tung Nguyen8f221bf2020-12-16 05:52:18 +000025HOST_WARM_REBOOT_FORCE_TGTFMT = "obmc-host-force-warm-reboot@{0}.target"
ThuBaNguyenfb214782021-07-08 14:20:43 +070026HOST_WARM_REBOOT_FORCE_TARGET_FMT = "../${HOST_WARM_REBOOT_FORCE_TGT}:${HOST_WARM_REBOOT_FORCE_TGTFMT}.requires/${HOST_WARM_REBOOT_FORCE_INSTMPL}"
Thang Q. Nguyenca3e1d92021-08-12 10:21:36 +000027SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'HOST_WARM_REBOOT_FORCE_TARGET_FMT', 'OBMC_HOST_INSTANCES')}"
Thang Q. Nguyenfa1aa4d2021-08-07 05:09:50 +000028SYSTEMD_SERVICE:${PN} += "${HOST_WARM_REBOOT_FORCE_TGT}"
Tung Nguyen8f221bf2020-12-16 05:52:18 +000029
ThuBaNguyen7b452822021-06-06 14:36:07 +070030HOST_ON_RESET_HOSTTMPL = "ampere-host-on-host-check@.service"
31HOST_ON_RESET_HOSTINSTMPL = "ampere-host-on-host-check@{0}.service"
32HOST_ON_RESET_HOSTTGTFMT = "obmc-host-startmin@{0}.target"
33HOST_ON_RESET_HOSTFMT = "../${HOST_ON_RESET_HOSTTMPL}:${HOST_ON_RESET_HOSTTGTFMT}.requires/${HOST_ON_RESET_HOSTINSTMPL}"
Thang Q. Nguyenca3e1d92021-08-12 10:21:36 +000034SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'HOST_ON_RESET_HOSTFMT', 'OBMC_HOST_INSTANCES')}"
Thang Q. Nguyenfa1aa4d2021-08-07 05:09:50 +000035SYSTEMD_SERVICE:${PN} += "${HOST_ON_RESET_HOSTTMPL}"