summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
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