blob: 62d54f25e3385a24bd8cf7af90e2a03af221052c [file] [log] [blame]
Brandon Kim4e2735e2021-07-20 15:41:04 -07001SUMMARY = "Google Key installation Script"
2DESCRIPTION = "Google Key installation Script"
3PR = "r1"
4
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
7
Willy Tu4dd03ca2021-08-06 09:37:35 -07008RDEPENDS:${PN} += "bash"
9RDEPENDS:${PN} += "gnupg"
Brandon Kim4e2735e2021-07-20 15:41:04 -070010
11SRC_URI += " \
12 file://platforms_gbmc_bringup.gpg \
13 file://platforms_gbmc_secure.gpg \
14 file://verify-bmc-image.sh \
15"
16
17do_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}