blob: 2c82ac8f6d9d8979b97c75daafe462f62cc67cf7 [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"
Lancelot Kao180fdfc2021-02-22 17:30:02 -06003
4PR = "r1"
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
7
8inherit systemd
9inherit obmc-phosphor-systemd
10
11DEPENDS += "systemd"
12DEPENDS += "phosphor-ipmi-flash"
13RDEPENDS_${PN} += "libsystemd"
14RDEPENDS_${PN} += "bash"
15
16FILES_${PN} += "${datadir}/phosphor-ipmi-flash/config-scp.json"
17FILES_${PN} += "${datadir}/phosphor-ipmi-flash/config-scpback.json"
18
19SRC_URI_append_kudo = " \
20 file://phosphor-ipmi-flash-scp-update.service \
21 file://phosphor-ipmi-flash-scpback-update.service \
22 file://config-scp.json \
23 file://config-scpback.json \
24 "
25
26SYSTEMD_PACKAGES = "${PN}"
27SYSTEMD_SERVICE_${PN}_append_kudo = " \
28 phosphor-ipmi-flash-scp-update.service \
29 phosphor-ipmi-flash-scpback-update.service \
30 "
31
32do_install () {
33 install -d ${D}${datadir}/phosphor-ipmi-flash
34 install -m 0644 ${WORKDIR}/config-scp.json ${D}${datadir}/phosphor-ipmi-flash
35 install -m 0644 ${WORKDIR}/config-scpback.json ${D}${datadir}/phosphor-ipmi-flash
36
37 install -d ${D}${systemd_system_unitdir}
38 install -m 0644 ${WORKDIR}/phosphor-ipmi-flash-scp-update.service ${D}${systemd_system_unitdir}
39 install -m 0644 ${WORKDIR}/phosphor-ipmi-flash-scpback-update.service ${D}${systemd_system_unitdir}
40}