diff options
-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 |