summaryrefslogtreecommitdiff
path: root/filesystem/filesystem.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2024-10-21 15:40:32 +0000
committer Spandan Das <spandandas@google.com> 2024-10-21 15:58:02 +0000
commit6d056508ddc0a84565b3f0928c379aa77e244d91 (patch)
tree75a8ce1e86be4d6664e2cfee5e146c1721f6e9f0 /filesystem/filesystem.go
parent74c7c8ecb0127dd49ddb68513c919595a15b0101 (diff)
Use a partition filter only for autogenerated partition modules
Using it for everything breaks some tests for compos (an apex). Test: go build ./filesystem Change-Id: I40de8678d0b5861317fa269df9c62b9823b1c87b
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r--filesystem/filesystem.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index 9756b821b..ca0a7f7c2 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -264,7 +264,10 @@ func (f *filesystem) partitionName() string {
func (f *filesystem) filterInstallablePackagingSpec(ps android.PackagingSpec) bool {
// Filesystem module respects the installation semantic. A PackagingSpec from a module with
// IsSkipInstall() is skipped.
- return !ps.SkipInstall() && (ps.Partition() == f.PartitionType())
+ if proptools.Bool(f.properties.Is_auto_generated) { // TODO (spandandas): Remove this.
+ return !ps.SkipInstall() && (ps.Partition() == f.PartitionType())
+ }
+ return !ps.SkipInstall()
}
var pctx = android.NewPackageContext("android/soong/filesystem")