blob: 9e55afce53cc21515977e8ca1f7d9f59d8e47fa9 [file] [log] [blame]
Brandon Kim0547cc42021-07-20 15:59:47 -07001SUMMARY = "Google BMC Inplace Update Script"
2DESCRIPTION = "Google BMC Inplace Update Script"
3PR = "r1"
4
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
7
8inherit obmc-phosphor-systemd
9
10PROVIDES += "virtual/bmc-update"
Willy Tu4dd03ca2021-08-06 09:37:35 -070011RPROVIDES:${PN} += "virtual/bmc-update"
Brandon Kim0547cc42021-07-20 15:59:47 -070012
Willy Tu4dd03ca2021-08-06 09:37:35 -070013RDEPENDS:${PN} += "google-key"
14RDEPENDS:${PN} += "bash"
Brandon Kim0547cc42021-07-20 15:59:47 -070015
16SRC_URI += " \
17 file://config-bmc.json \
18 file://inplace-gbmc-verify.service \
19 file://inplace-gbmc-verify.sh \
20 file://inplace-gbmc-version.service \
21 file://inplace-gbmc-version.sh \
22"
23
Willy Tu4dd03ca2021-08-06 09:37:35 -070024SYSTEMD_SERVICE:${PN} += "inplace-gbmc-verify.service"
25SYSTEMD_SERVICE:${PN} += "inplace-gbmc-version.service"
Brandon Kim0547cc42021-07-20 15:59:47 -070026
Willy Tu4dd03ca2021-08-06 09:37:35 -070027FILES:${PN} += "${datadir}/phosphor-ipmi-flash"
Brandon Kim0547cc42021-07-20 15:59:47 -070028
29do_install() {
30 sed -i 's,@ALLOW_DEV@,,' ${WORKDIR}/inplace-gbmc-verify.sh
31
32 install -d ${D}${bindir}
33 install -m 0755 ${WORKDIR}/*.sh ${D}${bindir}
34
35 install -d ${D}${systemd_system_unitdir}
36 install -m 0644 ${WORKDIR}/*.service ${D}${systemd_system_unitdir}
37
38 install -d ${D}${datadir}/phosphor-ipmi-flash
39 install -m 0644 ${WORKDIR}/config-bmc.json ${D}${datadir}/phosphor-ipmi-flash
40}
41
Willy Tu4dd03ca2021-08-06 09:37:35 -070042do_install:prepend:dev() {
Brandon Kim0547cc42021-07-20 15:59:47 -070043 sed -i 's,@ALLOW_DEV@,--allow-dev,' ${WORKDIR}/inplace-gbmc-verify.sh
44}