Changed the provision script
1) enable A/B boot
2) remove the marvell post-processing for sparse image header hacking &
marvell specific kernel compiling hacking
BUG=25565537
Change-Id: I67121e40a255a499bb0c22c6d1003111327127c5
diff --git a/provision-device b/provision-device
index 491ad4e..cd88314 100755
--- a/provision-device
+++ b/provision-device
@@ -14,8 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-${ANDROID_PRODUCT_OUT}/mkmrvlimg
-
+# Marvell A/B Boot Provision Script
fastboot \
flash partition ${ANDROID_BUILD_TOP}/vendor/bsp/marvell/device/abox_edge/bin/primary_gpt \
flash misc ${ANDROID_BUILD_TOP}/vendor/bsp/marvell/device/abox_edge/bin/misc.bin \
@@ -23,8 +22,10 @@
flash pbootloader ${ANDROID_BUILD_TOP}/vendor/bsp/marvell/device/abox_edge/bootloader/u-boot.bin \
erase rbootloader \
flash rbootloader ${ANDROID_BUILD_TOP}/vendor/bsp/marvell/device/abox_edge/bootloader/u-boot.bin \
- flash boot ${ANDROID_PRODUCT_OUT}/boot.img \
- flash system ${ANDROID_PRODUCT_OUT}/system.img \
+ flash boot_a ${ANDROID_PRODUCT_OUT}/boot.img \
+ flash system_a ${ANDROID_PRODUCT_OUT}/system.img \
flash userdata ${ANDROID_PRODUCT_OUT}/userdata.img \
flash cache ${ANDROID_PRODUCT_OUT}/cache.img \
- flash recovery ${ANDROID_PRODUCT_OUT}/recovery.img "$@"
+ flash recovery ${ANDROID_PRODUCT_OUT}/recovery.img \
+ erase boot_b \
+ erase system_b "$@"