summaryrefslogtreecommitdiffstats
path: root/bsps/arm/tms570/config/tms570ls3137.inc
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/arm/tms570/config/tms570ls3137.inc')
-rw-r--r--bsps/arm/tms570/config/tms570ls3137.inc25
1 files changed, 25 insertions, 0 deletions
diff --git a/bsps/arm/tms570/config/tms570ls3137.inc b/bsps/arm/tms570/config/tms570ls3137.inc
new file mode 100644
index 0000000000..76d5ccd2ba
--- /dev/null
+++ b/bsps/arm/tms570/config/tms570ls3137.inc
@@ -0,0 +1,25 @@
+#
+# Config file for TMS570LS3137 board.
+#
+
+include $(RTEMS_ROOT)/make/custom/default.cfg
+
+RTEMS_CPU = arm
+
+CPU_CFLAGS = -march=armv7-r -mthumb -mbig-endian
+CPU_CFLAGS += -mfpu=vfpv3-d16 -mfloat-abi=hard
+
+CFLAGS_OPTIMIZE_V = -O2 -ggdb
+CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+
+LDFLAGS = -Wl,--gc-sections
+
+BINEXT?=.bin
+
+# This defines the operations performed on the linked executable.
+# is currently required.
+define bsp-post-link
+ $(OBJCOPY) -O binary --strip-all \
+ $(basename $@)$(EXEEXT) $(basename $@)$(BINEXT)
+ $(SIZE) $(basename $@)$(EXEEXT)
+endef