Loading android/paths.go +12 −3 Original line number Diff line number Diff line Loading @@ -776,7 +776,12 @@ func pathForModule(ctx ModuleContext) OutputPath { // 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, isSourceDump bool) OptionalPath { archName := ctx.Arch().ArchType.Name arches := ctx.DeviceConfig().Arches() currentArch := ctx.Arch() archNameAndVariant := currentArch.ArchType.String() if currentArch.ArchVariant != "" { archNameAndVariant += "_" + currentArch.ArchVariant } var sourceOrBinaryDir string var vndkOrNdkDir string var ext string Loading @@ -792,8 +797,12 @@ func PathForVndkRefAbiDump(ctx ModuleContext, version, fileName string, vndkOrNd } else { vndkOrNdkDir = "ndk" } refDumpFileStr := "prebuilts/abi-dumps/" + vndkOrNdkDir + "/" + version + "/" + archName + "/" + sourceOrBinaryDir + "/" + fileName + ext if len(arches) == 0 { panic("device build with no primary arch") } primary_arch := arches[0].ArchType.String() refDumpFileStr := "prebuilts/abi-dumps/" + vndkOrNdkDir + "/" + version + "/" + primary_arch + "/" + archNameAndVariant + "/" + sourceOrBinaryDir + "/" + fileName + ext return ExistentPathForSource(ctx, refDumpFileStr) } Loading Loading
android/paths.go +12 −3 Original line number Diff line number Diff line Loading @@ -776,7 +776,12 @@ func pathForModule(ctx ModuleContext) OutputPath { // 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, isSourceDump bool) OptionalPath { archName := ctx.Arch().ArchType.Name arches := ctx.DeviceConfig().Arches() currentArch := ctx.Arch() archNameAndVariant := currentArch.ArchType.String() if currentArch.ArchVariant != "" { archNameAndVariant += "_" + currentArch.ArchVariant } var sourceOrBinaryDir string var vndkOrNdkDir string var ext string Loading @@ -792,8 +797,12 @@ func PathForVndkRefAbiDump(ctx ModuleContext, version, fileName string, vndkOrNd } else { vndkOrNdkDir = "ndk" } refDumpFileStr := "prebuilts/abi-dumps/" + vndkOrNdkDir + "/" + version + "/" + archName + "/" + sourceOrBinaryDir + "/" + fileName + ext if len(arches) == 0 { panic("device build with no primary arch") } primary_arch := arches[0].ArchType.String() refDumpFileStr := "prebuilts/abi-dumps/" + vndkOrNdkDir + "/" + version + "/" + primary_arch + "/" + archNameAndVariant + "/" + sourceOrBinaryDir + "/" + fileName + ext return ExistentPathForSource(ctx, refDumpFileStr) } Loading