summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/lm32/milkymist/make/custom/milkymist.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/lm32/milkymist/make/custom/milkymist.cfg')
-rw-r--r--c/src/lib/libbsp/lm32/milkymist/make/custom/milkymist.cfg28
1 files changed, 28 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/lm32/milkymist/make/custom/milkymist.cfg b/c/src/lib/libbsp/lm32/milkymist/make/custom/milkymist.cfg
new file mode 100644
index 0000000000..5571f7b113
--- /dev/null
+++ b/c/src/lib/libbsp/lm32/milkymist/make/custom/milkymist.cfg
@@ -0,0 +1,28 @@
+#
+# Config file for the milkymist BSP
+#
+
+# Choices for CPU_MODEL:
+# tiny (no cache)
+# standard (instruction cache)
+# fast (instruction and data cache)
+
+RTEMS_CPU = lm32
+RTEMS_CPU_MODEL = lm32
+
+include $(RTEMS_ROOT)/make/custom/default.cfg
+
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
+CPU_CFLAGS = -mbarrel-shift-enabled -mmultiply-enabled \
+ -mdivide-enabled -msign-extend-enabled
+
+# optimize flag: typically -O2
+# ATM, doesn't work with optimization levels > 0
+CFLAGS_OPTIMIZE_V = -O2 -g
+
+define bsp-post-link
+ $(OBJCOPY) -O binary --strip-all $(basename $@).exe \
+ -R entry -R exceptions $(basename $@)$(DOWNEXT)
+ $(default-bsp-post-link)
+endef