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 () { |
| 30 | install -d ${D}/${sbindir} |
| 31 | install -m 0755 ${WORKDIR}/kudo-fw.sh ${D}/${sbindir}/kudo-fw.sh |
| 32 | install -m 0755 ${WORKDIR}/kudo-fw-ver.sh ${D}/${sbindir}/kudo-fw-ver.sh |
XP Chen | 9b90696 | 2021-05-06 15:23:19 -0500 | [diff] [blame] | 33 | install -m 0755 ${WORKDIR}/kudo-lib.sh ${D}/${sbindir}/kudo-lib.sh |
Lancelot Kao | 4357d53 | 2021-02-22 15:20:35 -0600 | [diff] [blame] | 34 | install -d ${D}${systemd_system_unitdir} |
| 35 | install -m 0644 ${WORKDIR}/kudo-fw-ver.service ${D}${systemd_system_unitdir} |
| 36 | } |