summaryrefslogtreecommitdiffstats
path: root/bsps/powerpc/tqm8xx/config/tqm8xx.inc
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/powerpc/tqm8xx/config/tqm8xx.inc')
-rw-r--r--bsps/powerpc/tqm8xx/config/tqm8xx.inc23
1 files changed, 23 insertions, 0 deletions
diff --git a/bsps/powerpc/tqm8xx/config/tqm8xx.inc b/bsps/powerpc/tqm8xx/config/tqm8xx.inc
new file mode 100644
index 0000000000..f9a31d0835
--- /dev/null
+++ b/bsps/powerpc/tqm8xx/config/tqm8xx.inc
@@ -0,0 +1,23 @@
+#
+# Config file for a PowerPC MPC8xx-based TQM8xx carrier card
+#
+
+include $(RTEMS_ROOT)/make/custom/default.cfg
+
+RTEMS_CPU=powerpc
+
+CPU_CFLAGS = -mcpu=860 -Dmpc860 \
+ -mstrict-align -fno-strict-aliasing \
+ -meabi -msdata=sysv -fno-common
+
+# optimize flag: typically -O2
+CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
+CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+
+LDFLAGS = -Wl,--gc-sections
+
+define bsp-post-link
+ cp $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
+ $(STRIP) $(basename $@)$(DOWNEXT)
+ $(default-bsp-post-link)
+endef