aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJagadeesh Ujja <jagadeesh.ujja@arm.com>2019-03-01 13:01:12 +0530
committerThomas Abraham <thomas.abraham@arm.com>2019-03-04 17:03:17 +0530
commite9fe5947e9cfe027f3c9446e442d92acc2560a58 (patch)
treec62a805aa4d50c44ae362a790c4ec9ec42719cf2
parentd2f46224764056d599b68b299ebb2359cf6aad8e (diff)
sgi/build-test-secureboot: align with changes to directory structure
The directory structure in pre-builts for storing the secure boot test keys and images has changed. Align this script to those changes and also to the changes in the naming of reference platforms. Change-Id: Ieeeaec0fa6342bcb0f9a9263d6fff8f32115b112 Signed-off-by: Jagadeesh Ujja <jagadeesh.ujja@arm.com>
-rwxr-xr-xsgi/build-test-secureboot.sh28
1 files changed, 14 insertions, 14 deletions
diff --git a/sgi/build-test-secureboot.sh b/sgi/build-test-secureboot.sh
index ef1a7cd..e5cc971 100755
--- a/sgi/build-test-secureboot.sh
+++ b/sgi/build-test-secureboot.sh
@@ -204,24 +204,24 @@ prepare_disk_image ()
[ ! -f $TOP_DIR/tools/efitools/KEK.der ] ||
[ ! -f $TOP_DIR/tools/efitools/DB.der ] ||
[ ! -f $TOP_DIR/tools/efitools/DBX.der ]; then
- if [ ! -f $TOP_DIR/prebuilts/sgi/secure_boot/sgi_secure_keys/PK.der ] ||
- [ ! -f $TOP_DIR/prebuilts/sgi/secure_boot/sgi_secure_keys/KEK.der ] ||
- [ ! -f $TOP_DIR/prebuilts/sgi/secure_boot/sgi_secure_keys/DB.der ] ||
- [ ! -f $TOP_DIR/prebuilts/sgi/secure_boot/sgi_secure_keys/DB.crt ] ||
- [ ! -f $TOP_DIR/prebuilts/sgi/secure_boot/sgi_secure_keys/DB.key ] ||
- [ ! -f $TOP_DIR/prebuilts/sgi/secure_boot/sgi_secure_keys/DBX.der ] ||
- [ ! -f $TOP_DIR/prebuilts/sgi/secure_boot/sgi_secure_keys/nor2_flash.img ]; then
+ if [ ! -f $TOP_DIR/prebuilts/refinfra/secure_boot/PK.der ] ||
+ [ ! -f $TOP_DIR/prebuilts/refinfra/secure_boot/KEK.der ] ||
+ [ ! -f $TOP_DIR/prebuilts/refinfra/secure_boot/DB.der ] ||
+ [ ! -f $TOP_DIR/prebuilts/refinfra/secure_boot/DB.crt ] ||
+ [ ! -f $TOP_DIR/prebuilts/refinfra/secure_boot/DB.key ] ||
+ [ ! -f $TOP_DIR/prebuilts/refinfra/secure_boot/DBX.der ] ||
+ [ ! -f $TOP_DIR/prebuilts/refinfra/secure_boot/nor2_flash.img ]; then
echo "[ERROR] pre-built sercure keys and/or NOR flash image not found!"
exit 1;
fi
echo "[INFO] Using PK, KEK, DB and DBX from prebuilts..."
- cp $TOP_DIR/prebuilts/sgi/secure_boot/sgi_secure_keys/PK.der $TOP_DIR/tools/efitools/PK.der
- cp $TOP_DIR/prebuilts/sgi/secure_boot/sgi_secure_keys/KEK.der $TOP_DIR/tools/efitools/KEK.der
- cp $TOP_DIR/prebuilts/sgi/secure_boot/sgi_secure_keys/DB.der $TOP_DIR/tools/efitools/DB.der
- cp $TOP_DIR/prebuilts/sgi/secure_boot/sgi_secure_keys/DB.crt $TOP_DIR/tools/efitools/DB.crt
- cp $TOP_DIR/prebuilts/sgi/secure_boot/sgi_secure_keys/DB.key $TOP_DIR/tools/efitools/DB.key
- cp $TOP_DIR/prebuilts/sgi/secure_boot/sgi_secure_keys/DBX.der $TOP_DIR/tools/efitools/DBX.der
- cp $TOP_DIR/prebuilts/sgi/secure_boot/sgi_secure_keys/nor2_flash.img ${TOP_DIR}/model-scripts/sgi/configs/$SGI_PLATFORM/nor2_flash.img
+ cp $TOP_DIR/prebuilts/refinfra/secure_boot/PK.der $TOP_DIR/tools/efitools/PK.der
+ cp $TOP_DIR/prebuilts/refinfra/secure_boot/KEK.der $TOP_DIR/tools/efitools/KEK.der
+ cp $TOP_DIR/prebuilts/refinfra/secure_boot/DB.der $TOP_DIR/tools/efitools/DB.der
+ cp $TOP_DIR/prebuilts/refinfra/secure_boot/DB.crt $TOP_DIR/tools/efitools/DB.crt
+ cp $TOP_DIR/prebuilts/refinfra/secure_boot/DB.key $TOP_DIR/tools/efitools/DB.key
+ cp $TOP_DIR/prebuilts/refinfra/secure_boot/DBX.der $TOP_DIR/tools/efitools/DBX.der
+ cp $TOP_DIR/prebuilts/refinfra/secure_boot/nor2_flash.img ${TOP_DIR}/model-scripts/$refinfra/platforms/$SGI_PLATFORM/nor2_flash.img
fi
#Sign the grub image and copy back the Signed image