diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-10-01 17:34:18 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2012-10-01 17:34:18 -0700 |
commit | 2466e5eaa596c7704a78af71a73e86bacca1032e (patch) | |
tree | bc876c27ae8a8d62aebcd1a1ab0118c2c94de84a | |
parent | 8422277e4c07a3fa77947805a977af321779512b (diff) | |
download | android_device_common-2466e5eaa596c7704a78af71a73e86bacca1032e.tar.gz android_device_common-2466e5eaa596c7704a78af71a73e86bacca1032e.tar.bz2 android_device_common-2466e5eaa596c7704a78af71a73e86bacca1032e.zip |
Handle devices with two bootloader copies
Change-Id: I47c63182d3e5be489a422ca6aad7b34add1e1586
-rw-r--r-- | clear-factory-images-variables.sh | 1 | ||||
-rw-r--r-- | generate-factory-images-common.sh | 24 |
2 files changed, 25 insertions, 0 deletions
diff --git a/clear-factory-images-variables.sh b/clear-factory-images-variables.sh index 65319b0..df9c251 100644 --- a/clear-factory-images-variables.sh +++ b/clear-factory-images-variables.sh @@ -17,6 +17,7 @@ unset XLOADERSRC unset BOOTLOADER unset BOOTLOADERFILE unset BOOTLOADERSRC +unset TWINBOOTLOADERS unset BUILD unset CDMARADIO unset DEVICE diff --git a/generate-factory-images-common.sh b/generate-factory-images-common.sh index 32c4a00..a6122d9 100644 --- a/generate-factory-images-common.sh +++ b/generate-factory-images-common.sh @@ -107,6 +107,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 @@ -168,6 +176,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 @@ -222,6 +238,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 |