From ee8ef23f2f72f63d7ca56dcd5d1a5b30b67edf48 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 31 May 2012 20:17:02 +0200 Subject: [PATCH] software: use new Clang target name --- software/common.mak | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/software/common.mak b/software/common.mak index 4f2b89ee..45dffd6d 100644 --- a/software/common.mak +++ b/software/common.mak @@ -1,20 +1,17 @@ -# Mico32 toolchain -# -CROSS_COMPILER=lm32-elf- -# TODO: mico32 should be renamed lm32 in LLVM -CLANG=clang -ccc-host-triple mico32-elf +TARGET_PREFIX=lm32-elf +CLANG=clang -ccc-host-triple $(TARGET_PREFIX) CC_normal := $(CLANG) -AR_normal := $(CROSS_COMPILER)ar -LD_normal := $(CROSS_COMPILER)ld -OBJCOPY_normal := $(CROSS_COMPILER)objcopy -RANLIB_normal := $(CROSS_COMPILER)ranlib +AR_normal := $(TARGET_PREFIX)-ar +LD_normal := $(TARGET_PREFIX)-ld +OBJCOPY_normal := $(TARGET_PREFIX)-objcopy +RANLIB_normal := $(TARGET_PREFIX)-ranlib CC_quiet = @echo " CC " $@ && $(CLANG) -AR_quiet = @echo " AR " $@ && $(CROSS_COMPILER)ar -LD_quiet = @echo " LD " $@ && $(CROSS_COMPILER)ld -OBJCOPY_quiet = @echo " OBJCOPY " $@ && $(CROSS_COMPILER)objcopy -RANLIB_quiet = @echo " RANLIB " $@ && $(CROSS_COMPILER)ranlib +AR_quiet = @echo " AR " $@ && $(TARGET_PREFIX)-ar +LD_quiet = @echo " LD " $@ && $(TARGET_PREFIX)-ld +OBJCOPY_quiet = @echo " OBJCOPY " $@ && $(TARGET_PREFIX)-objcopy +RANLIB_quiet = @echo " RANLIB " $@ && $(TARGET_PREFIX)-ranlib ifeq ($(V),1) CC = $(CC_normal) -- 2.30.2