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
This commit is contained in:
Colin Cross 2014-01-22 17:36:05 -08:00 committed by Ying Wang
parent c3256c770d
commit 6e087a339b
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ endif
## Define arm-vs-thumb-mode flags. ## Define arm-vs-thumb-mode flags.
########################################################### ###########################################################
LOCAL_ARM_MODE := $(strip $(LOCAL_ARM_MODE)) 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) arm_objects_mode := $(if $(LOCAL_ARM_MODE),$(LOCAL_ARM_MODE),arm)
normal_objects_mode := $(if $(LOCAL_ARM_MODE),$(LOCAL_ARM_MODE),thumb) normal_objects_mode := $(if $(LOCAL_ARM_MODE),$(LOCAL_ARM_MODE),thumb)