google-bios-key: Install public bios key
Tested:
```
$ find -name platforms_secure.pem
./tmp/sysroots-components/armv7a/google-bios-key/usr/share/google-bios-key/platforms_secure.pem
./tmp/sysroots-components/armv7a/google-bios-key/usr/share/platforms_secure.pem
$ ls -l ./tmp/sysroots-components/armv7a/google-bios-key/usr/share/platforms_secure.pem
lrwxrwxrwx 2 build build 36 Oct 13 08:09
./tmp/sysroots-components/armv7a/google-bios-key/usr/share/platforms_secure.pem
-> google-bios-key/platforms_secure.pem
$ find -name platforms_bringup.pem
./tmp/sysroots-components/armv7a/google-bios-key/usr/share/platforms_bringup.pem
./tmp/sysroots-components/armv7a/google-bios-key/usr/share/google-bios-key/platforms_bringup.pem
$ ls -l ./tmp/sysroots-components/armv7a/google-bios-key/usr/share/platforms_bringup.pem
lrwxrwxrwx 2 build build 37 Oct 13 08:09
./tmp/sysroots-components/armv7a/google-bios-key/usr/share/platforms_bringup.pem
-> google-bios-key/platforms_bringup.pem
```
Change-Id: I38a4dcb5daa77bc2acf28ac19cdde07f22d8ba44
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/meta-google/recipes-google/google-bios-key/google-bios-key_git.bb b/meta-google/recipes-google/google-bios-key/google-bios-key_git.bb
index b57fe15..5e41a79 100644
--- a/meta-google/recipes-google/google-bios-key/google-bios-key_git.bb
+++ b/meta-google/recipes-google/google-bios-key/google-bios-key_git.bb
@@ -10,5 +10,17 @@
file://platforms_bringup.pem \
"
-FILES:${PN} += "${WORKDIR}/platforms_secure.pem"
-FILES:${PN} += "${WORKDIR}/platforms_bringup.pem"
+
+FILES:${PN} += "${datadir}/google-bios-key/platforms_secure.pem"
+FILES:${PN} += "${datadir}/google-bios-key/platforms_bringup.pem"
+FILES:${PN} += "${datadir}/platforms_secure.pem"
+FILES:${PN} += "${datadir}/platforms_bringup.pem"
+
+do_install() {
+ install -d ${D}${datadir}/google-bios-key
+ install -m 0644 ${WORKDIR}/platforms_secure.pem ${D}${datadir}/google-bios-key
+ install -m 0644 ${WORKDIR}/platforms_bringup.pem ${D}${datadir}/google-bios-key
+
+ ln -s -r ${D}${datadir}/google-bios-key/platforms_secure.pem ${D}${datadir}/platforms_secure.pem
+ ln -s -r ${D}${datadir}/google-bios-key/platforms_bringup.pem ${D}${datadir}/platforms_bringup.pem
+}