blob: 9e2168f2c7cbc8edea14656deca7a7597a9c671c [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
William A. Kennington III32e440d2021-12-03 18:19:07 -080013RDEPENDS:${PN} += " \
14 bash \
15 gbmc-update \
16 google-key \
17 "
Brandon Kim0547cc42021-07-20 15:59:47 -070018
19SRC_URI += " \
20 file://config-bmc.json \
21 file://inplace-gbmc-verify.service \
22 file://inplace-gbmc-verify.sh \
23 file://inplace-gbmc-version.service \
24 file://inplace-gbmc-version.sh \
William A. Kennington III08179182022-07-20 14:58:50 -070025 file://40-inplace-gbmc-upgrade.sh \
Brandon Kim0547cc42021-07-20 15:59:47 -070026"
27
Willy Tu4dd03ca2021-08-06 09:37:35 -070028SYSTEMD_SERVICE:${PN} += "inplace-gbmc-verify.service"
29SYSTEMD_SERVICE:${PN} += "inplace-gbmc-version.service"
Brandon Kim0547cc42021-07-20 15:59:47 -070030
Willy Tu4dd03ca2021-08-06 09:37:35 -070031FILES:${PN} += "${datadir}/phosphor-ipmi-flash"
William A. Kennington III32e440d2021-12-03 18:19:07 -080032FILES:${PN} += "${datadir}/gbmc-br-dhcp"
Brandon Kim0547cc42021-07-20 15:59:47 -070033
34do_install() {
35 sed -i 's,@ALLOW_DEV@,,' ${WORKDIR}/inplace-gbmc-verify.sh
36
37 install -d ${D}${bindir}
38 install -m 0755 ${WORKDIR}/*.sh ${D}${bindir}
39
40 install -d ${D}${systemd_system_unitdir}
41 install -m 0644 ${WORKDIR}/*.service ${D}${systemd_system_unitdir}
42
43 install -d ${D}${datadir}/phosphor-ipmi-flash
44 install -m 0644 ${WORKDIR}/config-bmc.json ${D}${datadir}/phosphor-ipmi-flash
William A. Kennington III32e440d2021-12-03 18:19:07 -080045
46 install -d ${D}${datadir}/gbmc-br-dhcp
William A. Kennington III08179182022-07-20 14:58:50 -070047 install -m 0644 ${WORKDIR}/40-inplace-gbmc-upgrade.sh ${D}${datadir}/gbmc-br-dhcp/
Brandon Kim0547cc42021-07-20 15:59:47 -070048}
49
Willy Tu4dd03ca2021-08-06 09:37:35 -070050do_install:prepend:dev() {
Brandon Kim0547cc42021-07-20 15:59:47 -070051 sed -i 's,@ALLOW_DEV@,--allow-dev,' ${WORKDIR}/inplace-gbmc-verify.sh
52}