diff options
author | Ying Wang <wangying@google.com> | 2013-03-20 11:02:05 -0700 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2013-03-25 09:53:16 -0700 |
commit | a0febe5e6de24ffee5cd32944d5a1814cf312efb (patch) | |
tree | 28bf889bc2d165b7eb15e2c1b11cd0154a7aa7a5 /tools/releasetools/build_image.py | |
parent | b2c7917463dc898b0b361229ed3345c23ac51d83 (diff) | |
download | build-a0febe5e6de24ffee5cd32944d5a1814cf312efb.zip build-a0febe5e6de24ffee5cd32944d5a1814cf312efb.tar.gz build-a0febe5e6de24ffee5cd32944d5a1814cf312efb.tar.bz2 |
Support to build vendor.img
Bug: 8341435
Change-Id: I2db7970936984d38aed35054e3f695d298f4e512
Diffstat (limited to 'tools/releasetools/build_image.py')
-rwxr-xr-x | tools/releasetools/build_image.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/releasetools/build_image.py b/tools/releasetools/build_image.py index d5bd451..f8f2ada 100755 --- a/tools/releasetools/build_image.py +++ b/tools/releasetools/build_image.py @@ -128,6 +128,9 @@ def ImagePropFromGlobalDict(glob_dict, mount_point): elif mount_point == "cache": copy_prop("cache_fs_type", "fs_type") copy_prop("cache_size", "partition_size") + elif mount_point == "vendor": + copy_prop("vendor_fs_type", "fs_type") + copy_prop("vendor_size", "partition_size") return d @@ -164,6 +167,8 @@ def main(argv): mount_point = "data" elif image_filename == "cache.img": mount_point = "cache" + elif image_filename == "vendor.img": + mount_point = "vendor" else: print >> sys.stderr, "error: unknown image file name ", image_filename exit(1) |