Pack base_fs files into target_files.zip.

am: f54216f292

* commit 'f54216f29238a67aad1199a0e85d09e443740bf0':
  Pack base_fs files into target_files.zip.

Change-Id: Ia68c3a707def1865151f071ca33a3bdc513f9045
This commit is contained in:
Tao Bao
2016-05-02 16:45:31 +00:00
committed by android-build-merger
2 changed files with 25 additions and 1 deletions

View File

@@ -182,6 +182,21 @@ def LoadInfoDict(input_file, input_dir=None):
d["ramdisk_fs_config"] = os.path.join(
input_dir, "META", "root_filesystem_config.txt")
# Redirect {system,vendor}_base_fs_file.
if "system_base_fs_file" in d:
basename = os.path.basename(d["system_base_fs_file"])
system_base_fs_file = os.path.join(input_dir, "META", basename)
assert os.path.exists(system_base_fs_file), \
"failed to find system base fs file: %s" % (system_base_fs_file,)
d["system_base_fs_file"] = system_base_fs_file
if "vendor_base_fs_file" in d:
basename = os.path.basename(d["vendor_base_fs_file"])
vendor_base_fs_file = os.path.join(input_dir, "META", basename)
assert os.path.exists(vendor_base_fs_file), \
"failed to find vendor base fs file: %s" % (vendor_base_fs_file,)
d["vendor_base_fs_file"] = vendor_base_fs_file
try:
data = read_helper("META/imagesizes.txt")
for line in data.split("\n"):