summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/idp/make/custom/idp.cfg
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-10-15 09:15:03 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-10-15 09:15:03 +0000
commite1947422466970ff14a018782ffce338977f8012 (patch)
tree30b5f588002c8d406f5c6a2e2cee9c286b86f821 /c/src/lib/libbsp/m68k/idp/make/custom/idp.cfg
parent2009-10-15 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-e1947422466970ff14a018782ffce338977f8012.tar.bz2
2009-10-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* make/custom/idp.cfg: New (relocated from /make/custom).
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/m68k/idp/make/custom/idp.cfg29
1 files changed, 29 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/m68k/idp/make/custom/idp.cfg b/c/src/lib/libbsp/m68k/idp/make/custom/idp.cfg
new file mode 100644
index 0000000000..4c68dba984
--- /dev/null
+++ b/c/src/lib/libbsp/m68k/idp/make/custom/idp.cfg
@@ -0,0 +1,29 @@
+#
+# Config file for the IDP BSP
+#
+# $Id$
+#
+
+include $(RTEMS_ROOT)/make/custom/default.cfg
+
+RTEMS_CPU=m68k
+RTEMS_CPU_MODEL=m68ec040
+
+# This is the actual bsp directory used during the build process.
+RTEMS_BSP_FAMILY=idp
+
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
+#
+CPU_CFLAGS = -msoft-float
+
+# optimize flag: typically -O2
+CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
+
+define bsp-post-link
+ $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec
+ sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \
+ $(PACKHEX) > $(basename $@)$(DOWNEXT)
+ rm -f $(basename $@).srec
+ $(default-bsp-post-link)
+endef