license metadata bill of materials list

Introduce the below command-line tool:

bom outputs a text file listing 1 installed path per line.

Bug: 68860345
Bug: 151177513
Bug: 151953481
Bug: 213388645
Bug: 210912771

Test: m all
Test: m systemlicense
Test: m bom; out/soong/host/linux-x85/bom ...

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: I73975ca7b161945a62ff83888527ce01fb47d75a
diff --git a/tools/compliance/Android.bp b/tools/compliance/Android.bp
index 4f412ae..8bae317 100644
--- a/tools/compliance/Android.bp
+++ b/tools/compliance/Android.bp
@@ -18,6 +18,13 @@
 }
 
 blueprint_go_binary {
+    name: "bom",
+    srcs: ["cmd/bom.go"],
+    deps: ["compliance-module"],
+    testSrcs: ["cmd/bom_test.go"],
+}
+
+blueprint_go_binary {
     name: "checkshare",
     srcs: ["cmd/checkshare.go"],
     deps: ["compliance-module"],