Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6fdd140 authored by Bob Badour's avatar Bob Badour
Browse files

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
parent cf24fc2b
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -45,6 +45,13 @@ blueprint_go_binary {
    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 @@ bootstrap_go_package {
        "conditionset.go",
        "doc.go",
        "graph.go",
        "noticeindex.go",
        "policy/policy.go",
        "policy/resolve.go",
        "policy/resolvenotices.go",
+1 −0
Original line number Diff line number Diff line
&&&First Party License&&&
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ module_classes: "EXECUTABLES"
projects:  "distributable/application"
license_kinds:  "SPDX-license-identifier-Apache-2.0"
license_conditions:  "notice"
license_texts:  "build/soong/licenses/LICENSE"
license_texts:  "testdata/firstparty/FIRST_PARTY_LICENSE"
is_container:  false
built:  "out/target/product/fictional/obj/EXECUTABLES/application_intermediates/application"
installed:  "out/target/product/fictional/bin/application"
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ module_classes: "EXECUTABLES"
projects:  "static/binary"
license_kinds:  "SPDX-license-identifier-Apache-2.0"
license_conditions:  "notice"
license_texts:  "build/soong/licenses/LICENSE"
license_texts:  "testdata/firstparty/FIRST_PARTY_LICENSE"
is_container:  false
built:  "out/target/product/fictional/obj/EXECUTABLES/bin_intermediates/bin1"
installed:  "out/target/product/fictional/system/bin/bin1"
+3 −3
Original line number Diff line number Diff line
@@ -3,10 +3,10 @@ module_classes: "EXECUTABLES"
projects:  "dynamic/binary"
license_kinds:  "SPDX-license-identifier-Apache-2.0"
license_conditions:  "notice"
license_texts:  "build/soong/licenses/LICENSE"
license_texts:  "testdata/firstparty/FIRST_PARTY_LICENSE"
is_container:  false
built:  "out/target/product/fictional/obj/EXECUTABLES/bin_intermediates/bin1"
installed:  "out/target/product/fictional/system/bin/bin1"
built:  "out/target/product/fictional/obj/EXECUTABLES/bin_intermediates/bin2"
installed:  "out/target/product/fictional/system/bin/bin2"
sources:  "out/target/product/fictional/system/lib/libb.so"
sources:  "out/target/product/fictional/system/lib/libd.so"
deps:  {
Loading