summaryrefslogtreecommitdiffstats
path: root/ports
diff options
context:
space:
mode:
authorEd Sutter <edsutterjr@gmail.com>2015-06-29 18:23:41 -0400
committerEd Sutter <edsutterjr@gmail.com>2015-06-29 18:23:41 -0400
commit08a34d82b6f2247e6df1dacd749961d1a0826876 (patch)
treeb7632fcf78a31ddde5024c727aa17a5f605972d5 /ports
parentremove ctype_ptr variables in prep for non-libc build (diff)
downloadumon-08a34d82b6f2247e6df1dacd749961d1a0826876.tar.bz2
add support for RTEMS toolset, make this the default
Diffstat (limited to 'ports')
-rw-r--r--ports/beagleboneblack/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/ports/beagleboneblack/Makefile b/ports/beagleboneblack/Makefile
index 8836ae9..c518092 100644
--- a/ports/beagleboneblack/Makefile
+++ b/ports/beagleboneblack/Makefile
@@ -8,12 +8,23 @@ TOPDIR = $(UMONTOP)
TGTDIR = beagleboneblack
CPUTYPE = arm
FILETYPE = elf
+TOOLSET = RTEMS
+ifeq ($(TOOLSET),RTEMS)
+#
+# Using tools built by RTEMS Source Builder:
+#
+ABIDIR = $(HOME)/development/rtems/4.11/lib/gcc/arm-rtems4.11/4.9.2
+TOOL_PREFIX = arm-rtems4.11
+else
+#
# Using tools installed by "sudo apt-get install gcc-arm-none-eabi"...
+#
ABIDIR = /usr/lib/gcc/arm-none-eabi/4.8.2
-LIBABIDIR = -L $(ABIDIR)
TOOL_PREFIX = /usr/bin/arm-none-eabi
+endif
+LIBABIDIR = -L $(ABIDIR)
COMMON_AFLAGS = -c -D PLATFORM_$(PLATFORM)=1 -D ASSEMBLY_ONLY
CUSTOM_CFLAGS = -mcpu=cortex-a8 -O2 -isystem $(ABIDIR)/include -Wno-char-subscripts