Brandon Kim | 4e2735e | 2021-07-20 15:41:04 -0700 | [diff] [blame] | 1 | SUMMARY = "Google Key installation Script" |
| 2 | DESCRIPTION = "Google Key installation 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 | |
Willy Tu | 4dd03ca | 2021-08-06 09:37:35 -0700 | [diff] [blame] | 8 | RDEPENDS:${PN} += "bash" |
William A. Kennington III | 6de5385 | 2021-09-07 18:24:09 -0700 | [diff] [blame] | 9 | RDEPENDS:${PN} += "gnupg-gpg" |
Brandon Kim | 4e2735e | 2021-07-20 15:41:04 -0700 | [diff] [blame] | 10 | |
| 11 | SRC_URI += " \ |
| 12 | file://platforms_gbmc_bringup.gpg \ |
| 13 | file://platforms_gbmc_secure.gpg \ |
| 14 | file://verify-bmc-image.sh \ |
| 15 | " |
| 16 | |
| 17 | do_install() { |
| 18 | # Install keys into image. |
| 19 | install -d -m 0755 ${D}${datadir}/google-key |
| 20 | install -m 0644 ${WORKDIR}/platforms_gbmc_secure.gpg ${D}${datadir}/google-key/prod.key |
| 21 | install -m 0644 ${WORKDIR}/platforms_gbmc_bringup.gpg ${D}${datadir}/google-key/dev.key |
| 22 | |
| 23 | # Install the verification helper |
| 24 | install -d -m 0755 ${D}${bindir} |
| 25 | install -m 0755 ${WORKDIR}/verify-bmc-image.sh ${D}${bindir} |
| 26 | } |