summaryrefslogtreecommitdiff
path: root/meta-google/recipes-phosphor/flash/google-key.bb
blob: f05f0824579f1f8cf1cd797d626990444cb9abb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SUMMARY = "Google Key installation Script"
DESCRIPTION = "Google Key installation Script"
PR = "r1"

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

RDEPENDS:${PN} += "bash"
RDEPENDS:${PN} += "gnupg-gpg"

SRC_URI += " \
 file://platforms_gbmc_bringup.gpg \
 file://platforms_gbmc_secure.gpg \
 file://verify-bmc-image.sh \
"

do_install() {
    # Install keys into image.
    install -d -m 0755 ${D}${datadir}/google-key
    install -m 0644 ${WORKDIR}/platforms_gbmc_secure.gpg ${D}${datadir}/google-key/prod.key
    install -m 0644 ${WORKDIR}/platforms_gbmc_bringup.gpg ${D}${datadir}/google-key/dev.key

    # Install the verification helper
    install -d -m 0755 ${D}${bindir}
    install -m 0755 ${WORKDIR}/verify-bmc-image.sh ${D}${bindir}
}