license metadata text notice files
Introduce the below command-line tool:
textnotice outputs a NOTICE text file constructed from the license
texts of the transitive closure of dependencies.
Bug: 68860345
Bug: 151177513
Bug: 151953481
Bug: 213388645
Bug: 210912771
Test: m all
Test: m systemlicense
Test: m textnotice; out/soong/host/linux-x85/textnotice ...
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: Ia691869fd8e58ef008024f48c23b1a4b4435677a
diff --git a/tools/compliance/Android.bp b/tools/compliance/Android.bp
index bbeb76f..5684f2f 100644
--- a/tools/compliance/Android.bp
+++ b/tools/compliance/Android.bp
@@ -45,6 +45,13 @@
testSrcs: ["cmd/dumpresolutions_test.go"],
}
+blueprint_go_binary {
+ name: "textnotice",
+ srcs: ["cmd/textnotice.go"],
+ deps: ["compliance-module"],
+ testSrcs: ["cmd/textnotice_test.go"],
+}
+
bootstrap_go_package {
name: "compliance-module",
srcs: [
@@ -52,6 +59,7 @@
"conditionset.go",
"doc.go",
"graph.go",
+ "noticeindex.go",
"policy/policy.go",
"policy/resolve.go",
"policy/resolvenotices.go",