Merge "Check ABI regardless of arch variants"

This commit is contained in:
Hsin-Yi Chen
2022-03-16 02:09:40 +00:00
committed by Gerrit Code Review

View File

@@ -1474,14 +1474,11 @@ func pathForModuleOut(ctx ModuleOutPathContext) OutputPath {
func PathForVndkRefAbiDump(ctx ModuleInstallPathContext, version, fileName string, func PathForVndkRefAbiDump(ctx ModuleInstallPathContext, version, fileName string,
isNdk, isLlndkOrVndk, isGzip bool) OptionalPath { isNdk, isLlndkOrVndk, isGzip bool) OptionalPath {
arches := ctx.DeviceConfig().Arches() currentArchType := ctx.Arch().ArchType
if len(arches) == 0 { primaryArchType := ctx.Config().DevicePrimaryArchType()
panic("device build with no primary arch") archName := currentArchType.String()
} if currentArchType != primaryArchType {
currentArch := ctx.Arch() archName += "_" + primaryArchType.String()
archNameAndVariant := currentArch.ArchType.String()
if currentArch.ArchVariant != "" {
archNameAndVariant += "_" + currentArch.ArchVariant
} }
var dirName string var dirName string
@@ -1503,7 +1500,7 @@ func PathForVndkRefAbiDump(ctx ModuleInstallPathContext, version, fileName strin
} }
return ExistentPathForSource(ctx, "prebuilts", "abi-dumps", dirName, return ExistentPathForSource(ctx, "prebuilts", "abi-dumps", dirName,
version, binderBitness, archNameAndVariant, "source-based", version, binderBitness, archName, "source-based",
fileName+ext) fileName+ext)
} }