summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Hsin-Yi Chen <hsinyichen@google.com> 2022-03-16 02:09:40 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2022-03-16 02:09:40 +0000
commit66a357df9ee78902a34a8fa12d4017d458a4f339 (patch)
tree6477618a42a3d9a71d8013f033600982e178c485
parent0ddc5724b0432c5ba2596eb041a62e46c32e6457 (diff)
parentee68c43d4bedd32b20a365d867046a00f48325a8 (diff)
Merge "Check ABI regardless of arch variants"
-rw-r--r--android/paths.go15
1 files changed, 6 insertions, 9 deletions
diff --git a/android/paths.go b/android/paths.go
index 05caebd18..e7829b961 100644
--- a/android/paths.go
+++ b/android/paths.go
@@ -1474,14 +1474,11 @@ func pathForModuleOut(ctx ModuleOutPathContext) OutputPath {
func PathForVndkRefAbiDump(ctx ModuleInstallPathContext, version, fileName string,
isNdk, isLlndkOrVndk, isGzip bool) OptionalPath {
- arches := ctx.DeviceConfig().Arches()
- if len(arches) == 0 {
- panic("device build with no primary arch")
- }
- currentArch := ctx.Arch()
- archNameAndVariant := currentArch.ArchType.String()
- if currentArch.ArchVariant != "" {
- archNameAndVariant += "_" + currentArch.ArchVariant
+ currentArchType := ctx.Arch().ArchType
+ primaryArchType := ctx.Config().DevicePrimaryArchType()
+ archName := currentArchType.String()
+ if currentArchType != primaryArchType {
+ archName += "_" + primaryArchType.String()
}
var dirName string
@@ -1503,7 +1500,7 @@ func PathForVndkRefAbiDump(ctx ModuleInstallPathContext, version, fileName strin
}
return ExistentPathForSource(ctx, "prebuilts", "abi-dumps", dirName,
- version, binderBitness, archNameAndVariant, "source-based",
+ version, binderBitness, archName, "source-based",
fileName+ext)
}