summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-01-03 16:24:52 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-01-03 16:24:52 +0100
commit43e2f4f2b71318fb3361f72bfbd99fe7e9294ffb (patch)
tree3ae40c51e397e3548bcdefe55fa524cbb6dbbcbf /mk
parent7c49ec073b4edbe32867d1d395fd3cf9c7bffda7 (diff)
parent0613208e4f8ddf065caf4c85f02c39ee48fd290f (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'mk')
-rw-r--r--mk/vars.mk11
1 files changed, 7 insertions, 4 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index 12ffaeed6..757bb638c 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -77,13 +77,16 @@ ifneq ($(strip ${ADK_USE_CCACHE}),)
TARGET_COMPILER_PREFIX=$(STAGING_HOST_DIR)/usr/bin/ccache ${TARGET_CROSS}
endif
-# use a gcc wrapper for uClinux
-ifeq ($(ADK_TARGET_UCLINUX),y)
-TARGET_CC:= adk-uclinux-gcc
-else
# target tools
TARGET_CC:= ${TARGET_COMPILER_PREFIX}gcc
+
+# use a gcc wrapper for coldfire support
+ifeq ($(ADK_TARGET_UCLINUX),y)
+ifeq ($(ADK_TARGET_ARCH_M68K),y)
+TARGET_CC:= adk-uclinux-gcc
endif
+endif
+
TARGET_CXX:= ${TARGET_COMPILER_PREFIX}g++
TARGET_LD:= ${TARGET_COMPILER_PREFIX}ld
TARGET_AR:= ${TARGET_COMPILER_PREFIX}ar