Lancelot Kao | d3e767d | 2021-02-22 16:48:42 -0600 | [diff] [blame] | 1 | SUMMARY = "Phosphor OpenBMC Kudo CPLD Firmware Upgrade Command" |
| 2 | DESCRIPTION = "Phosphor OpenBMC Kudo CPLD 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 | FILES_${PN} += "${datadir}/phosphor-ipmi-flash/config-bmccpld.json" |
| 17 | FILES_${PN} += "${datadir}/phosphor-ipmi-flash/config-mbcpld.json" |
| 18 | |
| 19 | SRC_URI_append_kudo = " \ |
| 20 | file://phosphor-ipmi-flash-bmccpld-update.service \ |
| 21 | file://phosphor-ipmi-flash-mbcpld-update.service \ |
| 22 | file://config-bmccpld.json \ |
| 23 | file://config-mbcpld.json \ |
| 24 | " |
| 25 | |
| 26 | SYSTEMD_PACKAGES = "${PN}" |
| 27 | SYSTEMD_SERVICE_${PN}_append_kudo = " \ |
| 28 | phosphor-ipmi-flash-bmccpld-update.service \ |
| 29 | phosphor-ipmi-flash-mbcpld-update.service \ |
| 30 | " |
| 31 | |
| 32 | do_install () { |
| 33 | install -d ${D}${datadir}/phosphor-ipmi-flash |
| 34 | install -m 0644 ${WORKDIR}/config-bmccpld.json ${D}${datadir}/phosphor-ipmi-flash |
| 35 | install -m 0644 ${WORKDIR}/config-mbcpld.json ${D}${datadir}/phosphor-ipmi-flash |
| 36 | install -d ${D}${systemd_system_unitdir} |
| 37 | install -m 0644 ${WORKDIR}/phosphor-ipmi-flash-bmccpld-update.service ${D}${systemd_system_unitdir} |
| 38 | install -m 0644 ${WORKDIR}/phosphor-ipmi-flash-mbcpld-update.service ${D}${systemd_system_unitdir} |
| 39 | } |