summaryrefslogtreecommitdiff
authorDmitry Shmidt <dimitrysh@google.com>2018-12-06 23:33:54 (GMT)
committer Dmitry Shmidt <dimitrysh@google.com>2018-12-06 23:33:54 (GMT)
commitb701f9d22bc9669aa335778c309a3b92e0a0aef5 (patch)
tree52c7c1791d88b0787cbbca767b5f0f17a179e43e
parent3f479064a5c1fc16cc88a4c557bb65c946c2d59a (diff)
downloadcommon-b701f9d22bc9669aa335778c309a3b92e0a0aef5.zip
common-b701f9d22bc9669aa335778c309a3b92e0a0aef5.tar.gz
common-b701f9d22bc9669aa335778c309a3b92e0a0aef5.tar.bz2
atom: Use unsigned and signed helpers in the aml_upgrade image
Bug: 120625864 Test: Manual Change-Id: I939e35225b8a0fd80c07e52770a6e4836370dcdb Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat
-rwxr-xr-xgenerate_aml_upgrade_package.sh13
1 files changed, 4 insertions, 9 deletions
diff --git a/generate_aml_upgrade_package.sh b/generate_aml_upgrade_package.sh
index ce087c1..e8be43b 100755
--- a/generate_aml_upgrade_package.sh
+++ b/generate_aml_upgrade_package.sh
@@ -59,12 +59,7 @@ fi
# Map the target name to device dir.
if [ "$TARGET_NAME" = "atom" ]
then
- if [ "$TARGET_SIGNED" = "signed" ]
- then
- DEVICE_DIR=device/harman/atom/upgrade/signed
- else
- DEVICE_DIR=device/harman/atom/upgrade
- fi
+ DEVICE_DIR=device/harman/atom/upgrade
else
exit_badparam "Unsupported target name $TARGET_NAME"
fi
@@ -96,11 +91,11 @@ cp "$IMAGES_DIR"/boot.img \
if [ "$TARGET_SIGNED" = "signed" ]
then
- cp "$TEMP_DIR"/u-boot.bin.usb.bl2 \
+ cp "$DEVICE_DIR"/u-boot.bin.encrypt.usb.bl2 \
"$TEMP_DIR"/u-boot.bin.encrypt.usb.bl2
- cp "$TEMP_DIR"/u-boot.bin.usb.tpl \
+ cp "$DEVICE_DIR"/u-boot.bin.encrypt.usb.tpl \
"$TEMP_DIR"/u-boot.bin.encrypt.usb.tpl
- cp "$TEMP_DIR"/u-boot.bin.sd.bin \
+ cp "$DEVICE_DIR"/u-boot.bin.encrypt.sd.bin \
"$TEMP_DIR"/u-boot.bin.encrypt.sd.bin
cp "$TEMP_DIR"/dt.img \
"$TEMP_DIR"/dt.img.encrypt