commit | 0374741b7bf5666ab261178a6fe6bbf45359922c | [log] [tgz] |
---|---|---|
author | Daniel Norman <danielnorman@google.com> | Fri Feb 25 10:38:37 2022 -0800 |
committer | Daniel Norman <danielnorman@google.com> | Mon Feb 28 16:48:27 2022 -0800 |
tree | e32f5475d91a078b6a3ac876cd536287cdfe7245 | |
parent | 42b91dcb79f82a814a59f3a9d964b1677de97f51 [diff] |
Clean up merge_target_files Summary of changes: - Rename extract_items args to be more generic. - For many other functions, replace large argument lists with the OPTIONS shared object. - Rename process_* functions to merge_* to be more clear about the purpose of the function. - Remove verbose code in merge_ab_partitions_txt(). - Extract certain logic from merge_misc_info_txt() and place it into other existing functions: dynamic partition and selinux keys are now processed in their own functions. - Remove verbose code in merge_package_keys_txt(). - Remove verbose code in create_file_contexts_copies(). - Handle extracting from META directly in merge_meta_files(), rather than doing this extraction in create_merged_package() - Storing the set of framework and vendor partitions in OPTIONS so it can be reused by multiple functions without needing to be parsed again. Bug: 221858722 Test: atest test_merge_target_files Test: Use merge_target_files to merge some builds Change-Id: I8aa429c8fbb05223127b116aab84b2678ac264a8
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.