commit | 6dd0035e042bbf5f6d9c566d198d86929d92a142 | [log] [tgz] |
---|---|---|
author | Bob Badour <bbadour@google.com> | Fri Oct 01 15:21:58 2021 -0700 |
committer | Bob Badour <bbadour@google.com> | Mon Dec 06 16:39:35 2021 -0800 |
tree | 88fa935b5c5f2e900385ca447b37e354aaf218c7 | |
parent | 1ded0a1b189fd750375eb675fbbb775405ceffd4 [diff] |
compliance package: listshare and checkshare package to read, consume, and analyze license metadata and dependency graph. Includes the below command-line tools: listshare outputs csv of projects to share to meet restricted and reciprocal license requirements with one project per line. The first field is the path to the project, and subsequent fields identify the license resolutions as colon-separated target:annotations tuples. checkshare outputs error messages to stderr for any targets where policy dictates both sharing and not sharing the source-code, and PASS or FAIL to stdout. exit status indicates success 0 or conflict found 1 Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Test: m systemlicense Test: m listshare; out/soong/host/linux-x86/bin/listshare ... Test: m checkshare; out/soong/host/linux-x86/bin/checkshare ... Test: m dumpgraph; out/soong/host/linux-x86/dumpgraph ... Test: m dumpresolutions; out/soong/host/linux-x86/dumpresolutions ... where ... is the path to the .meta_lic file for the system image. In my case if $ export PRODUCT=$(realpath $ANDROID_PRODUCT_OUT --relative-to=$PWD) ... can be expressed as: ${PRODUCT}/gen/META/lic_intermediates/${PRODUCT}/system.img.meta_lic Change-Id: I4ff3f98848f7e6d03a35734300d763ef5f245d53
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.