summaryrefslogtreecommitdiff
path: root/android/packaging.go
diff options
context:
space:
mode:
author Justin Yun <justinyun@google.com> 2024-05-07 14:32:14 +0900
committer Justin Yun <justinyun@google.com> 2024-05-13 23:14:42 +0000
commit74f3f30ae440e545f78ea21fb6053b707aa1d646 (patch)
tree26ec5bc880725809b08349fbcd370cb9bd491e50 /android/packaging.go
parent82d7cdc547129168667cfb701d8d89c0db30244c (diff)
Soong filesystem may install aconfig_flags.pb
By setting aconfig_flags: true, soong filesystem module installs the aconfig_flags.pb file to its etc directory. We need to define aconfigFilePaths to ModuleBase to store the list of aconfig file paths that is generated from the GenerateBuildActions(). The aconfigFilePaths are collected when build the filesystem module to build the aconfig_flags.pb for the filesystem image. Bug: 335363964 Test: compare the cache list with those generated from make. Change-Id: Ia32b566bf43174e94b9e610b9503608c6b583899
Diffstat (limited to 'android/packaging.go')
-rw-r--r--android/packaging.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/android/packaging.go b/android/packaging.go
index fe61da1e9..a7260a641 100644
--- a/android/packaging.go
+++ b/android/packaging.go
@@ -48,6 +48,9 @@ type PackagingSpec struct {
// is created via InstallFile or InstallSymlink) or a simple packaging (i.e. created via
// PackageFile).
skipInstall bool
+
+ // Paths of aconfig files for the built artifact
+ aconfigPaths *Paths
}
func (p *PackagingSpec) Equals(other *PackagingSpec) bool {
@@ -102,6 +105,11 @@ func (p *PackagingSpec) SkipInstall() bool {
return p.skipInstall
}
+// Paths of aconfig files for the built artifact
+func (p *PackagingSpec) GetAconfigPaths() Paths {
+ return *p.aconfigPaths
+}
+
type PackageModule interface {
Module
packagingBase() *PackagingBase