commit | d3554e628ffed060908f40e99196e5512a630878 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Tue Jul 10 15:31:22 2018 -0700 |
committer | Tao Bao <tbao@google.com> | Tue Jul 10 16:05:14 2018 -0700 |
tree | c2312f3ebd26f52fe4b4aa6b9ca1f3988fce2633 | |
parent | 8f48f18f69fa0aa61a81c80de8020baf4b73baa3 [diff] |
releasetools: Address two issues with system_root_image file map. With system_root_image, e2fsdroid writes file map with extra leading slashes in filenames (e.g. "//system/framework/am.jar"). This breaks the detection of files with incomplete ranges, and thus fails the patch generation. This CL addresses the issue by stripping out leading slashes. Additionally, non-/system files (e.g "//sbin/charger") are not packed under SYSTEM/ in a target_files.zip, despite being part of system.img. We need to look for these files under ROOT/ instead. This CL also asserts the availability of all files listed on a file map, to avoid silently missing other edge cases. Bug: 80380658 Test: python -m unittest test_common Test: Successfully generated an incremental for a target using system_root_image that was previously failing. Change-Id: I62a2460e882f3930e99add4d2b44291edf7a51a0
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.