summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2014-01-22 17:36:05 -0800
committerYing Wang <wangying@google.com>2014-01-24 13:42:01 -0800
commit6e087a339b61804aee00dbdf85106653c861e32f (patch)
tree59fa913a33c3b92c39b033c8b8b70e9a72e7e9db /core
parentc3256c770df02135496503612a4ffdfa526af7e7 (diff)
downloadbuild-6e087a339b61804aee00dbdf85106653c861e32f.zip
build-6e087a339b61804aee00dbdf85106653c861e32f.tar.gz
build-6e087a339b61804aee00dbdf85106653c861e32f.tar.bz2
build: use correct arm vs thumb arguments for 2nd arch builds
Set arm_objects_mode and normal_objects_mode when building a module for arm when it is the 2nd arch. Change-Id: I5f7df519b6e1dde6cbf92d106681f07a58e1f1f2
Diffstat (limited to 'core')
-rw-r--r--core/binary.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/binary.mk b/core/binary.mk
index a3a9c16..3582ba0 100644
--- a/core/binary.mk
+++ b/core/binary.mk
@@ -281,7 +281,7 @@ endif
## Define arm-vs-thumb-mode flags.
###########################################################
LOCAL_ARM_MODE := $(strip $(LOCAL_ARM_MODE))
-ifeq ($(TARGET_ARCH),arm)
+ifeq ($(TARGET_$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH),arm)
arm_objects_mode := $(if $(LOCAL_ARM_MODE),$(LOCAL_ARM_MODE),arm)
normal_objects_mode := $(if $(LOCAL_ARM_MODE),$(LOCAL_ARM_MODE),thumb)