summaryrefslogtreecommitdiffstats
path: root/bsps/sparc/leon3/config/leon3.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/sparc/leon3/config/leon3.cfg')
-rw-r--r--bsps/sparc/leon3/config/leon3.cfg17
1 files changed, 17 insertions, 0 deletions
diff --git a/bsps/sparc/leon3/config/leon3.cfg b/bsps/sparc/leon3/config/leon3.cfg
new file mode 100644
index 0000000000..d931d6c5f1
--- /dev/null
+++ b/bsps/sparc/leon3/config/leon3.cfg
@@ -0,0 +1,17 @@
+#
+# Config file for the LEON3 SPARC processor.
+#
+
+include $(RTEMS_ROOT)/make/custom/default.cfg
+
+RTEMS_CPU=sparc
+
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
+CPU_CFLAGS = -mcpu=leon3
+
+# optimize flag: typically -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
+CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+
+LDFLAGS = -Wl,--gc-sections