aboutsummaryrefslogtreecommitdiffstats
path: root/apex
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-07-17 03:11:37 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-07-17 03:11:37 +0000
commit8fa121dc8905d109dc9461c7810c8d70449132f8 (patch)
tree1425a089580634b8285954733e7ea2bca06e3f4a /apex
parent4358b7cc045b62ca28015a88506469f571d92d52 (diff)
parent9863d53618714a36c3f254d949497a7eb2d11863 (diff)
downloadbuild_soong-android-cts-10.0_r2.tar.gz
build_soong-android-cts-10.0_r2.tar.bz2
build_soong-android-cts-10.0_r2.zip
Change-Id: I4173c76b7399b84f27ab3c513f11b82a78320e77
Diffstat (limited to 'apex')
-rw-r--r--apex/apex.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/apex/apex.go b/apex/apex.go
index 04b667f8..87c54f3b 100644
--- a/apex/apex.go
+++ b/apex/apex.go
@@ -1327,10 +1327,13 @@ func (p *Prebuilt) installable() bool {
}
func (p *Prebuilt) DepsMutator(ctx android.BottomUpMutatorContext) {
- // If the device is configured to use flattened APEX, don't set
- // p.properties.Source so that the prebuilt module (which is
- // a non-flattened APEX) is not used.
- forceDisable := ctx.Config().FlattenApex() && !ctx.Config().UnbundledBuild()
+ // If the device is configured to use flattened APEX, force disable the prebuilt because
+ // the prebuilt is a non-flattened one.
+ forceDisable := ctx.Config().FlattenApex()
+
+ // Force disable the prebuilts when we are doing unbundled build. We do unbundled build
+ // to build the prebuilts themselves.
+ forceDisable = forceDisable || ctx.Config().UnbundledBuild()
// b/137216042 don't use prebuilts when address sanitizer is on
forceDisable = forceDisable || android.InList("address", ctx.Config().SanitizeDevice()) ||