summaryrefslogtreecommitdiff
path: root/compliance
diff options
context:
space:
mode:
author Wei Li <weiwli@google.com> 2025-02-03 15:16:02 -0800
committer Wei Li <weiwli@google.com> 2025-02-03 15:48:12 -0800
commita8d4f5a4ce65da250936a8e2e4c79cffb2832174 (patch)
tree61c33647008683e70f1b70496a92a310da694290 /compliance
parenteb6a11412f1ee4df3fd7a7f9739920d45dc4ce45 (diff)
Add NOTICE.xml.gz files generated by Soong
Bug: 330949782 Test: presubmit Test: lunch aosp_cf_x86_64_phone-trunk_staging-eng Change-Id: Ic0550a606cee1c5f6f990694004a3de8f6bdbffa
Diffstat (limited to 'compliance')
-rw-r--r--compliance/Android.bp35
-rw-r--r--compliance/notice.go6
2 files changed, 39 insertions, 2 deletions
diff --git a/compliance/Android.bp b/compliance/Android.bp
index a1f2015b0..25f6f8678 100644
--- a/compliance/Android.bp
+++ b/compliance/Android.bp
@@ -37,3 +37,38 @@ notice_xml {
"//visibility:any_system_partition",
],
}
+
+notice_xml {
+ name: "notice_xml_system_ext",
+ partition_name: "system_ext",
+}
+
+notice_xml {
+ name: "notice_xml_system_dlkm",
+ partition_name: "system_dlkm",
+}
+
+notice_xml {
+ name: "notice_xml_product",
+ partition_name: "product",
+}
+
+notice_xml {
+ name: "notice_xml_odm",
+ partition_name: "odm",
+}
+
+notice_xml {
+ name: "notice_xml_odm_dlkm",
+ partition_name: "odm_dlkm",
+}
+
+notice_xml {
+ name: "notice_xml_vendor",
+ partition_name: "vendor",
+}
+
+notice_xml {
+ name: "notice_xml_vendor_dlkm",
+ partition_name: "vendor_dlkm",
+}
diff --git a/compliance/notice.go b/compliance/notice.go
index 0d5fce3fc..c5b0fbebe 100644
--- a/compliance/notice.go
+++ b/compliance/notice.go
@@ -91,8 +91,10 @@ func (nx *NoticeXmlModule) GenerateAndroidBuildActions(ctx android.ModuleContext
nx.outputFile = output.OutputPath
- installPath := android.PathForModuleInPartitionInstall(ctx, nx.props.Partition_name, "etc")
- ctx.PackageFile(installPath, "NOTICE.xml.gz", nx.outputFile)
+ if android.Bool(ctx.Config().ProductVariables().UseSoongNoticeXML) {
+ installPath := android.PathForModuleInPartitionInstall(ctx, nx.props.Partition_name, "etc")
+ ctx.InstallFile(installPath, "NOTICE.xml.gz", nx.outputFile)
+ }
}
func (nx *NoticeXmlModule) AndroidMkEntries() []android.AndroidMkEntries {