blob: acd929217fca222fc4327002afbb37db8dcaaa3b [file] [log] [blame]
Thang Q. Nguyen8b96ab52023-04-15 11:10:42 +07001SUMMARY = "Phosphor OpenBMC Boot Progress Handling Service"
2DESCRIPTION = "Phosphor OpenBMC Altra Boot Progress Handling Daemon"
Thang Q. Nguyen75429292021-07-06 08:49:17 +00003
4PR = "r1"
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
7
8inherit systemd
9inherit obmc-phosphor-systemd
10
11DEPENDS += "systemd"
12RDEPENDS:${PN} += "libsystemd"
13RDEPENDS:${PN} += "bash"
14
15SRC_URI = " \
16 file://ampere_boot_progress.sh \
Thang Q. Nguyen8b96ab52023-04-15 11:10:42 +070017 file://dimm_train_fail_log.sh \
Thang Q. Nguyen75429292021-07-06 08:49:17 +000018 "
19
20SYSTEMD_PACKAGES = "${PN}"
21
22HOST_ON_RESET_HOSTTMPL = "ampere-boot-progress.service"
23HOST_ON_RESET_HOSTINSTMPL = "ampere-boot-progress.service"
24HOST_ON_RESET_HOSTTGTFMT = "obmc-host-already-on@{0}.target"
25HOST_ON_RESET_HOSTFMT = "../${HOST_ON_RESET_HOSTTMPL}:${HOST_ON_RESET_HOSTTGTFMT}.requires/${HOST_ON_RESET_HOSTINSTMPL}"
26SYSTEMD_LINK:${PN} += "${@compose_list_zip(d, 'HOST_ON_RESET_HOSTFMT', 'OBMC_HOST_INSTANCES')}"
27
28SYSTEMD_SERVICE:${PN} += "${HOST_ON_RESET_HOSTTMPL}"
29
30do_install () {
31 install -d ${D}${sbindir}
32 install -m 0755 ${WORKDIR}/ampere_boot_progress.sh ${D}${sbindir}/
Thang Q. Nguyen8b96ab52023-04-15 11:10:42 +070033 install -m 0755 ${WORKDIR}/dimm_train_fail_log.sh ${D}${sbindir}/
Thang Q. Nguyen75429292021-07-06 08:49:17 +000034}
35