summaryrefslogtreecommitdiffstats
path: root/generate-factory-images-common.sh
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-10-01 17:39:08 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-10-01 17:39:08 -0700
commitdb8d4ba7b0cca087abadae6ed50e7d9d66cfd5c5 (patch)
tree2d083013624905ff3c9be49dc62098de9a17fc0a /generate-factory-images-common.sh
parente819834ea17380042bf767c457e89dad24ff4aa2 (diff)
parent2466e5eaa596c7704a78af71a73e86bacca1032e (diff)
downloadandroid_device_common-db8d4ba7b0cca087abadae6ed50e7d9d66cfd5c5.tar.gz
android_device_common-db8d4ba7b0cca087abadae6ed50e7d9d66cfd5c5.tar.bz2
android_device_common-db8d4ba7b0cca087abadae6ed50e7d9d66cfd5c5.zip
am 2466e5ea: Handle devices with two bootloader copies
* commit '2466e5eaa596c7704a78af71a73e86bacca1032e': Handle devices with two bootloader copies
Diffstat (limited to 'generate-factory-images-common.sh')
-rw-r--r--generate-factory-images-common.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/generate-factory-images-common.sh b/generate-factory-images-common.sh
index f89bd6f..e1a4b6e 100644
--- a/generate-factory-images-common.sh
+++ b/generate-factory-images-common.sh
@@ -117,6 +117,14 @@ EOF
fi
cat >> tmp/$PRODUCT-$VERSION/flash-all.sh << EOF
fastboot flash bootloader bootloader-$DEVICE-$BOOTLOADER.img
+EOF
+if test "$TWINBOOTLOADERS" = "true"
+then
+cat >> tmp/$PRODUCT-$VERSION/flash-all.sh << EOF
+fastboot flash bootloader2 bootloader-$DEVICE-$BOOTLOADER.img
+EOF
+fi
+cat >> tmp/$PRODUCT-$VERSION/flash-all.sh << EOF
fastboot reboot-bootloader
sleep $SLEEPDURATION
EOF
@@ -178,6 +186,14 @@ EOF
fi
cat >> tmp/$PRODUCT-$VERSION/flash-all.bat << EOF
fastboot flash bootloader bootloader-$DEVICE-$BOOTLOADER.img
+EOF
+if test "$TWINBOOTLOADERS" = "true"
+then
+cat >> tmp/$PRODUCT-$VERSION/flash-all.bat << EOF
+fastboot flash bootloader2 bootloader-$DEVICE-$BOOTLOADER.img
+EOF
+fi
+cat >> tmp/$PRODUCT-$VERSION/flash-all.bat << EOF
fastboot reboot-bootloader
ping -n $SLEEPDURATION 127.0.0.1 >nul
EOF
@@ -232,6 +248,14 @@ EOF
fi
cat >> tmp/$PRODUCT-$VERSION/flash-base.sh << EOF
fastboot flash bootloader bootloader-$DEVICE-$BOOTLOADER.img
+EOF
+if test "$TWINBOOTLOADERS" = "true"
+then
+cat >> tmp/$PRODUCT-$VERSION/flash-base.sh << EOF
+fastboot flash bootloader2 bootloader-$DEVICE-$BOOTLOADER.img
+EOF
+fi
+cat >> tmp/$PRODUCT-$VERSION/flash-base.sh << EOF
fastboot reboot-bootloader
sleep $SLEEPDURATION
EOF