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