blob: 7562cbdaa4bb21fa2fe9a3c2b4929dcc67d87cad [file] [log] [blame]
Hieu Huynh57fa7922022-07-12 10:18:25 +00001SUMMARY = "Ampere Computing LLC System Firmware Hang Handler"
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
10RDEPENDS:${PN} = "bash"
11FILESEXTRAPATHS:append := "${THISDIR}/${PN}:"
12
13SYSTEMD_PACKAGES = "${PN}"
14
15SRC_URI = " \
16 file://ampere-sysfw-hang-handler.service \
17 file://ampere_sysfw_hang_handler.sh \
18 "
19
20SYSTEMD_SERVICE:${PN} += "ampere-sysfw-hang-handler.service"
21
22SYSFW_HANG_TGT = "ampere-sysfw-hang-handler.service"
23SYSFW_HANG_INSTMPL = "ampere-sysfw-hang-handler.service"
24AMPER_HOST_RUNNING = "obmc-host-already-on@{0}.target"
25SYSFW_HANG_TARGET_FMT = "../${SYSFW_HANG_TGT}:${AMPER_HOST_RUNNING}.wants/${SYSFW_HANG_INSTMPL}"
26SYSTEMD_LINK:${PN} += "${@compose_list_zip(d, 'SYSFW_HANG_TARGET_FMT', 'OBMC_HOST_INSTANCES')}"
27
28do_install() {
29 install -d ${D}/usr/sbin
30 install -m 0755 ${WORKDIR}/ampere_sysfw_hang_handler.sh ${D}/${sbindir}/
31}