platform_build/tools/releasetools
Ying Wang a2292c94d1 Support to build image of root file system with /system and ramdisk combined.
Added support to build system.img that combines contents of /system and
the ramdisk, and can be mounted at the root of the file system.
To enable this feature, define BoardConfig.mk variable:
BOARD_BUILD_SYSTEM_ROOT_IMAGE := true

Ideally we would just change TARGET_OUT (the path of the staging system
directory) to under TARGET_ROOT_OUT. But at this point many places in
the build system assume TARGET_OUT is independent of TARGET_ROOT_OUT and
we can't make it easily configurable.
Instead this implementation takes the least intrusive approach:
We don't change TARGET_OUT or TARGET_ROOT_OUT. We just assemble a
temporary staging directory that contains contents of both TARGET_OUT
and TARGET_ROOT_OUT, in build_image.BuildImage() of
tools/releasetools/build_image.py.
When build_image.py is directly called from the makefile, we pass in the
parameters from the global dictionary; when build_image.BuildImage() is
called from add_img_to_target_files.py, we need to override values to
point to files extracted from the target_files zip file.
We need to combine the fs_config files of both /system and ramdisk,
when fs_config is enabled.

Also this change refactored build_image.BuildImage() by moving the extra
parameters to the image property dictionary.

(cherry-picked from commit 0eabd4f2c5)

Bug:19868522
Change-Id: Iafc467a0e3427b0d6ad3b575abcc98ddcc9ea0f1
2015-03-26 10:35:00 -07:00
..
add_img_to_target_files store images in target-files 2014-07-31 11:06:30 -07:00
add_img_to_target_files.py Support to build image of root file system with /system and ramdisk combined. 2015-03-26 10:35:00 -07:00
blockimgdiff.py Make the generated OTAs repeatable 2015-03-19 19:42:12 -07:00
build_image.py Support to build image of root file system with /system and ramdisk combined. 2015-03-26 10:35:00 -07:00
check_target_files_signatures bump releasetools python requirement to 2.7 2014-02-18 10:57:07 -08:00
common.py Allow system images larger than 2GiB. 2015-03-19 13:59:01 -07:00
edify_generator.py Fix the syntax error in the edify script generator 2015-03-22 14:20:48 -07:00
img_from_target_files Allow to build the update.zip for emulator build. 2014-06-04 17:04:14 +00:00
img_from_target_files.py Allow system images larger than 2GiB, pt. 2 2015-03-23 14:35:50 -07:00
make_recovery_patch bump releasetools python requirement to 2.7 2014-02-18 10:57:07 -08:00
ota_from_target_files Fix the computation of basefilename 2015-03-23 16:05:26 -07:00
rangelib.py add unit tests for rangelib 2014-09-25 16:39:32 -07:00
sign_target_files_apks am c6af9b8f: am 28b2b00a: Merge "Update vendor fingerprint." into lmp-mr1-dev 2015-02-07 00:06:13 +00:00
sparse_img.py add support for the 'fill' chunk type to sparse_img 2014-10-15 23:38:34 +00:00
test_common.py Run ZipFile.testzip() during zipfile tests. 2015-03-23 16:54:39 -07:00