diff options
| author | 2019-04-10 13:33:58 +0800 | |
|---|---|---|
| committer | 2019-04-27 01:55:50 +0800 | |
| commit | 41eabe63e892a59575180e95b2fc14b514bc58ec (patch) | |
| tree | a248fc41b3efb51902c1bc30a1792fd7fef5344e /android/paths.go | |
| parent | 9a4abed70189ae321a59ec49e812e83ea938affc (diff) | |
Support opt-in ABI checks
This commit allows a module to opt in for ABI checks even when it is
not an LLNDK/VNDK module.
Bug: 131421213
Test: Add `header_abi_checker { enabled: true, }` to some module
Change-Id: Ie09d262e651cbb44d7d0eba652f55dc1e1e52962
Diffstat (limited to 'android/paths.go')
| -rw-r--r-- | android/paths.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/android/paths.go b/android/paths.go index 0f20b844d..da387a8a7 100644 --- a/android/paths.go +++ b/android/paths.go @@ -967,7 +967,7 @@ func pathForModule(ctx ModuleContext) OutputPath { // 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 { + isLlndkOrNdk, isVndk, isGzip bool) OptionalPath { arches := ctx.DeviceConfig().Arches() if len(arches) == 0 { @@ -980,10 +980,12 @@ func PathForVndkRefAbiDump(ctx ModuleContext, version, fileName string, } var dirName string - if isLlndk { + if isLlndkOrNdk { dirName = "ndk" - } else { + } else if isVndk { dirName = "vndk" + } else { + dirName = "platform" // opt-in libs } binderBitness := ctx.DeviceConfig().BinderBitness() |