summaryrefslogtreecommitdiff
path: root/compliance
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2024-11-07 17:56:21 -0800
committer Cole Faust <colefaust@google.com> 2024-11-07 17:56:21 -0800
commit2598bb9670bb3cdfc17104f6c6b9c571d6ddbaea (patch)
tree2a169d170d56ad0342533a324088661856c84539 /compliance
parent3d2c75dc6a83ff5b27b5aad5d72db4481c147e47 (diff)
Always package NOTICE.xml.gz
To remove the reliance on UseSoongSystemImage. We can always package it, but not install it, so that it appears for soong built filesystems but doesn't conflict with the make built version. Test: m out/soong/.intermediates/build/make/target/product/generic/generic_system_image/android_common/fileList, verified that NOTICE.xml.gz was still there Change-Id: I76d97a380b8c295f6d1cd8ea1c809229867ab890
Diffstat (limited to 'compliance')
-rw-r--r--compliance/notice.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/compliance/notice.go b/compliance/notice.go
index 4fc83ab70..edd1b3435 100644
--- a/compliance/notice.go
+++ b/compliance/notice.go
@@ -18,6 +18,7 @@ import (
"path/filepath"
"android/soong/android"
+
"github.com/google/blueprint"
)
@@ -62,8 +63,7 @@ type NoticeXmlModule struct {
props noticeXmlProperties
- outputFile android.OutputPath
- installPath android.InstallPath
+ outputFile android.OutputPath
}
type noticeXmlProperties struct {
@@ -86,10 +86,8 @@ func (nx *NoticeXmlModule) GenerateAndroidBuildActions(ctx android.ModuleContext
nx.outputFile = output.OutputPath
- if android.Bool(ctx.Config().ProductVariables().UseSoongSystemImage) {
- nx.installPath = android.PathForModuleInPartitionInstall(ctx, nx.props.Partition_name, "etc")
- ctx.InstallFile(nx.installPath, "NOTICE.xml.gz", nx.outputFile)
- }
+ installPath := android.PathForModuleInPartitionInstall(ctx, nx.props.Partition_name, "etc")
+ ctx.PackageFile(installPath, "NOTICE.xml.gz", nx.outputFile)
}
func (nx *NoticeXmlModule) AndroidMkEntries() []android.AndroidMkEntries {