diff options
author | Narayan Kamath <narayan@google.com> | 2014-03-26 17:33:55 +0000 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2014-03-28 17:10:47 +0000 |
commit | 1a43b375b463c5b2bdac7d4038ea57d83fc2ae0c (patch) | |
tree | 2c0315faa82bf6422621bff32097412c1481e8e6 /core/envsetup.mk | |
parent | fa97fe67d32860e498acd59eabb7dbc71ca2ff31 (diff) | |
download | build-1a43b375b463c5b2bdac7d4038ea57d83fc2ae0c.zip build-1a43b375b463c5b2bdac7d4038ea57d83fc2ae0c.tar.gz build-1a43b375b463c5b2bdac7d4038ea57d83fc2ae0c.tar.bz2 |
Extend the CPU ABI specification mechanism.
Add a (read only) system property that is a comma
separated list of ABIs supported by the device in order
of preference. For example, typical arm-v8 device might
define:
ro.cpu.abilist = arm64-v8a,armeabi-v7a,armeabi
For most purposes, a single flattened list like the above is
probably more useful than the parallel system of variables
TARGET_CPU_ABI{2} / TARGET_2ND_ARCH_CPU_ABI{2} that we use
in the build system.
Change-Id: If9102669ad9f5f8fd89a8bcc5bf88cca1acadc3c
Diffstat (limited to 'core/envsetup.mk')
-rw-r--r-- | core/envsetup.mk | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/core/envsetup.mk b/core/envsetup.mk index 4cb389b..628c95b 100644 --- a/core/envsetup.mk +++ b/core/envsetup.mk @@ -143,6 +143,28 @@ endif TARGET_DEVICE_DIR := $(patsubst %/,%,$(dir $(board_config_mk))) board_config_mk := +# "ro.product.cpu.abilist" is a comma separated list of ABIs (in order +# of preference) that the target supports. If a TARGET_CPU_ABI_LIST +# is specified by the board configuration, we use that. If not, we +# build a list out of the TARGET_CPU_ABIs specified by the config. +ifeq (,$(TARGET_CPU_ABI_LIST)) + TARGET_CPU_ABI_LIST := $(TARGET_CPU_ABI) + ifneq (,$(TARGET_CPU_ABI2)) + TARGET_CPU_ABI_LIST += ,$(TARGET_CPU_ABI2) + endif + ifneq (,$(TARGET_2ND_CPU_ABI)) + TARGET_CPU_ABI_LIST += ,$(TARGET_2ND_CPU_ABI) + endif + ifneq (,$(TARGET_2ND_CPU_ABI2)) + TARGET_CPU_ABI_LIST += ,$(TARGET_2ND_CPU_ABI2) + endif + + # Strip whitespace from the ABI list string. + empty := + space := $(empty) $(empty) + TARGET_CPU_ABI_LIST := $(subst $(space),,$(TARGET_CPU_ABI_LIST)) +endif + # --------------------------------------------------------------- # Set up configuration for target machine. # The following must be set: |