Remove vndkVsNdk()
This commmit removes `vndkVsNdk()`, which is essentially
`!inList(ctx.baseModuleName(), llndkLibraries)`.
Test: lunch aosp_arm64_ab-userdebug && make
Change-Id: I8e2352f302df30057997944678f176f4550d3f75
diff --git a/android/paths.go b/android/paths.go
index f478bdd..f321a4b 100644
--- a/android/paths.go
+++ b/android/paths.go
@@ -828,25 +828,27 @@
// PathForVndkRefDump returns an OptionalPath representing the path of the reference
// abi dump for the given module. This is not guaranteed to be valid.
-func PathForVndkRefAbiDump(ctx ModuleContext, version, fileName string, vndkOrNdk bool) OptionalPath {
+func PathForVndkRefAbiDump(ctx ModuleContext, version, fileName string, isLlndk bool) OptionalPath {
arches := ctx.DeviceConfig().Arches()
currentArch := ctx.Arch()
archNameAndVariant := currentArch.ArchType.String()
if currentArch.ArchVariant != "" {
archNameAndVariant += "_" + currentArch.ArchVariant
}
- var vndkOrNdkDir string
- if vndkOrNdk {
- vndkOrNdkDir = "vndk"
+
+ var dirName string
+ if isLlndk {
+ dirName = "ndk"
} else {
- vndkOrNdkDir = "ndk"
+ dirName = "vndk"
}
+
if len(arches) == 0 {
panic("device build with no primary arch")
}
binderBitness := ctx.DeviceConfig().BinderBitness()
ext := ".lsdump.gz"
- refDumpFileStr := "prebuilts/abi-dumps/" + vndkOrNdkDir + "/" + version + "/" + binderBitness + "/" +
+ refDumpFileStr := "prebuilts/abi-dumps/" + dirName + "/" + version + "/" + binderBitness + "/" +
archNameAndVariant + "/source-based/" + fileName + ext
return ExistentPathForSource(ctx, refDumpFileStr)
}