summaryrefslogtreecommitdiff
path: root/apex/builder.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2022-03-07 18:38:34 -0800
committer Colin Cross <ccross@android.com> 2022-03-08 02:40:32 +0000
commitd9ccb6a2cbbf76618c4ed5c78b1a1efc5736e598 (patch)
tree71b52594214d13f29285c2716d5c1453eb78809c /apex/builder.go
parentb3bdf38453381ea9254939c98f445e496e618e86 (diff)
Skip install rules for apexes with installable: false
When an apex sets installable: false call SkipInstall to prevent creating the install rules, and don't report the install rules to Make. Fixes: 221261079 Test: m checkbuild Change-Id: If94759b16f79ee10ddcf8ee89603ca9e822b74f5
Diffstat (limited to 'apex/builder.go')
-rw-r--r--apex/builder.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/apex/builder.go b/apex/builder.go
index 183c21562..8c5f99bf5 100644
--- a/apex/builder.go
+++ b/apex/builder.go
@@ -856,6 +856,10 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) {
installSuffix = imageCapexSuffix
}
+ if !a.installable() {
+ a.SkipInstall()
+ }
+
// Install to $OUT/soong/{target,host}/.../apex.
a.installedFile = ctx.InstallFile(a.installDir, a.Name()+installSuffix, a.outputFile,
a.compatSymlinks.Paths()...)