diff options
author | Chih-Wei Huang <cwhuang@linux.org.tw> | 2010-07-09 10:07:52 +0800 |
---|---|---|
committer | Chih-Wei Huang <cwhuang@linux.org.tw> | 2010-07-09 11:54:27 +0800 |
commit | 0d09e587aaa52fe1d3f1bfdd6faec9c5e232e1df (patch) | |
tree | 8c1d6b56390623146d806a2fdd6c766a9065c2ab /core/binary.mk | |
parent | 3f03d114f33bf842dceb67a00c730b821ae4ac72 (diff) | |
download | build-0d09e587aaa52fe1d3f1bfdd6faec9c5e232e1df.zip build-0d09e587aaa52fe1d3f1bfdd6faec9c5e232e1df.tar.gz build-0d09e587aaa52fe1d3f1bfdd6faec9c5e232e1df.tar.bz2 |
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
Diffstat (limited to 'core/binary.mk')
-rw-r--r-- | core/binary.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/binary.mk b/core/binary.mk index d5528b1..2f0a243 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -53,6 +53,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) @@ -61,6 +62,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 |