From a50d014770b38e4650685ba3d9747ee2a60a1402 Mon Sep 17 00:00:00 2001 From: Jiyoung Yun Date: Wed, 30 Nov 2016 11:51:40 +0900 Subject: Add mono acceleration Mono is an open source implementation of Microsoft's .NET Framework. C# APIs execute mono when extracting dll files from nupkg but the mono binary for armv7l is unstable on qemu and the performance is very low. So we add mono to qemu-accel to accelerate build. Signed-off-by: Jiyoung Yun Change-Id: Ia9e60bc673a5259df9e96f85aa9687fe488b4bbd --- packaging/qemu-accel-aarch64.spec | 5 ++++- packaging/qemu-accel-armv7l.spec | 5 ++++- packaging/qemu-accel.spec.in | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/packaging/qemu-accel-aarch64.spec b/packaging/qemu-accel-aarch64.spec index 87a1034..00c30f4 100644 --- a/packaging/qemu-accel-aarch64.spec +++ b/packaging/qemu-accel-aarch64.spec @@ -57,6 +57,7 @@ BuildRequires: python-rpm BuildRequires: file BuildRequires: libasan BuildRequires: icecream +BuildRequires: mono-core Summary: Native binaries for speeding up cross compile License: GPL-2.0 Group: Development/Cross Compilation @@ -135,7 +136,9 @@ for executable in $LD \ ${real_compiler} \ %{_bindir}/{find,xargs,readlink,ls,cpio} \ %{_prefix}/lib/rpm/debugedit \ - %{_prefix}/lib/rpm/*deps + %{_prefix}/lib/rpm/*deps \ + %{_bindir}/mono-sgen \ + %{_libdir}/{libmonoboehm-*.so.*,libMonoPosixHelper.so,libmonosgen-*.so.*} do binaries="$binaries $executable `ldd $executable | sed -n 's,.*=> \(/[^ ]*\) .*,\1,p'`" done diff --git a/packaging/qemu-accel-armv7l.spec b/packaging/qemu-accel-armv7l.spec index d4e46aa..263f4a4 100644 --- a/packaging/qemu-accel-armv7l.spec +++ b/packaging/qemu-accel-armv7l.spec @@ -57,6 +57,7 @@ BuildRequires: python-rpm BuildRequires: file BuildRequires: libasan BuildRequires: icecream +BuildRequires: mono-core Summary: Native binaries for speeding up cross compile License: GPL-2.0 Group: Development/Cross Compilation @@ -135,7 +136,9 @@ for executable in $LD \ ${real_compiler} \ %{_bindir}/{find,xargs,readlink,ls,cpio} \ %{_prefix}/lib/rpm/debugedit \ - %{_prefix}/lib/rpm/*deps + %{_prefix}/lib/rpm/*deps \ + %{_bindir}/mono-sgen \ + %{_libdir}/{libmonoboehm-*.so.*,libMonoPosixHelper.so,libmonosgen-*.so.*} do binaries="$binaries $executable `ldd $executable | sed -n 's,.*=> \(/[^ ]*\) .*,\1,p'`" done diff --git a/packaging/qemu-accel.spec.in b/packaging/qemu-accel.spec.in index ef8849d..b84d2d8 100644 --- a/packaging/qemu-accel.spec.in +++ b/packaging/qemu-accel.spec.in @@ -54,6 +54,7 @@ BuildRequires: python-rpm BuildRequires: file BuildRequires: libasan BuildRequires: icecream +BuildRequires: mono-core Summary: Native binaries for speeding up cross compile License: GPL-2.0 Group: Development/Cross Compilation @@ -132,7 +133,9 @@ for executable in $LD \ ${real_compiler} \ %{_bindir}/{find,xargs,readlink,ls,cpio} \ %{_prefix}/lib/rpm/debugedit \ - %{_prefix}/lib/rpm/*deps + %{_prefix}/lib/rpm/*deps \ + %{_bindir}/mono-sgen \ + %{_libdir}/{libmonoboehm-*.so.*,libMonoPosixHelper.so,libmonosgen-*.so.*} do binaries="$binaries $executable `ldd $executable | sed -n 's,.*=> \(/[^ ]*\) .*,\1,p'`" done -- cgit v1.2.3