Remove obsolete MTD support from the releasetools scripts.

Bug: http://b/29250988
Change-Id: I653dc306485c6b35411840b53211d42eb6d19e34
This commit is contained in:
Elliott Hughes
2016-06-15 17:04:54 -07:00
parent b727d5bb32
commit 305b088729
4 changed files with 8 additions and 35 deletions

View File

@@ -184,11 +184,9 @@ def AddUserdata(output_zip, prefix="IMAGES/"):
print "userdata.img already exists in %s, no need to rebuild..." % (prefix,)
return
# Skip userdata.img if no size.
image_props = build_image.ImagePropFromGlobalDict(OPTIONS.info_dict, "data")
# We only allow yaffs to have a 0/missing partition_size.
# Extfs, f2fs must have a size. Skip userdata.img if no size.
if (not image_props.get("fs_type", "").startswith("yaffs") and
not image_props.get("partition_size")):
if not image_props.get("partition_size"):
return
print "creating userdata.img..."