VNDK is fully deprecated from Soong
VNDK is fully deprecated, so KeepVndk variable will have fixed value. This change removes KeepVndk config value, and updates any logic using the value as VNDK is always deprecated. Bug: 330100430 Test: Soong tests passed Ignore-AOSP-First: Resolve merge conflict Change-Id: I98b7590c059883e06bf3fb236d88966de64991d7 Merged-In: I98b7590c059883e06bf3fb236d88966de64991d7
This commit is contained in:
22
apex/apex.go
22
apex/apex.go
@@ -953,7 +953,6 @@ func (a *apexBundle) ApexInfoMutator(mctx android.TopDownMutatorContext) {
|
||||
// the non-system APEXes because the VNDK libraries won't be included (and duped) in the
|
||||
// APEX, but shared across APEXes via the VNDK APEX.
|
||||
useVndk := a.SocSpecific() || a.DeviceSpecific() || (a.ProductSpecific() && mctx.Config().EnforceProductPartitionInterface())
|
||||
excludeVndkLibs := useVndk && a.useVndkAsStable(mctx)
|
||||
if proptools.Bool(a.properties.Use_vndk_as_stable) {
|
||||
if !useVndk {
|
||||
mctx.PropertyErrorf("use_vndk_as_stable", "not supported for system/system_ext APEXes")
|
||||
@@ -987,13 +986,8 @@ func (a *apexBundle) ApexInfoMutator(mctx android.TopDownMutatorContext) {
|
||||
if !android.IsDepInSameApex(mctx, parent, child) {
|
||||
return false
|
||||
}
|
||||
if excludeVndkLibs {
|
||||
if c, ok := child.(*cc.Module); ok && c.IsVndk() {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
if useVndk && mctx.Config().IsVndkDeprecated() && child.Name() == "libbinder" {
|
||||
if useVndk && child.Name() == "libbinder" {
|
||||
mctx.ModuleErrorf("Module %s in the vendor APEX %s should not use libbinder. Use libbinder_ndk instead.", parent.Name(), a.Name())
|
||||
}
|
||||
|
||||
@@ -2190,11 +2184,6 @@ func (a *apexBundle) depVisitor(vctx *visitorContext, ctx android.ModuleContext,
|
||||
// tags used below are private (e.g. `cc.sharedDepTag`).
|
||||
if cc.IsSharedDepTag(depTag) || cc.IsRuntimeDepTag(depTag) {
|
||||
if ch, ok := child.(*cc.Module); ok {
|
||||
if ch.UseVndk() && a.useVndkAsStable(ctx) && ch.IsVndk() {
|
||||
vctx.requireNativeLibs = append(vctx.requireNativeLibs, ":vndk")
|
||||
return false
|
||||
}
|
||||
|
||||
af := apexFileForNativeLibrary(ctx, ch, vctx.handleSpecialLibs)
|
||||
af.transitiveDep = true
|
||||
|
||||
@@ -3015,12 +3004,3 @@ func rBcpPackages() map[string][]string {
|
||||
func (a *apexBundle) IsTestApex() bool {
|
||||
return a.testApex
|
||||
}
|
||||
|
||||
func (a *apexBundle) useVndkAsStable(ctx android.BaseModuleContext) bool {
|
||||
// VNDK cannot be linked if it is deprecated
|
||||
if ctx.Config().IsVndkDeprecated() {
|
||||
return false
|
||||
}
|
||||
|
||||
return proptools.Bool(a.properties.Use_vndk_as_stable)
|
||||
}
|
||||
|
Reference in New Issue
Block a user