Grant Williams | a8c0af0 | 2022-04-29 12:03:41 -0500 | [diff] [blame^] | 1 | SUMMARY = "Phosphor OpenBMC mori Firmware Upgrade Command" |
| 2 | DESCRIPTION = "Phosphor OpenBMC mori Firmware Upgrade Comman Daemon" |
| 3 | |
| 4 | PR = "r1" |
| 5 | LICENSE = "Apache-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 7 | |
| 8 | inherit systemd |
| 9 | inherit obmc-phosphor-systemd |
| 10 | |
| 11 | DEPENDS += "systemd" |
| 12 | DEPENDS += "phosphor-ipmi-flash" |
| 13 | RDEPENDS:${PN} += "libsystemd" |
| 14 | RDEPENDS:${PN} += "bash" |
| 15 | |
| 16 | SRC_URI = " \ |
| 17 | file://mori-fw.sh \ |
| 18 | file://mori-fw-ver.service \ |
| 19 | file://mori-fw-ver.sh \ |
| 20 | file://mori-lib.sh \ |
| 21 | " |
| 22 | |
| 23 | SYSTEMD_PACKAGES = "${PN}" |
| 24 | SYSTEMD_SERVICE:${PN} = " \ |
| 25 | mori-fw-ver.service \ |
| 26 | " |
| 27 | |
| 28 | do_install () { |
| 29 | install -d ${D}${sbindir} |
| 30 | install -d ${D}${libexecdir}/${PN} |
| 31 | install -m 0755 ${WORKDIR}/mori-fw.sh ${D}${sbindir}/mori-fw.sh |
| 32 | install -m 0755 ${WORKDIR}/mori-fw-ver.sh ${D}${libexecdir}/${PN}/mori-fw-ver.sh |
| 33 | install -m 0755 ${WORKDIR}/mori-lib.sh ${D}${libexecdir}/${PN}/mori-lib.sh |
| 34 | install -d ${D}${systemd_system_unitdir} |
| 35 | install -m 0644 ${WORKDIR}/mori-fw-ver.service ${D}${systemd_system_unitdir} |
| 36 | } |