Brandon Kim | 0547cc4 | 2021-07-20 15:59:47 -0700 | [diff] [blame] | 1 | SUMMARY = "Google BMC Inplace Update Script" |
| 2 | DESCRIPTION = "Google BMC Inplace Update Script" |
| 3 | PR = "r1" |
| 4 | |
| 5 | LICENSE = "Apache-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 7 | |
| 8 | inherit obmc-phosphor-systemd |
| 9 | |
| 10 | PROVIDES += "virtual/bmc-update" |
Willy Tu | 4dd03ca | 2021-08-06 09:37:35 -0700 | [diff] [blame] | 11 | RPROVIDES:${PN} += "virtual/bmc-update" |
Brandon Kim | 0547cc4 | 2021-07-20 15:59:47 -0700 | [diff] [blame] | 12 | |
Willy Tu | 4dd03ca | 2021-08-06 09:37:35 -0700 | [diff] [blame] | 13 | RDEPENDS:${PN} += "google-key" |
| 14 | RDEPENDS:${PN} += "bash" |
Brandon Kim | 0547cc4 | 2021-07-20 15:59:47 -0700 | [diff] [blame] | 15 | |
| 16 | SRC_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 Tu | 4dd03ca | 2021-08-06 09:37:35 -0700 | [diff] [blame] | 24 | SYSTEMD_SERVICE:${PN} += "inplace-gbmc-verify.service" |
| 25 | SYSTEMD_SERVICE:${PN} += "inplace-gbmc-version.service" |
Brandon Kim | 0547cc4 | 2021-07-20 15:59:47 -0700 | [diff] [blame] | 26 | |
Willy Tu | 4dd03ca | 2021-08-06 09:37:35 -0700 | [diff] [blame] | 27 | FILES:${PN} += "${datadir}/phosphor-ipmi-flash" |
Brandon Kim | 0547cc4 | 2021-07-20 15:59:47 -0700 | [diff] [blame] | 28 | |
| 29 | do_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 Tu | 4dd03ca | 2021-08-06 09:37:35 -0700 | [diff] [blame] | 42 | do_install:prepend:dev() { |
Brandon Kim | 0547cc4 | 2021-07-20 15:59:47 -0700 | [diff] [blame] | 43 | sed -i 's,@ALLOW_DEV@,--allow-dev,' ${WORKDIR}/inplace-gbmc-verify.sh |
| 44 | } |