mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
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:
parent
c4fefdeb55
commit
f27f7c40f6
@ -13,4 +13,6 @@
|
|||||||
#
|
#
|
||||||
# The GetText build instructions. We use 0.x.x Release 1.
|
# 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
|
||||||
|
@ -15,4 +15,6 @@
|
|||||||
#
|
#
|
||||||
# The GLib build instructions. We use 2.x.x Release 1.
|
# 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
|
||||||
|
@ -13,4 +13,6 @@
|
|||||||
#
|
#
|
||||||
# The LibFFI build instructions. We use 3.x.x Release 1.
|
# 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
|
||||||
|
@ -13,4 +13,6 @@
|
|||||||
#
|
#
|
||||||
# The Pixman build instructions. We use 0.x.x Release 1.
|
# 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
|
||||||
|
@ -23,8 +23,7 @@
|
|||||||
# Qemu is from GIT.
|
# Qemu is from GIT.
|
||||||
#
|
#
|
||||||
Source0: git://git.qemu-project.org/qemu.git?pull?checkout=%{qemu_version}?submodule=dtc
|
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
|
Patch0: %{rtems_git_tools}/qemu/0001-zynq-Request-qemu-reset-when-PSS_RESET_CTRL-triggere.patch
|
||||||
Patch1: %{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.
|
# The Qemu build instructions. We use 1.x.x Release 1.
|
||||||
|
@ -68,7 +68,8 @@ Source0: http://ftp.gnome.org/pub/gnome/sources/glib/%{glib_version_major}/glib-
|
|||||||
--infodir=%{_infodir} \
|
--infodir=%{_infodir} \
|
||||||
--datadir=%{_datadir} \
|
--datadir=%{_datadir} \
|
||||||
--build=%{_build} --host=%{_host} \
|
--build=%{_build} --host=%{_host} \
|
||||||
--with-sysroot=$SYSROOT
|
--with-sysroot=$SYSROOT \
|
||||||
|
--disable-dtrace
|
||||||
|
|
||||||
%{__make} %{?_smp_mflags} all
|
%{__make} %{?_smp_mflags} all
|
||||||
|
|
||||||
|
@ -63,7 +63,8 @@ Source0: http://cairographics.org/releases/pixman-%{pixman_version}.tar.gz
|
|||||||
--mandir=%{_mandir} \
|
--mandir=%{_mandir} \
|
||||||
--infodir=%{_infodir} \
|
--infodir=%{_infodir} \
|
||||||
--datadir=%{_datadir} \
|
--datadir=%{_datadir} \
|
||||||
--build=%{_build} --host=%{_host}
|
--build=%{_build} --host=%{_host} \
|
||||||
|
--disable-gtk
|
||||||
|
|
||||||
%{__make} %{?_smp_mflags} all
|
%{__make} %{?_smp_mflags} all
|
||||||
|
|
||||||
|
@ -54,13 +54,16 @@ Source0: http://wiki.qemu-project.org/download/qemu-%{qemu_version}.tar.bz2
|
|||||||
SYSROOT=$SB_TMPPREFIX
|
SYSROOT=$SB_TMPPREFIX
|
||||||
|
|
||||||
PKG_CONFIG_PATH=$SYSROOT \
|
PKG_CONFIG_PATH=$SYSROOT \
|
||||||
PKG_CONFIG_SYSROOT_DIR=$SB_TMPROOT \
|
PKG_CONFIG_BUILD_TOP_DIR=$SB_TMPROOT \
|
||||||
%{_ld_library_path}=$SYSROOT/lib \
|
%{_ld_library_path}=$SYSROOT/lib \
|
||||||
|
LDFLAGS="-Wl,-rpath -Wl,/$SB_PREFIX_CLEAN/lib" \
|
||||||
../${source_dir_0}/configure \
|
../${source_dir_0}/configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
|
--enable-trace-backend=simple \
|
||||||
--disable-tools \
|
--disable-tools \
|
||||||
--disable-pie \
|
--disable-pie \
|
||||||
--disable-vnc
|
--disable-vnc \
|
||||||
|
--disable-netmap
|
||||||
|
|
||||||
%{__make} %{?_smp_mflags} all
|
%{__make} %{?_smp_mflags} all
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user