config: Update qemu to build on FreeBSD.

Update configuration to build on FreeBSD. This is based on pkg-config
detecting the packages installed on the host.
This commit is contained in:
Chris Johns 2014-02-11 10:38:33 +11:00
parent c4fefdeb55
commit f27f7c40f6
8 changed files with 22 additions and 10 deletions

View File

@ -13,4 +13,6 @@
#
# The GetText build instructions. We use 0.x.x Release 1.
#
%include %{_configdir}/gettext-0-1.cfg
%ifn %{pkgconfig gettext}
%include %{_configdir}/gettext-0-1.cfg
%endif

View File

@ -15,4 +15,6 @@
#
# The GLib build instructions. We use 2.x.x Release 1.
#
%include %{_configdir}/glib-2-1.cfg
%ifn %{pkgconfig glib-2.0}
%include %{_configdir}/glib-2-1.cfg
%endif

View File

@ -13,4 +13,6 @@
#
# The LibFFI build instructions. We use 3.x.x Release 1.
#
%include %{_configdir}/libffi-3-1.cfg
%ifn %{pkgconfig libffi}
%include %{_configdir}/libffi-3-1.cfg
%endif

View File

@ -13,4 +13,6 @@
#
# The Pixman build instructions. We use 0.x.x Release 1.
#
%include %{_configdir}/pixman-0-1.cfg
%ifn %{pkgconfig pixman-1}
%include %{_configdir}/pixman-0-1.cfg
%endif

View File

@ -23,8 +23,7 @@
# Qemu is from GIT.
#
Source0: git://git.qemu-project.org/qemu.git?pull?checkout=%{qemu_version}?submodule=dtc
Patch0: %{rtems_git_tools}/qemu/0001-configure-use-glib-in-glib-pkg-config-check.patch
Patch1: %{rtems_git_tools}/qemu/0001-zynq-Request-qemu-reset-when-PSS_RESET_CTRL-triggere.patch
Patch0: %{rtems_git_tools}/qemu/0001-zynq-Request-qemu-reset-when-PSS_RESET_CTRL-triggere.patch
#
# The Qemu build instructions. We use 1.x.x Release 1.

View File

@ -68,7 +68,8 @@ Source0: http://ftp.gnome.org/pub/gnome/sources/glib/%{glib_version_major}/glib-
--infodir=%{_infodir} \
--datadir=%{_datadir} \
--build=%{_build} --host=%{_host} \
--with-sysroot=$SYSROOT
--with-sysroot=$SYSROOT \
--disable-dtrace
%{__make} %{?_smp_mflags} all

View File

@ -63,7 +63,8 @@ Source0: http://cairographics.org/releases/pixman-%{pixman_version}.tar.gz
--mandir=%{_mandir} \
--infodir=%{_infodir} \
--datadir=%{_datadir} \
--build=%{_build} --host=%{_host}
--build=%{_build} --host=%{_host} \
--disable-gtk
%{__make} %{?_smp_mflags} all

View File

@ -54,13 +54,16 @@ Source0: http://wiki.qemu-project.org/download/qemu-%{qemu_version}.tar.bz2
SYSROOT=$SB_TMPPREFIX
PKG_CONFIG_PATH=$SYSROOT \
PKG_CONFIG_SYSROOT_DIR=$SB_TMPROOT \
PKG_CONFIG_BUILD_TOP_DIR=$SB_TMPROOT \
%{_ld_library_path}=$SYSROOT/lib \
LDFLAGS="-Wl,-rpath -Wl,/$SB_PREFIX_CLEAN/lib" \
../${source_dir_0}/configure \
--prefix=%{_prefix} \
--enable-trace-backend=simple \
--disable-tools \
--disable-pie \
--disable-vnc
--disable-vnc \
--disable-netmap
%{__make} %{?_smp_mflags} all