commit | 0d8e89b5f8b8df6a781e6060936ff9ee164999b0 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Apr 09 17:03:57 2019 +0000 |
committer | Yifan Hong <elsk@google.com> | Thu Apr 11 10:12:27 2019 -0700 |
tree | 58d8cbed0057698ccfcd3954e120aa163c937473 | |
parent | cf9f9bedb8d31cc7be33a0352559e5ca0bbc4420 [diff] |
Reland "Only assert-max-image-size for static partitions." assert-max-image-size doesn't make sense for dynamic partitions, as build_image.py always find the right size for the output image. Hence: - build_image.py no longer need to write generated_*_info.txt (which contains the size of the image). - assert-max-image-size on the static BOARD_*IMAGE_PARTITION_SIZE. If a partition is dynamic, that variable isn't set, and assert-max-image-size becomes a no-op. If the partition is static, assert-max-image-size checks the static partition size as it used to be. - Fix read-size-of-partitions to use the size of the partition by reading the image directly (instead of using generated_*_info.txt). For devices without AVB, with DAP enabled, and does not have RESERVED_SIZE for partitions, because of right sizing, the original code always warns about approaching size limits. Since such checks doesn't make sense for dynamic partitions, remove them. Test: builds on device with dynamic partitions Test: builds on cuttlefish with DAP enabled (without AVB), no more size limit warnings: WARNING: out/target/product/vsoc_x86/vendor.img approaching size limit (X now; limit X) This reverts commit 6e099095d13b02223d224d4ca7cf16b9ed10b83b. Reason for revert: reland the CL Bug: 122377935 Test: build blueline_mainline Change-Id: Iee594b64e687decff186c0fa60f82b88608febe9 Merged-In: Iee594b64e687decff186c0fa60f82b88608febe9
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.