Fix recovery-variant VNDK libs miss-installed to recovery img
When no-vendor-variant VNDK is enabled,the vendor variant of VNDK libraries are not installed.This should not be fit for recovery module. Recovery module deps should be always installed. Bug: 138812833 Test: `adb reboot recovery;` recovery mode boot ok Change-Id: I0c3b8ac0fb0176677ddd94ba7216dd068f2eb81b
This commit is contained in:
parent
d778b93168
commit
d06ecc8af1
2
cc/cc.go
2
cc/cc.go
|
@ -1898,7 +1898,7 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
|
|||
isVendorPublicLib := inList(libName, *vendorPublicLibraries)
|
||||
bothVendorAndCoreVariantsExist := ccDep.hasVendorVariant() || isLLndk
|
||||
|
||||
if ctx.DeviceConfig().VndkUseCoreVariant() && ccDep.isVndk() && !ccDep.mustUseVendorVariant() {
|
||||
if ctx.DeviceConfig().VndkUseCoreVariant() && ccDep.isVndk() && !ccDep.mustUseVendorVariant() && !c.inRecovery() {
|
||||
// The vendor module is a no-vendor-variant VNDK library. Depend on the
|
||||
// core module instead.
|
||||
return libName
|
||||
|
|
Loading…
Reference in New Issue