mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
bare/devel: Add qemu-couverture support.
Add a build set and configuration to build a QEMU we can use for coverage testing.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user