Add a Make variable that overrides configured jar locations.

We had hardcoded logic to override "framework-minus-apex", but we need
to override more jars, so this CL adds a general solution for this.

Bug: 290583827
Test: m nothing
Change-Id: I211ebda7aa2803886ab6e6d081d26327665e49a6
This commit is contained in:
Jiakai Zhang
2023-07-12 16:51:48 +01:00
parent cb13b5d1bd
commit 4d90da29a8
5 changed files with 74 additions and 18 deletions

View File

@@ -386,7 +386,7 @@ func (image bootImageConfig) moduleName(ctx android.PathContext, idx int) string
m := image.modules.Jar(idx)
name := image.stem
if idx != 0 || image.extends != nil {
name += "-" + android.ModuleStem(m)
name += "-" + android.ModuleStem(ctx.Config(), image.modules.Apex(idx), m)
}
return name
}