blob: 8d2fb13247888721a538ed66bbe200f9f44e4b15 [file] [log] [blame]
Lancelot Kao180fdfc2021-02-22 17:30:02 -06001SUMMARY = "Phosphor OpenBMC Kudo SCP Firmware Upgrade Command"
2DESCRIPTION = "Phosphor OpenBMC Kudo SCP Firmware Upgrade Comman Daemon"
3FILESEXTRAPATHS_prepend := "${THISDIR}/kudo-scp-update:"
4
5PR = "r1"
6LICENSE = "Apache-2.0"
7LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
8
9inherit systemd
10inherit obmc-phosphor-systemd
11
12DEPENDS += "systemd"
13DEPENDS += "phosphor-ipmi-flash"
14RDEPENDS_${PN} += "libsystemd"
15RDEPENDS_${PN} += "bash"
16
17FILES_${PN} += "${datadir}/phosphor-ipmi-flash/config-scp.json"
18FILES_${PN} += "${datadir}/phosphor-ipmi-flash/config-scpback.json"
19
20SRC_URI_append_kudo = " \
21 file://phosphor-ipmi-flash-scp-update.service \
22 file://phosphor-ipmi-flash-scpback-update.service \
23 file://config-scp.json \
24 file://config-scpback.json \
25 "
26
27SYSTEMD_PACKAGES = "${PN}"
28SYSTEMD_SERVICE_${PN}_append_kudo = " \
29 phosphor-ipmi-flash-scp-update.service \
30 phosphor-ipmi-flash-scpback-update.service \
31 "
32
33do_install () {
34 install -d ${D}${datadir}/phosphor-ipmi-flash
35 install -m 0644 ${WORKDIR}/config-scp.json ${D}${datadir}/phosphor-ipmi-flash
36 install -m 0644 ${WORKDIR}/config-scpback.json ${D}${datadir}/phosphor-ipmi-flash
37
38 install -d ${D}${systemd_system_unitdir}
39 install -m 0644 ${WORKDIR}/phosphor-ipmi-flash-scp-update.service ${D}${systemd_system_unitdir}
40 install -m 0644 ${WORKDIR}/phosphor-ipmi-flash-scpback-update.service ${D}${systemd_system_unitdir}
41}