summaryrefslogtreecommitdiff
path: root/config/toolchain.mk
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-01-24 00:56:49 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-01-24 00:56:49 +0100
commitc437f86b84ef0a5c98a52009489313497a5086e4 (patch)
treea18504a65f1a304e4da5aa2b60c710e48b88a866 /config/toolchain.mk
parent598e538787c7cf9d8aff9bc57f5d6ce5724cd4cb (diff)
Adding a few makefiles.
Diffstat (limited to 'config/toolchain.mk')
-rw-r--r--config/toolchain.mk14
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