diff options
author | Narayan Kamath <narayan@google.com> | 2014-04-09 10:03:41 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2014-04-09 10:03:41 +0100 |
commit | 8af7e8ed3ecdfdf06d251c37c0cedfe340ffe18a (patch) | |
tree | f48c6bdbd2aa5e4e222ed11ad8c8ba54b93d494b /core | |
parent | 049808e3263bb347e6a1eced99b348f98174c636 (diff) | |
parent | 1852237a1bb4483e16d8991e1b6118cacb5afcbe (diff) | |
download | build-8af7e8ed3ecdfdf06d251c37c0cedfe340ffe18a.zip build-8af7e8ed3ecdfdf06d251c37c0cedfe340ffe18a.tar.gz build-8af7e8ed3ecdfdf06d251c37c0cedfe340ffe18a.tar.bz2 |
resolved conflicts for merge of 1852237a to klp-modular-dev-plus-aosp
Change-Id: I09a8a4e95fc956392a0c61f38bd12332149a8d96
Diffstat (limited to 'core')
-rw-r--r-- | core/Makefile | 2 | ||||
-rw-r--r-- | core/config.mk | 38 | ||||
-rw-r--r-- | core/envsetup.mk | 22 |
3 files changed, 40 insertions, 22 deletions
diff --git a/core/Makefile b/core/Makefile index 3573928..0ddb551 100644 --- a/core/Makefile +++ b/core/Makefile @@ -192,6 +192,8 @@ $(INSTALLED_BUILD_PROP_TARGET): $(BUILDINFO_SH) $(INTERNAL_BUILD_ID_MAKEFILE) $( BUILD_FINGERPRINT="$(BUILD_FINGERPRINT)" \ TARGET_BOARD_PLATFORM="$(TARGET_BOARD_PLATFORM)" \ TARGET_CPU_ABI_LIST="$(TARGET_CPU_ABI_LIST)" \ + TARGET_CPU_ABI_LIST_32_BIT="$(TARGET_CPU_ABI_LIST_32_BIT)" \ + TARGET_CPU_ABI_LIST_64_BIT="$(TARGET_CPU_ABI_LIST_64_BIT)" \ TARGET_CPU_ABI="$(TARGET_CPU_ABI)" \ TARGET_CPU_ABI2="$(TARGET_CPU_ABI2)" \ TARGET_AAPT_CHARACTERISTICS="$(TARGET_AAPT_CHARACTERISTICS)" \ diff --git a/core/config.mk b/core/config.mk index d2cd965..b0ad841 100644 --- a/core/config.mk +++ b/core/config.mk @@ -231,6 +231,44 @@ combo_2nd_arch_prefix := $(TARGET_2ND_ARCH_VAR_PREFIX) include $(BUILD_SYSTEM)/combo/select.mk endif +# "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) $(TARGET_CPU_ABI2) $(TARGET_2ND_CPU_ABI) $(TARGET_2ND_CPU_ABI2) +endif + +# "ro.product.cpu.abilist32" and "ro.product.cpu.abilist64" are +# comma separated lists of the 32 and 64 bit ABIs (in order of +# preference) that the target supports. If TARGET_CPU_ABI_LIST_{32,64}_BIT +# are defined by the board config, we use them. Else, we construct +# these lists based on whether TARGET_IS_64_BIT is set. +# +# Note that this assumes that the 2ND_CPU_ABI for a 64 bit target +# is always 32 bits. If this isn't the case, these variables should +# be overriden in the boarc configuration. +ifeq (,$(TARGET_CPU_ABI_LIST_64_BIT)) + ifeq (true,$(TARGET_IS_64_BIT)) + TARGET_CPU_ABI_LIST_64_BIT := $(TARGET_CPU_ABI) $(TARGET_CPU_ABI2) + endif +endif + +ifeq (,$(TARGET_CPU_ABI_LIST_32_BIT)) + ifneq (true,$(TARGET_IS_64_BIT)) + TARGET_CPU_ABI_LIST_32_BIT := $(TARGET_CPU_ABI) $(TARGET_CPU_ABI2) + else + # For a 64 bit target, assume that the 2ND_CPU_ABI + # is a 32 bit ABI. + TARGET_CPU_ABI_LIST_32_BIT := $(TARGET_2ND_CPU_ABI) $(TARGET_2ND_CPU_ABI2) + endif +endif + +# Strip whitespace from the ABI list string. +TARGET_CPU_ABI_LIST := $(subst $(space),$(comma),$(strip $(TARGET_CPU_ABI_LIST))) +TARGET_CPU_ABI_LIST_32_BIT := $(subst $(space),$(comma),$(strip $(TARGET_CPU_ABI_LIST_32_BIT))) +TARGET_CPU_ABI_LIST_64_BIT := $(subst $(space),$(comma),$(strip $(TARGET_CPU_ABI_LIST_64_BIT))) + # Compute TARGET_TOOLCHAIN_ROOT from TARGET_TOOLS_PREFIX # if only TARGET_TOOLS_PREFIX is passed to the make command. ifndef TARGET_TOOLCHAIN_ROOT diff --git a/core/envsetup.mk b/core/envsetup.mk index 628c95b..4cb389b 100644 --- a/core/envsetup.mk +++ b/core/envsetup.mk @@ -143,28 +143,6 @@ 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: |