releasetools: Support packaging for system_root_image.

For system images that contain the root directory, we need to find the
root directory at ROOT/ instead of BOOT/RAMDISK/.

Change-Id: Ica345c8b1b03475f8ac6c44fd576045fcf17c882
This commit is contained in:
Tao Bao
2015-07-21 18:01:20 -07:00
parent ecbc5b401a
commit 7a5bf8a645
4 changed files with 75 additions and 43 deletions

View File

@@ -617,8 +617,8 @@ else if get_stage("%(bcb_dev)s") == "3/3" then
symlinks = CopyPartitionFiles(system_items, input_zip, output_zip)
script.MakeSymlinks(symlinks)
boot_img = common.GetBootableImage("boot.img", "boot.img",
OPTIONS.input_tmp, "BOOT")
boot_img = common.GetBootableImage(
"boot.img", "boot.img", OPTIONS.input_tmp, "BOOT")
if not block_based:
def output_sink(fn, data):