From b19e3ee30e1ddc32cd7c8ff14002c6fe0b8b4718 Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Fri, 9 Jul 2010 10:07:52 +0800 Subject: [PATCH] Set arm specific variables to be empty for non-arm platforms These variables are useless for non-arm platforms, and will generate misleading messages during building process. Change-Id: I37c46ac8d30f353333803d9591b65fca24ce3fd5 --- core/binary.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/binary.mk b/core/binary.mk index 5fb0e7532..33585448b 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -102,6 +102,7 @@ endif ## Define arm-vs-thumb-mode flags. ########################################################### LOCAL_ARM_MODE := $(strip $(LOCAL_ARM_MODE)) +ifeq ($(TARGET_ARCH),arm) arm_objects_mode := $(if $(LOCAL_ARM_MODE),$(LOCAL_ARM_MODE),arm) normal_objects_mode := $(if $(LOCAL_ARM_MODE),$(LOCAL_ARM_MODE),thumb) @@ -110,6 +111,12 @@ normal_objects_mode := $(if $(LOCAL_ARM_MODE),$(LOCAL_ARM_MODE),thumb) # actually used (although they are usually empty). arm_objects_cflags := $($(my_prefix)$(arm_objects_mode)_CFLAGS) normal_objects_cflags := $($(my_prefix)$(normal_objects_mode)_CFLAGS) +else +arm_objects_mode := +normal_objects_mode := +arm_objects_cflags := +normal_objects_cflags := +endif ########################################################### ## Define per-module debugging flags. Users can turn on -- 2.11.0