software/common.mak: use clang + lm32-elf binutils only
This commit is contained in:
parent
8d1bc50120
commit
e18447d166
|
@ -1,18 +1,17 @@
|
||||||
# Mico32 toolchain
|
# Mico32 toolchain
|
||||||
#
|
#
|
||||||
CROSS_COMPILER=lm32-rtems4.11-
|
CROSS_COMPILER=lm32-elf-
|
||||||
CLANG=clang -ccc-host-triple mico32-generic-generic -ccc-gcc-name $(CROSS_COMPILER)gcc
|
# TODO: mico32 should be renamed lm32 in LLVM
|
||||||
|
CLANG=clang -ccc-host-triple mico32-elf
|
||||||
|
|
||||||
CC_normal := $(CLANG)
|
CC_normal := $(CLANG)
|
||||||
AR_normal := $(CROSS_COMPILER)ar
|
AR_normal := $(CROSS_COMPILER)ar
|
||||||
AS_normal := $(CROSS_COMPILER)as
|
|
||||||
LD_normal := $(CROSS_COMPILER)ld
|
LD_normal := $(CROSS_COMPILER)ld
|
||||||
OBJCOPY_normal := $(CROSS_COMPILER)objcopy
|
OBJCOPY_normal := $(CROSS_COMPILER)objcopy
|
||||||
RANLIB_normal := $(CROSS_COMPILER)ranlib
|
RANLIB_normal := $(CROSS_COMPILER)ranlib
|
||||||
|
|
||||||
CC_quiet = @echo " CC " $@ && $(CLANG)
|
CC_quiet = @echo " CC " $@ && $(CLANG)
|
||||||
AR_quiet = @echo " AR " $@ && $(CROSS_COMPILER)ar
|
AR_quiet = @echo " AR " $@ && $(CROSS_COMPILER)ar
|
||||||
AS_quiet = @echo " AS " $@ && $(CROSS_COMPILER)as
|
|
||||||
LD_quiet = @echo " LD " $@ && $(CROSS_COMPILER)ld
|
LD_quiet = @echo " LD " $@ && $(CROSS_COMPILER)ld
|
||||||
OBJCOPY_quiet = @echo " OBJCOPY " $@ && $(CROSS_COMPILER)objcopy
|
OBJCOPY_quiet = @echo " OBJCOPY " $@ && $(CROSS_COMPILER)objcopy
|
||||||
RANLIB_quiet = @echo " RANLIB " $@ && $(CROSS_COMPILER)ranlib
|
RANLIB_quiet = @echo " RANLIB " $@ && $(CROSS_COMPILER)ranlib
|
||||||
|
@ -20,14 +19,12 @@ RANLIB_quiet = @echo " RANLIB " $@ && $(CROSS_COMPILER)ranlib
|
||||||
ifeq ($(V),1)
|
ifeq ($(V),1)
|
||||||
CC = $(CC_normal)
|
CC = $(CC_normal)
|
||||||
AR = $(AR_normal)
|
AR = $(AR_normal)
|
||||||
AS = $(AS_normal)
|
|
||||||
LD = $(LD_normal)
|
LD = $(LD_normal)
|
||||||
OBJCOPY = $(OBJCOPY_normal)
|
OBJCOPY = $(OBJCOPY_normal)
|
||||||
RANLIB = $(RANLIB_normal)
|
RANLIB = $(RANLIB_normal)
|
||||||
else
|
else
|
||||||
CC = $(CC_quiet)
|
CC = $(CC_quiet)
|
||||||
AR = $(AR_quiet)
|
AR = $(AR_quiet)
|
||||||
AS = $(AS_quiet)
|
|
||||||
LD = $(LD_quiet)
|
LD = $(LD_quiet)
|
||||||
OBJCOPY = $(OBJCOPY_quiet)
|
OBJCOPY = $(OBJCOPY_quiet)
|
||||||
RANLIB = $(RANLIB_quiet)
|
RANLIB = $(RANLIB_quiet)
|
||||||
|
@ -36,7 +33,6 @@ endif
|
||||||
# Toolchain options
|
# Toolchain options
|
||||||
#
|
#
|
||||||
INCLUDES = -I$(M2DIR)/software/include/base -I$(M2DIR)/software/include -I$(M2DIR)/common
|
INCLUDES = -I$(M2DIR)/software/include/base -I$(M2DIR)/software/include -I$(M2DIR)/common
|
||||||
ASFLAGS = -nostdinc $(INCLUDES)
|
|
||||||
CFLAGS = -O9 -Wall -Wstrict-prototypes -Wold-style-definition -Wshadow \
|
CFLAGS = -O9 -Wall -Wstrict-prototypes -Wold-style-definition -Wshadow \
|
||||||
-Wmissing-prototypes -fsigned-char -nostdinc $(INCLUDES)
|
-Wmissing-prototypes -fsigned-char -nostdinc $(INCLUDES)
|
||||||
LDFLAGS = -nostdlib -nodefaultlibs
|
LDFLAGS = -nostdlib -nodefaultlibs
|
||||||
|
|
Loading…
Reference in New Issue