summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to 'make')
-rw-r--r--make/ChangeLog5
-rw-r--r--make/Makefile.am1
-rw-r--r--make/custom/qemuppc.cfg25
3 files changed, 31 insertions, 0 deletions
diff --git a/make/ChangeLog b/make/ChangeLog
index a523aaac47..1694eed1fe 100644
--- a/make/ChangeLog
+++ b/make/ChangeLog
@@ -1,3 +1,8 @@
+2009-09-24 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * Makefile.am: Add qemuppc.cfg.
+ * custom/qemuppc.cfg: New file.
+
2009-09-14 Ralf Corsépius <ralf.corsepius@rtems.org>
* custom/gen83xx.cfg: Remove -funit-at-a-time.
diff --git a/make/Makefile.am b/make/Makefile.am
index 3af7bb6ea5..695799b097 100644
--- a/make/Makefile.am
+++ b/make/Makefile.am
@@ -113,6 +113,7 @@ EXTRA_DIST += custom/pm520_cr825.cfg
EXTRA_DIST += custom/pm520_ze30.cfg
EXTRA_DIST += custom/posix.cfg
EXTRA_DIST += custom/psim.cfg
+EXTRA_DIST += custom/qemuppc.cfg
EXTRA_DIST += custom/rbtx4925.cfg
EXTRA_DIST += custom/rbtx4938.cfg
EXTRA_DIST += custom/rtl22xx.cfg
diff --git a/make/custom/qemuppc.cfg b/make/custom/qemuppc.cfg
new file mode 100644
index 0000000000..aaaff5cb54
--- /dev/null
+++ b/make/custom/qemuppc.cfg
@@ -0,0 +1,25 @@
+#
+# Config file for the PowerPC 60x simulator in Qemu
+#
+# $Id$
+#
+
+include $(RTEMS_ROOT)/make/custom/default.cfg
+
+RTEMS_CPU=powerpc
+RTEMS_CPU_MODEL=mpc6xx
+
+# This is the actual bsp directory used during the build process.
+RTEMS_BSP_FAMILY=qemuppc
+
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
+CPU_CFLAGS = -mcpu=603e -Dppc603e
+
+# optimize flag: typically -O2
+CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
+
+define bsp-post-link
+ $(default-bsp-post-link)
+ $(OBJCOPY) -O binary $(basename $@).exe $(basename $@)$(DOWNEXT)
+endef