android_build/tools
Tao Bao c2606eb548 releasetools: Fix an issue in image size computation.
When building a system image with system_root_image enabled, the size
computation should include files under both of in_dir (i.e. /system
files) and root (pointed by 'root_dir'). Because files from both
locations will end up into the built image. The files under root are
usually only a few MiBs, but should be accounted for especially in the
context of logical partitions (where the partition size will be
allocated based on the actual need). Note that we will still need some
"reserved space" (defined via BOARD_*_PARTITION_RESERVED_SIZE) to cover
the cost for filesystem and/or verity metadata.

This CL moves the combination of the two dirs up, before parsing and
computing other properties. This doesn't affect anything for a
successful image building path. It may however increase the time to
error out in certain error path, since it copies the files earlier now.

Test: python -m unittest test_build_image
Test: `make dist`
Test: Setup a target with PRODUCT_USE_LOGICAL_PARTITIONS == true and
      BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE == 20MiB. Build system
      image successfully.
Test: Setup a target with PRODUCT_USE_LOGICAL_PARTITIONS == true and
      BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE == 20MiB. Write a large
      file to root dir (PRODUCT_OUT_ROOT). The image building fails, but
      reporting a size that accounts for both of /system and root.
Change-Id: Idfb26b8e259626ba57ec3bd4f85d357c30e56163
2018-07-26 16:59:57 +00:00
..
acp
apicheck Convert apicheck tool build to Soong. 2018-05-15 11:38:44 +09:00
atree
docker Add USER to the docker environment 2018-04-12 16:41:17 -07:00
droiddoc Remove make/tools/droiddoc/test/stubs/Android.mk 2018-04-12 17:00:25 -07:00
fs_config Split up fs_config_* modules per partition. 2018-06-27 11:15:59 +01:00
fs_get_stats
libhost Fix / suppress warnings for clang+mingw 2017-11-29 20:54:33 -08:00
makeparallel
releasetools releasetools: Fix an issue in image size computation. 2018-07-26 16:59:57 +00:00
signapk Add zip hint generation support to signapk tool 2018-05-10 14:39:20 -07:00
signtos Convert signtos to Android.bp 2017-11-21 03:26:31 +00:00
zipalign
ziptime
Android.mk
OWNERS
auto_gen_test_config.py Default test to AndroidJUnitTest for auto-generated test config. 2018-02-21 11:31:06 -08:00
auto_gen_test_config_test.py Default test to AndroidJUnitTest for auto-generated test config. 2018-02-21 11:31:06 -08:00
brillo-clang-format
buildinfo.sh
check_builds.sh Replace build/tools with build/make/tools 2017-12-06 16:12:40 -08:00
check_link_type.py
check_radio_versions.py
checkowners.py Do not use o=ALL_EMAILS parameter. 2018-05-16 11:44:50 -07:00
compare_fileslist.py
dump-package-stats
event_log_tags.py
fat16copy.py
fileslist_util.py
filter-product-graph.py
findleaves.py
fixlinebreaks.sh
generate-enforce-rro-android-manifest.py
generate-notice-files.py Silence superfluous build messages. 2017-11-15 10:34:01 -08:00
java-event-log-tags.py Allow converting logtags to java without merged logtags file 2017-11-16 14:58:05 -08:00
java-layers.py
merge-event-log-tags.py
mktarball.sh
normalize_path.py
parsedeps.py
post_process_props.py
print_module_licenses.sh
product_debug.py
soong_to_convert.py Add java modules to soong_to_convert.txt 2017-12-06 15:38:52 -08:00
vendor_buildinfo.sh
warn.py Escape special HTML characters in warning messages. 2018-07-20 15:36:26 -07:00