override_apex can be replaced with apex_set

Bug: 279247159
Test: m nothing
Change-Id: Ic4f8b2b1ee936afe2bf26de7d6cae19d93ecc831
This commit is contained in:
Jooyung Han
2023-04-22 13:46:59 +09:00
parent 28cbb75a09
commit 912c4ab16f
2 changed files with 72 additions and 3 deletions

View File

@@ -304,8 +304,9 @@ func performOverrideMutator(ctx BottomUpMutatorContext) {
for i, o := range overrides {
mods[i+1].(OverridableModule).override(ctx, o)
if o.getOverriddenByPrebuilt() {
// The overriding module itself, too, is overridden by a prebuilt. Skip its installation.
mods[i+1].HideFromMake()
// The overriding module itself, too, is overridden by a prebuilt.
// Copy the flag and hide it in make
mods[i+1].ReplacedByPrebuilt()
}
}
} else if o, ok := ctx.Module().(OverrideModule); ok {