diff options
author | Chris Johns <chrisj@rtems.org> | 2018-05-01 11:58:43 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2018-05-01 11:58:43 +1000 |
commit | 6ac3ed87d3b52f59e94997b8b134e2dd48c3e66c (patch) | |
tree | be3bdf6c81263ab5c127bdd8c9776fe29b3e108b /source-builder/config/qemu-1-1.cfg | |
parent | rtems-tools: Update to pick up the --enable-rtems-debug fix. (diff) | |
download | rtems-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 'source-builder/config/qemu-1-1.cfg')
-rw-r--r-- | source-builder/config/qemu-1-1.cfg | 51 |
1 files changed, 41 insertions, 10 deletions
diff --git a/source-builder/config/qemu-1-1.cfg b/source-builder/config/qemu-1-1.cfg index c19419f..43af72e 100644 --- a/source-builder/config/qemu-1-1.cfg +++ b/source-builder/config/qemu-1-1.cfg @@ -28,6 +28,44 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) # %source set qemu http://wiki.qemu-project.org/download/qemu-%{qemu_version}.tar.bz2 + +# +# QEMU Disable component list. +# +# We are not interested in the VM use case for qemu and most of that +# functionality carries host platform baggage which complicates building on a +# range of host platforms. +# +# You can specialise before including this config file. +# +# +%define qemu_std_disables --disable-werror +%define qemu_std_disables %{qemu_std_disables} --disable-smartcard-nss +%define qemu_std_disables %{qemu_std_disables} --disable-tools +%define qemu_std_disables %{qemu_std_disables} --disable-pie +%define qemu_std_disables %{qemu_std_disables} --disable-vnc +%define qemu_std_disables %{qemu_std_disables} --disable-sdl +%define qemu_std_disables %{qemu_std_disables} --disable-gtk +%define qemu_std_disables %{qemu_std_disables} --disable-opengl +%define qemu_std_disables %{qemu_std_disables} --disable-netmap +%ifn %{defined qemu_disables} + %define qemu_disables %{nil} +%endif +%define qemu_disables %{qemu_std_disables} %{qemu_disables} + +# +# QEMU Targets to build. +# +%if %{!defined qemu_archs} && %{!defined with_qemu_archs} + %define qemu_target_list %{nil} +%else + %if %{defined with_qemu_archs} + %define qemu_target_list --target-list=%{with_qemu_archs} + %else + %define qemu_target_list --target-list=%{qemu_archs} + %endif +%endif + # # Prepare the source code. # @@ -73,22 +111,15 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) PKG_CONFIG_PATH=$SYSROOT/lib/pkgconfig \ PKG_CONFIG_BUILD_TOP_DIR=$SB_TMPROOT \ %{_ld_library_path}=$SYSROOT/lib \ - LDFLAGS="-Wl,-rpath -Wl,/$SB_PREFIX_CLEAN/lib ${VDE_LDFLAGS}" \ + LDFLAGS="-Wl,-rpath -Wl,/$SB_PREFIX_CLEAN/lib -L$SYSROOT/lib ${VDE_LDFLAGS}" \ CFLAGS="${CFLAGS} ${VDE_CFLAGS}" \ ../${source_dir_qemu}/configure \ --prefix=%{_prefix} \ ${CROSS_PREFIX_OPTION} \ --make=%{__make} \ + %{qemu_target_list} \ ${VDE_CONFIG} \ - --disable-smartcard-nss \ - --disable-werror \ - --disable-tools \ - --disable-pie \ - --disable-vnc \ - --disable-sdl \ - --disable-gtk \ - --disable-opengl \ - --disable-netmap + %{qemu_disables} %{_ld_library_path}=$SYSROOT/lib \ %{__make} %{?_smp_mflags} all |