=== modified file 'linaro_image_tools/media_create/boards.py'
@@ -195,6 +195,9 @@
return '%s,%s,%s,*\n%s,,,-' % (
boot_start, boot_len, partition_type, root_start)
+ # TODO: Create separate config classes for android and move this method
+ # into them, also renaming it to get_sfdisk_cmd() so that we don't need
+ # the image_type check in partitions.py.
@classmethod
def get_android_sfdisk_cmd(cls, should_align_boot_part=False):
if cls.fat_size == 32:
=== modified file 'linaro_image_tools/media_create/partitions.py'
@@ -407,6 +407,8 @@
['parted', '-s', media.path, 'mklabel', 'msdos'], as_root=True)
proc.wait()
+ # XXX: We should get rid of this by using separate config classes for
+ # android -- see comment in get_android_sfdisk_cmd() for more details.
if image_type == "ANDROID":
sfdisk_cmd = board_config.get_android_sfdisk_cmd(
should_align_boot_part=should_align_boot_part)