summaryrefslogtreecommitdiffstats
path: root/bsps/mips/hurricane/config/hurricane.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/mips/hurricane/config/hurricane.cfg')
-rw-r--r--bsps/mips/hurricane/config/hurricane.cfg22
1 files changed, 22 insertions, 0 deletions
diff --git a/bsps/mips/hurricane/config/hurricane.cfg b/bsps/mips/hurricane/config/hurricane.cfg
new file mode 100644
index 0000000000..b1c050b966
--- /dev/null
+++ b/bsps/mips/hurricane/config/hurricane.cfg
@@ -0,0 +1,22 @@
+#
+# Config file for the Quick Logic Hurricane evaluation board with PMC-Sierra RM5231 cpu
+#
+
+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 = -mips3 -G0 -EL
+
+# optimize flag: typically -O2
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+
+LDFLAGS = -Wl,--gc-sections
+
+define bsp-post-link
+ $(OBJCOPY) -O srec $@ $(basename $@).srec1
+ $(PACKHEX) < $(basename $@).srec1 > $(basename $@)$(DOWNEXT)
+ $(RM) $(basename $@).srec1
+ $(default-bsp-post-link)
+endef