commit | 4251fe97aaab2be1cf84afdf8b0398a98862e265 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Mon Jul 23 13:05:00 2018 -0700 |
committer | Tao Bao <tbao@google.com> | Tue Jul 24 11:57:10 2018 -0700 |
tree | 209c85f36913c6a3d026162f2f8952426c575a2d | |
parent | c4ae41b251cf2de671112341d8af55267ebaa609 [diff] |
releasetools: Return the actual image size when building logical partitions. When verity is enabled, `partition_size` has the "adjusted" partition size for holding the filesystem files (i.e. excluding verity hashtree, and FEC metadata if applicable), whereas `original_partition_size` has the one for the actual image returned by build_image.py. `partition_size` must be smaller than `original_partition_size`. As a result, the later assertion in Makefile (e.g. assert-max-image-size) may fail to hold when using `partition_size`. This CL addresses the issue by returning the value in `original_partition_size` instead, if available. It also changes to include both values when dumping the size info on image creation failure. Fixes: 79106666 Test: `m dist` with aosp_walleye-userdebug Test: Set up walleye to use logical partitions, with a reserved size of 20MiB. `m systemimage` no longer fails. Test: Set up walleye that doesn't use verified boot. Use `m systemimage` to build an oversized image. Check the error message. Change-Id: I41d77bffa85e8eadfbf4a2a7dcd2e798fadfdab7
This is the Makefile-based portion of the Android Build System.
For documentation on how to run a build, see Usage.txt
For a list of behavioral changes useful for Android.mk writers see Changes.md
For an outdated reference on Android.mk files, see build-system.html. Our Android.mk files look similar, but are entirely different from the Android.mk files used by the NDK build system. When searching for documentation elsewhere, ensure that it is for the platform build system -- most are not.
This Makefile-based system is in the process of being replaced with Soong, a new build system written in Go. During the transition, all of these makefiles are read by Kati, and generate a ninja file instead of being executed directly. That's combined with a ninja file read by Soong so that the build graph of the two systems can be combined and run as one.