diff options
| author | 2020-07-06 22:56:01 +0100 | |
|---|---|---|
| committer | 2020-07-07 18:12:41 +0100 | |
| commit | 58c33f073d71e35562d7778ff03a74ef6b3e589b (patch) | |
| tree | ee9a9dd4f4ea1172746bfe4534e9ae49e4b8e134 /apex/apex.go | |
| parent | 5aa31347bc14345372ad716cf177247d9e87fbe2 (diff) | |
Do not follow prebuiltDependencyTags in APEX payload walks.
If prebuilts are active they will have the other direct dependencies
from the source modules.
Bug: 151303681
Test: m nothing
Test: `m` with prebuilts/runtime in the manifest (along with other
fixes)
Change-Id: I1ffc7e7b528ed9db5ce6ca2ee96c9d23c6548c49
Diffstat (limited to 'apex/apex.go')
| -rw-r--r-- | apex/apex.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apex/apex.go b/apex/apex.go index d0c1a09d5..b29017d1f 100644 --- a/apex/apex.go +++ b/apex/apex.go @@ -1750,9 +1750,15 @@ func (a *apexBundle) WalkPayloadDeps(ctx android.ModuleContext, do android.Paylo return false } + dt := ctx.OtherModuleDependencyTag(child) + + if _, ok := dt.(android.ExcludeFromApexContentsTag); ok { + return false + } + // Check for the direct dependencies that contribute to the payload - if dt, ok := ctx.OtherModuleDependencyTag(child).(dependencyTag); ok { - if dt.payload { + if adt, ok := dt.(dependencyTag); ok { + if adt.payload { return do(ctx, parent, am, false /* externalDep */) } // As soon as the dependency graph crosses the APEX boundary, don't go further. |