summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcodeworkx <daniel.hillenbrand@codeworkx.de>2011-07-21 14:56:25 -0700
committercodeworkx <daniel.hillenbrand@codeworkx.de>2011-07-21 14:56:25 -0700
commitb1d56f678126fc1b6c8c4d768c2d0c0507a1ee02 (patch)
tree77ce77f9d4972ad6326977ac1192800326727fed
parent7fbbe6cb07422e3a6d10f3d93618d223044edab3 (diff)
downloaddevice_samsung_aries-common-b1d56f678126fc1b6c8c4d768c2d0c0507a1ee02.zip
device_samsung_aries-common-b1d56f678126fc1b6c8c4d768c2d0c0507a1ee02.tar.gz
device_samsung_aries-common-b1d56f678126fc1b6c8c4d768c2d0c0507a1ee02.tar.bz2
releasetools: erase boot partition before flashing the kernel
Change-Id: I6edabd8fc24e7002a151777c629d83cb13005f8a
-rw-r--r--releasetools/aries_edify_generator.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/releasetools/aries_edify_generator.py b/releasetools/aries_edify_generator.py
index 829ffb6..8fb1e20 100644
--- a/releasetools/aries_edify_generator.py
+++ b/releasetools/aries_edify_generator.py
@@ -64,6 +64,9 @@ class EdifyGenerator(edify_generator.EdifyGenerator):
args = {'partition': partition, 'partition_start_block': partition_start_block, 'reservoirpartition': reservoirpartition, 'reservoir_start_block': reservoir_start_block, 'image': image}
self.script.append(
+ ('assert(run_program("/tmp/erase_image", "%(partition)s"));') % args)
+
+ self.script.append(
('assert(package_extract_file("%(image)s", "/tmp/%(partition)s.img"),\n'
' run_program("/tmp/bml_over_mtd.sh", "%(partition)s", "%(partition_start_block)s", "%(reservoirpartition)s", "%(reservoir_start_block)s", "/tmp/%(partition)s.img"),\n'
' delete("/tmp/%(partition)s.img"));') % args)