diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-28 21:36:52 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-28 21:36:52 +0000 |
commit | 26e3b914ca99847341363aab23e067adccd62e61 (patch) | |
tree | c1a2964aa3123a24ba11de7005c554ca0f893f9d | |
parent | 3a26e9c2d7a357782f1dd27eeb20b9f39108f193 (diff) | |
parent | 1c25a9760d7b50c167700adcaa32bb3d0d0b2bf2 (diff) | |
download | vndk-26e3b914ca99847341363aab23e067adccd62e61.tar.gz |
Snap for 8513843 from 1c25a9760d7b50c167700adcaa32bb3d0d0b2bf2 to mainline-appsearch-release
Change-Id: Ifc32676df7993cc2efb625719136ad23cf26b95c
-rw-r--r-- | golden/vndk_data.py | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/golden/vndk_data.py b/golden/vndk_data.py index b2183bb..cf0cd59 100644 --- a/golden/vndk_data.py +++ b/golden/vndk_data.py @@ -46,12 +46,13 @@ VNDK_SP = "VNDK-SP" # VNDK-SP dependencies that vendor modules cannot directly access. VNDK_SP_PRIVATE = "VNDK-SP-private" -# The tuples of (ABI name, bitness, arch name). 64-bit comes before 32-bit in -# order to sequentially search for longest prefix. +# The tuples of (ABI name, bitness, arch name, legacy name ...). The legacy +# name is for VNDK 32 and older versions. 64-bit comes before 32-bit in order +# to sequentially search for longest prefix. _ABI_LIST = ( - ("arm64", 64, "arm64"), - ("arm64", 32, "arm_arm64"), - ("arm", 32, "arm"), + ("arm64", 64, "arm64", "arm64_armv8-a"), + ("arm64", 32, "arm_arm64", "arm_armv8-a"), + ("arm", 32, "arm", "arm_armv7-a-neon"), ("x86_64", 64, "x86_64"), ("x86_64", 32, "x86_x86_64"), ("x86", 32, "x86"), @@ -111,23 +112,27 @@ def GetAbiDumpPathsFromResources(version, binder_bitness, abi_name, abi_bitness) abi_bitness = int(abi_bitness) try: - arch_name = next(x[2] for x in _ABI_LIST if - abi_name.startswith(x[0]) and x[1] == abi_bitness) + arch_names = next(x[2:] for x in _ABI_LIST if + abi_name.startswith(x[0]) and x[1] == abi_bitness) except StopIteration: logging.warning("Unknown %d-bit ABI %s.", abi_bitness, abi_name) return dict() # The separator in zipped path is always "/". - dump_dir = "/".join((version, str(binder_bitness), arch_name, - "source-based")) + "/" + dump_dirs = ["/".join((version, str(binder_bitness), arch_name, + "source-based")) + "/" + for arch_name in arch_names] + ext = ".lsdump" dump_paths = dict() with AbiDumpResource() as dump_resource: for path in dump_resource.zip_file.namelist(): - if path.startswith(dump_dir) and path.endswith(".lsdump"): - lib_name = path[len(dump_dir):-len(".lsdump")] - dump_paths[lib_name] = path + for dump_dir in dump_dirs: + if path.startswith(dump_dir) and path.endswith(ext): + lib_name = path[len(dump_dir):-len(ext)] + dump_paths[lib_name] = path + break return dump_paths |