summaryrefslogtreecommitdiffstats
path: root/bare
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2018-05-01 11:58:43 +1000
committerChris Johns <chrisj@rtems.org>2018-05-01 11:58:43 +1000
commit6ac3ed87d3b52f59e94997b8b134e2dd48c3e66c (patch)
treebe3bdf6c81263ab5c127bdd8c9776fe29b3e108b /bare
parentrtems-tools: Update to pick up the --enable-rtems-debug fix. (diff)
downloadrtems-source-builder-6ac3ed87d3b52f59e94997b8b134e2dd48c3e66c.tar.bz2
bare/devel: Add qemu-couverture support.
Add a build set and configuration to build a QEMU we can use for coverage testing.
Diffstat (limited to 'bare')
-rw-r--r--bare/config/devel/qemu-couverture-git-1.cfg43
-rw-r--r--bare/config/devel/qemu-couverture.bset25
2 files changed, 68 insertions, 0 deletions
diff --git a/bare/config/devel/qemu-couverture-git-1.cfg b/bare/config/devel/qemu-couverture-git-1.cfg
new file mode 100644
index 0000000..fc8daab
--- /dev/null
+++ b/bare/config/devel/qemu-couverture-git-1.cfg
@@ -0,0 +1,43 @@
+#
+# Qemu from git
+#
+
+%if %{release} == %{nil}
+ %define release 1
+%endif
+
+%include %{_configdir}/base.cfg
+
+%include %{_configdir}/bare-config.cfg
+
+#
+# Couverture QEMU Version.
+#
+%define qemu_version e9299f7591c8ecf3389922f4e7672b6bc5deae71
+%hash sha512 e9299f7591c8ecf3389922f4e7672b6bc5deae71.tar.gz b0479eefb8f067b97828b411b89c6b4ba4097477425a83b7ae439a3c0980c52cdbbbd2b7c85edb412ffe7f20b1822b65be008a989c815ceff72a493e551bbb78
+
+#
+# Couverture QEMU disables for this version.
+#
+%define qemu_disables --disable-virtfs --disable-gnutls --disable-docs
+
+#
+# Couverture QEMU architectures for this version.
+#
+%define qemu_archs arm-softmmu,i386-softmmu,lm32-softmmu,mips-softmmu,ppc-softmmu,sparc-softmmu
+
+#
+# Set Couverture-Qemu source from github.
+#
+%source set qemu https://github.com/AdaCore/qemu/archive/%{qemu_version}.tar.gz
+
+#
+# Patch to send halt signal to qemu-system-or32 process when RTEMS terminates
+#
+%patch add qemu %{rtems_http_git}/rtems-tools/plain/tools/qemu/0001-openrisc-terminate-qemu-process-upon-receiving-a-hal.patch
+%hash sha256 0001-openrisc-terminate-qemu-process-upon-receiving-a-hal.patch 88cd5c9e6e2a6bab23bf049a6f4212ff00083b002b73dbe63b2fe9832717f19e
+
+#
+# The Qemu build instructions. We use 1.x.x Release 1.
+#
+%include %{_configdir}/qemu-1-1.cfg
diff --git a/bare/config/devel/qemu-couverture.bset b/bare/config/devel/qemu-couverture.bset
new file mode 100644
index 0000000..64024a1
--- /dev/null
+++ b/bare/config/devel/qemu-couverture.bset
@@ -0,0 +1,25 @@
+#
+# Build set for QEMU-Couverture
+#
+
+%define release 1
+
+#
+# Name of the package.
+#
+package: qemu-couverture-%{qemu_version}-%{_host}-%{release}
+
+#
+# A magic internal path that would break if changes in the defaults.mc
+# macro file are made.
+#
+%define _internal_autotools_path %{_tmppath}/sb-%{_uid}/${SB_PREFIX_CLEAN}
+
+devel/autotools-internal
+devel/libiconv-1.14-1
+devel/gettext-0.18.3.1-1
+devel/libffi-3.0.13-1
+devel/pixman-0.32.4-1
+devel/glib-2.39.3-1
+devel/dtc-1.4.1-1
+devel/qemu-couverture-git-1