Detach VNDK using core library list from VNDK APEX
Some devices require VNDK using core library list, but this is dependent to system image rather than VNDK version. This change removes VNDK using core variant library list file from VNDK APEX, and also remove VNDK version from its filename. Bug: 142599349 Test: m -j passed && aosp_cf_x86_go_phone booted Change-Id: Ibc53b8dfc9d38e14bbaa878154034d25a6d34089
This commit is contained in:
@@ -295,7 +295,14 @@ func checkVndkOutput(t *testing.T, ctx *android.TestContext, output string, expe
|
||||
func checkVndkLibrariesOutput(t *testing.T, ctx *android.TestContext, module string, expected []string) {
|
||||
t.Helper()
|
||||
vndkLibraries := ctx.ModuleForTests(module, "")
|
||||
output := insertVndkVersion(module, "VER")
|
||||
|
||||
var output string
|
||||
if module != "vndkcorevariant.libraries.txt" {
|
||||
output = insertVndkVersion(module, "VER")
|
||||
} else {
|
||||
output = module
|
||||
}
|
||||
|
||||
checkWriteFileOutput(t, vndkLibraries.Output(output), expected)
|
||||
}
|
||||
|
||||
|
11
cc/vndk.go
11
cc/vndk.go
@@ -42,7 +42,6 @@ func VndkLibrariesTxtModules(vndkVersion string) []string {
|
||||
vndkCoreLibrariesTxt,
|
||||
vndkSpLibrariesTxt,
|
||||
vndkPrivateLibrariesTxt,
|
||||
vndkUsingCoreVariantLibrariesTxt,
|
||||
}
|
||||
}
|
||||
// Snapshot vndks have their own *.libraries.VER.txt files.
|
||||
@@ -227,7 +226,7 @@ var (
|
||||
vndkSpLibrariesKey = android.NewOnceKey("vndkSpLibrarires")
|
||||
llndkLibrariesKey = android.NewOnceKey("llndkLibrarires")
|
||||
vndkPrivateLibrariesKey = android.NewOnceKey("vndkPrivateLibrarires")
|
||||
vndkUsingCoreVariantLibrariesKey = android.NewOnceKey("vndkUsingCoreVariantLibrarires")
|
||||
vndkUsingCoreVariantLibrariesKey = android.NewOnceKey("vndkUsingCoreVariantLibraries")
|
||||
vndkMustUseVendorVariantListKey = android.NewOnceKey("vndkMustUseVendorVariantListKey")
|
||||
vndkLibrariesLock sync.Mutex
|
||||
|
||||
@@ -445,7 +444,13 @@ func (txt *vndkLibrariesTxt) GenerateAndroidBuildActions(ctx android.ModuleConte
|
||||
return
|
||||
}
|
||||
|
||||
filename := insertVndkVersion(txt.Name(), ctx.DeviceConfig().PlatformVndkVersion())
|
||||
var filename string
|
||||
if txt.Name() != vndkUsingCoreVariantLibrariesTxt {
|
||||
filename = insertVndkVersion(txt.Name(), ctx.DeviceConfig().PlatformVndkVersion())
|
||||
} else {
|
||||
filename = txt.Name()
|
||||
}
|
||||
|
||||
txt.outputFile = android.PathForModuleOut(ctx, filename).OutputPath
|
||||
ctx.Build(pctx, android.BuildParams{
|
||||
Rule: android.WriteFile,
|
||||
|
Reference in New Issue
Block a user