Remove CPU variant from ABI reference dump paths
This commit removes CPU variant from the paths under prebuilts/abi-dumps
so that the build system can find dumps generated from non-generic
products.
Bug: 140359871
Test: ./create_reference_dumps.py -product aosp_cf_arm64_phone \
-libs libvndksupport
Change-Id: Ib022bbfd484e327e345b554cdfd41a48692a3c68
This commit is contained in:
@@ -55,24 +55,29 @@ class Target(object):
|
||||
self.arch_variant = build_vars[2]
|
||||
self.cpu_variant = build_vars[3]
|
||||
|
||||
def get_arch_cpu_str(self):
|
||||
"""Return a string that represents the architecture, the architecture
|
||||
variant, and the CPU variant.
|
||||
def get_arch_str(self):
|
||||
"""Return a string that represents the architecture and the
|
||||
architecture variant.
|
||||
|
||||
If TARGET_ARCH == TARGET_ARCH_VARIANT, soong makes targetArchVariant
|
||||
empty. This is the case for aosp_x86_64 and aosp_x86_ab.
|
||||
empty. This is the case for aosp_x86_64.
|
||||
"""
|
||||
if not self.arch_variant or self.arch_variant == self.arch:
|
||||
arch_variant = ''
|
||||
else:
|
||||
arch_variant = '_' + self.arch_variant
|
||||
|
||||
return self.arch + arch_variant
|
||||
|
||||
def get_arch_cpu_str(self):
|
||||
"""Return a string that represents the architecture, the architecture
|
||||
variant, and the CPU variant."""
|
||||
if not self.cpu_variant or self.cpu_variant == 'generic':
|
||||
cpu_variant = ''
|
||||
else:
|
||||
cpu_variant = '_' + self.cpu_variant
|
||||
|
||||
return self.arch + arch_variant + cpu_variant
|
||||
return self.get_arch_str() + cpu_variant
|
||||
|
||||
def get_module_variant_dir_name(self, variant_suffix):
|
||||
"""Create module variant directory name from the architecture, the
|
||||
|
||||
Reference in New Issue
Block a user