diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-07-19 04:15:30 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-07-19 04:15:30 +0000 |
commit | 23be383843c4cfaeb863e6725752c953c74f035b (patch) | |
tree | 6a38ed7be40141661c73e8c680ac83130e6332e6 /android | |
parent | 279fc89abde8e9ffe5b54c054f44386ea2a89f49 (diff) | |
parent | 7eefdc4ed29286de3e643fb3da58a2eb0d0975e7 (diff) | |
download | build_soong-23be383843c4cfaeb863e6725752c953c74f035b.tar.gz build_soong-23be383843c4cfaeb863e6725752c953c74f035b.tar.bz2 build_soong-23be383843c4cfaeb863e6725752c953c74f035b.zip |
Merge changes I420a5953,I8e2352f3,I7a6bb905
* changes:
Support text ABI dump file format
Remove vndkVsNdk()
Remove isSourceDump from PathForVndkRefAbiDump()
Diffstat (limited to 'android')
-rw-r--r-- | android/paths.go | 45 |
1 files changed, 24 insertions, 21 deletions
diff --git a/android/paths.go b/android/paths.go index af2f9567..31c5977e 100644 --- a/android/paths.go +++ b/android/paths.go @@ -826,37 +826,40 @@ func pathForModule(ctx ModuleContext) OutputPath { return PathForOutput(ctx, ".intermediates", ctx.ModuleDir(), ctx.ModuleName(), ctx.ModuleSubDir()) } -// 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 { +// PathForVndkRefAbiDump 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, + isLlndk, 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 } - var sourceOrBinaryDir string - var vndkOrNdkDir string - var ext string - if isSourceDump { - ext = ".lsdump.gz" - sourceOrBinaryDir = "source-based" + + var dirName string + if isLlndk { + dirName = "ndk" } else { - ext = ".bdump.gz" - sourceOrBinaryDir = "binary-based" + dirName = "vndk" } - if vndkOrNdk { - vndkOrNdkDir = "vndk" + + binderBitness := ctx.DeviceConfig().BinderBitness() + + var ext string + if isGzip { + ext = ".lsdump.gz" } else { - vndkOrNdkDir = "ndk" - } - if len(arches) == 0 { - panic("device build with no primary arch") + ext = ".lsdump" } - binderBitness := ctx.DeviceConfig().BinderBitness() - refDumpFileStr := "prebuilts/abi-dumps/" + vndkOrNdkDir + "/" + version + "/" + binderBitness + "/" + - archNameAndVariant + "/" + sourceOrBinaryDir + "/" + fileName + ext - return ExistentPathForSource(ctx, refDumpFileStr) + + return ExistentPathForSource(ctx, "prebuilts", "abi-dumps", dirName, + version, binderBitness, archNameAndVariant, "source-based", + fileName+ext) } // PathForModuleOut returns a Path representing the paths... under the module's |