Lancelot Kao | 4357d53 | 2021-02-22 15:20:35 -0600 | [diff] [blame] | 1 | SUMMARY = "Phosphor OpenBMC Kudo Firmware Upgrade Command" |
| 2 | DESCRIPTION = "Phosphor OpenBMC Kudo 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" |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 13 | RDEPENDS:${PN} += "libsystemd" |
| 14 | RDEPENDS:${PN} += "bash" |
Lancelot Kao | 4357d53 | 2021-02-22 15:20:35 -0600 | [diff] [blame] | 15 | |
| 16 | |
XP Chen | 9b90696 | 2021-05-06 15:23:19 -0500 | [diff] [blame] | 17 | SRC_URI = " \ |
Lancelot Kao | 4357d53 | 2021-02-22 15:20:35 -0600 | [diff] [blame] | 18 | file://kudo-fw.sh \ |
| 19 | file://kudo-fw-ver.service \ |
| 20 | file://kudo-fw-ver.sh \ |
XP Chen | 9b90696 | 2021-05-06 15:23:19 -0500 | [diff] [blame] | 21 | file://kudo-lib.sh \ |
Lancelot Kao | 4357d53 | 2021-02-22 15:20:35 -0600 | [diff] [blame] | 22 | " |
| 23 | |
| 24 | SYSTEMD_PACKAGES = "${PN}" |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 25 | SYSTEMD_SERVICE:${PN} = " \ |
Lancelot Kao | 4357d53 | 2021-02-22 15:20:35 -0600 | [diff] [blame] | 26 | kudo-fw-ver.service \ |
| 27 | " |
| 28 | |
| 29 | do_install () { |
Charles Boyer | 2adad36 | 2021-11-24 15:58:03 -0600 | [diff] [blame] | 30 | install -d ${D}${sbindir} |
| 31 | install -d ${D}${libexecdir}/${PN} |
| 32 | install -m 0755 ${WORKDIR}/kudo-fw.sh ${D}${sbindir}/kudo-fw.sh |
| 33 | install -m 0755 ${WORKDIR}/kudo-fw-ver.sh ${D}${libexecdir}/${PN}/kudo-fw-ver.sh |
| 34 | install -m 0755 ${WORKDIR}/kudo-lib.sh ${D}${libexecdir}/${PN}/kudo-lib.sh |
Lancelot Kao | 4357d53 | 2021-02-22 15:20:35 -0600 | [diff] [blame] | 35 | install -d ${D}${systemd_system_unitdir} |
| 36 | install -m 0644 ${WORKDIR}/kudo-fw-ver.service ${D}${systemd_system_unitdir} |
| 37 | } |