summaryrefslogtreecommitdiffstats
path: root/source-builder/config/qemu-1-1.cfg
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2020-10-03 21:53:04 +1000
committerChris Johns <chrisj@rtems.org>2020-10-06 12:00:21 +1100
commit158ad680aed1c4fd00f00d5b0e269391597872ef (patch)
treeb3c448838c3471d418cfbc8a49b38b1ba32a7211 /source-builder/config/qemu-1-1.cfg
parentfreebsd: FreeBSD 12.1 does not build gcc (diff)
downloadrtems-source-builder-158ad680aed1c4fd00f00d5b0e269391597872ef.tar.bz2
sb: Back port the RTEMS 5 and 6 RSB engine.
- Build GDb first as we do for RTEMS 5 and later - Update GDB to 9.1 for all archs expect SPARC. The SIS patches only apply to 7.9. Disable Python for SPARC Closes #4111
Diffstat (limited to 'source-builder/config/qemu-1-1.cfg')
-rw-r--r--source-builder/config/qemu-1-1.cfg101
1 files changed, 2 insertions, 99 deletions
diff --git a/source-builder/config/qemu-1-1.cfg b/source-builder/config/qemu-1-1.cfg
index c19419f..5d78f68 100644
--- a/source-builder/config/qemu-1-1.cfg
+++ b/source-builder/config/qemu-1-1.cfg
@@ -4,103 +4,6 @@
# This configuration file configure's, make's and install's QEMU.
#
-%if %{release} == %{nil}
-%define release 1
-%endif
+%define qemu_disables --disable-smartcard-nss
-#
-# Select Snapshot Macro Maps
-#
-%select qemu-snapshot
-
-#
-# The description.
-#
-Name: qemu-%{qemu_version}-%{_host}-%{release}
-Summary: Qemu is a simulator of various processors.
-Version: %{qemu_version}
-Release: %{release}
-URL: http://www.qemu.org/
-BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
-
-#
-# Source
-#
-%source set qemu http://wiki.qemu-project.org/download/qemu-%{qemu_version}.tar.bz2
-
-#
-# Prepare the source code.
-#
-%prep
- build_top=$(pwd)
-
- source_dir_qemu="qemu-%{qemu_version}"
- %source setup qemu -q -n qemu-%{qemu_version}
- %patch setup qemu -p1
-
- cd ${build_top}
-
-%build
- build_top=$(pwd)
-
- %{build_directory}
-
- mkdir -p ${build_dir}
- cd ${build_dir}
-
- %if %{pkgconfig check vdeplug}
- VDE_CONFIG="--enable-vde"
- VDE_CFLAGS="%{pkgconfig cflags vdeplug}"
- VDE_LDFLAGS="%{pkgconfig ldflags vdeplug} %{pkgconfig libs vdeplug}"
- %endif
-
- %{host_build_flags}
-
- if test "%{_build}" != "%{_host}" ; then
- CROSS_PREFIX_OPTION="--cross-prefix=%{_host}-"
- fi
-
- SYSROOT=$SB_TMPPREFIX
-
- #
- # The --extra-cflags and --extra-ldflags do not work as expected.
- #
- # Hack warning: MSYS2 does not seem to convert the path to
- # a shell path from Windows so we keep them
- # separate and handle it in the pkgconfig tool.
- #
- PKG_CONFIG_DEFAULT_PATH=${PKG_CONFIG_PATH} \
- 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}" \
- CFLAGS="${CFLAGS} ${VDE_CFLAGS}" \
- ../${source_dir_qemu}/configure \
- --prefix=%{_prefix} \
- ${CROSS_PREFIX_OPTION} \
- --make=%{__make} \
- ${VDE_CONFIG} \
- --disable-smartcard-nss \
- --disable-werror \
- --disable-tools \
- --disable-pie \
- --disable-vnc \
- --disable-sdl \
- --disable-gtk \
- --disable-opengl \
- --disable-netmap
-
- %{_ld_library_path}=$SYSROOT/lib \
- %{__make} %{?_smp_mflags} all
-
- cd ${build_top}
-
-%install
- build_top=$(pwd)
-
- %{__rmdir} $SB_BUILD_ROOT
-
- cd ${build_dir}
- %{_ld_library_path}=$SYSROOT/lib \
- %{__make} DESTDIR=$SB_BUILD_ROOT install
- cd ${build_top}
+%include %{_configdir}/qemu-common-1.cfg