commit | 3ed35d3d25b8e401e12913ed5506e29614dd9863 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Mon Oct 07 20:48:48 2019 -0700 |
committer | Tao Bao <tbao@google.com> | Mon Oct 07 23:32:07 2019 -0700 |
tree | b009a402a710be5730e853e82c8b759510ec231f | |
parent | 1c320f8573dec1d5c262866695911fd42b9fc961 [diff] |
releasetools: Fix the support for getting reproducible images. We used to support getting idempotent images when given the same inputs, by specifying UUID and AVB salt to the image builders. The support was broken by Q changes that moved away from build-time fingerprints [1]. This CL addresses the issue by updating the logic in computing UUID and AVB salt to be based on BuildInfo.fingerprint, as opposed to the deprecated static build fingerprint. [1] https://android-review.googlesource.com/c/platform/build/+/892933 Bug: 134525174 Test: TreeHugger Test: lunch a target; `atest --host releasetools_test releasetools_py3_test` Test: `m dist`; `unzip out/dist/target_files.zip IMAGES/\*`; `zip -d out/dist/target_files.zip IMAGES/\*` Test: `add_img_to_target_files -a out/dist/target_files.zip`. Verify that the rebuilt images are identical to the ones deleted. Change-Id: I8844fc7f044e9abfcd96a00e8958fa0583c70eaf
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.