diff options
Diffstat (limited to 'config/toolchain.mk')
-rw-r--r-- | config/toolchain.mk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config/toolchain.mk b/config/toolchain.mk new file mode 100644 index 0000000..aeaee87 --- /dev/null +++ b/config/toolchain.mk @@ -0,0 +1,14 @@ +ifeq ($(CPU),arm) +TOOLCHAIN = arm-none-eabi +ifeq ($(CPU_FLAVOR),lpc1768) +TARGET_CPPFLAGS += -mcpu=cortex-m3 -mtune=cortex-m3 -D__thumb2__=1 -march=armv7-m -mfix-cortex-m3-ldrd +endif +TARGET_CPPFLAGS += -mthumb -Os -mapcs-frame -msoft-float -mno-sched-prolog -fno-hosted -ffunction-sections -fdata-sections +endif + +TARGET_CC = $(TOOLCHAIN)-gcc +TARGET_CXX = $(TOOLCHAIN)-g++ +TARGET_LD = $(TOOLCHAIN)-gcc +TARGET_RANLIB = $(TOOLCHAIN)-ranlib +TARGET_AR = $(TOOLCHAIN)-ar +TARGET_OBJCOPY = $(TOOLCHAIN)-objcopy |