HOW.optimus: Sign SpaceCast binaries with the SpaceCast keys
Change-Id: I08895b2ea49a742234dbdf320709c9b4749e3829
diff --git a/HOW.optimus b/HOW.optimus
index 33deba2..71425bf 100644
--- a/HOW.optimus
+++ b/HOW.optimus
@@ -4,8 +4,10 @@
if [ "$target" == "optimus" ]; then
barebox_config="optimus_defconfig"
+ keystore_id="GFIBER_DRM"
elif [ "$target" == "spacecast" ]; then
barebox_config="spacecast_defconfig"
+ keystore_id="SPACECAST"
else
echo "Usage: $0 [optimus|spacecast]" >&2
exit 1
@@ -46,15 +48,19 @@
type=uloader
for n in $binaries/uloader_unsigned_*.bin; do
signed=$(echo $n | sed -e 's/_unsigned_/_signed_/')
- blaze run -- //isp/fiber/drm:code_sign_tool sign-image $n --image_type=$type --outfile=$signed
+ blaze run -- //isp/fiber/drm:code_sign_tool sign-image $n \
+ --image_type=$type --outfile=$signed --keystore_config_id=$keystore_id
done
type=barebox
for n in $binaries/barebox_unsigned_*.bin; do
signed=$(echo $n | sed -e 's/_unsigned_/_signed_/')
- blaze run -- //isp/fiber/drm:code_sign_tool sign-image $n --image_type=$type --outfile=$signed
+ blaze run -- //isp/fiber/drm:code_sign_tool sign-image $n \
+ --image_type=$type --outfile=$signed --keystore_config_id=$keystore_id
done
-blaze --batch run //isp/fiber/drm:drm_keystore_client -- --key_type signing_private_key --output $binaries/gfiber_private.pem
+blaze --batch run //isp/fiber/drm:drm_keystore_client -- \
+ --key_type signing_private_key --output $binaries/gfiber_private.pem \
+ --keystore_config_id=$keystore_id
)
for n in $binaries/*.bin; do