Accepting request 125431 from home:a_faerber:branches:Virtualization
Force building with libfdt on ppc and add patch by Alex for arm. OBS-URL: https://build.opensuse.org/request/show/125431 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=84
This commit is contained in:
parent
9d9a35d9e8
commit
dda01d15be
@ -1,7 +1,8 @@
|
|||||||
From 8cc5120497695e7ea8dde9b096eb6c8cb9b6ac35 Mon Sep 17 00:00:00 2001
|
From 8cc5120497695e7ea8dde9b096eb6c8cb9b6ac35 Mon Sep 17 00:00:00 2001
|
||||||
From: Alexander Graf <agraf@suse.de>
|
From: Alexander Graf <agraf@suse.de>
|
||||||
Date: Tue, 29 May 2012 17:28:07 +0200
|
Date: Tue, 29 May 2012 17:28:07 +0200
|
||||||
Subject: [PATCH] linux-user: ARM: Ignore immediate value for svc in thumb mode
|
Subject: [PATCH] linux-user: ARM: Ignore immediate value for svc in thumb
|
||||||
|
mode
|
||||||
|
|
||||||
When running in thumb mode, Linux doesn't evaluate the immediate value
|
When running in thumb mode, Linux doesn't evaluate the immediate value
|
||||||
of the svc instruction, but instead just always assumes the syscall number
|
of the svc instruction, but instead just always assumes the syscall number
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
From 57fd4d50146ef90693d569ee799f7e9e9d606e05 Mon Sep 17 00:00:00 2001
|
From 57fd4d50146ef90693d569ee799f7e9e9d606e05 Mon Sep 17 00:00:00 2001
|
||||||
From: Michael Tokarev <mjt@tls.msk.ru>
|
From: Michael Tokarev <mjt@tls.msk.ru>
|
||||||
Date: Thu, 7 Jun 2012 01:11:00 +0400
|
Date: Thu, 7 Jun 2012 01:11:00 +0400
|
||||||
Subject: [PATCH] use --libexecdir instead of ignoring it first and reinventing it later
|
Subject: [PATCH] use --libexecdir instead of ignoring it first and
|
||||||
|
reinventing it later
|
||||||
MIME-Version: 1.0
|
MIME-Version: 1.0
|
||||||
Content-Type: text/plain; charset=utf-8
|
Content-Type: text/plain; charset=UTF-8
|
||||||
Content-Transfer-Encoding: 8bit
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
Commit 7b93fadf3a38d1ed65ea5536a52efc2772c6e3b8 "Add basic version
|
Commit 7b93fadf3a38d1ed65ea5536a52efc2772c6e3b8 "Add basic version
|
||||||
|
33
0024-linux-user-binfmt-Force-using-emula.patch
Normal file
33
0024-linux-user-binfmt-Force-using-emula.patch
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
From da89f732a99c424c0830c04ce269e679e81e2d8f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alexander Graf <agraf@suse.de>
|
||||||
|
Date: Mon, 18 Jun 2012 14:15:04 +0200
|
||||||
|
Subject: [PATCH] linux-user/binfmt: Force using emulation when LIBRARY_PATH
|
||||||
|
is set
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
GCC ignores LIBRARY_PATH when cross-compiling so we must use emulation
|
||||||
|
to have it picked up correctly.
|
||||||
|
|
||||||
|
Signed-off-by: Alexander Graf <agraf@suse.de>
|
||||||
|
Signed-off-by: Andreas Färber <afaerber@suse.de>
|
||||||
|
---
|
||||||
|
linux-user/binfmt.c | 4 +++-
|
||||||
|
1 files changed, 3 insertions(+), 1 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/linux-user/binfmt.c b/linux-user/binfmt.c
|
||||||
|
index 87dc4c6..a1b712d 100644
|
||||||
|
--- a/linux-user/binfmt.c
|
||||||
|
+++ b/linux-user/binfmt.c
|
||||||
|
@@ -42,7 +42,9 @@ int main(int argc, char **argv, char **envp)
|
||||||
|
}
|
||||||
|
guestarch++;
|
||||||
|
asprintf(&hostbin, "/emul/" ARCH_NAME "-for-%s/%s", guestarch, argv[1]);
|
||||||
|
- if (!access(hostbin, X_OK)) {
|
||||||
|
+ /* gcc ignores LIBRARY_PATH in its cross variant, so let's not use
|
||||||
|
+ host binaries when we find it set */
|
||||||
|
+ if (!access(hostbin, X_OK) && !getenv("LIBRARY_PATH")) {
|
||||||
|
/*
|
||||||
|
* We found a host binary replacement for the non-host binary. Let's
|
||||||
|
* use that instead!
|
10
qemu.changes
10
qemu.changes
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 18 12:27:56 UTC 2012 - afaerber@suse.de
|
||||||
|
|
||||||
|
- add patch by Alex to force gcc being emulated for LIBRARY_PATH
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 18 09:06:41 UTC 2012 - dvaleev@suse.com
|
||||||
|
|
||||||
|
- add libfdt1 to buildrequires on ppc
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jun 14 14:39:57 UTC 2012 - afaerber@suse.de
|
Thu Jun 14 14:39:57 UTC 2012 - afaerber@suse.de
|
||||||
|
|
||||||
|
@ -47,6 +47,7 @@ Patch0020: 0020-linux-user-arm-no-tb_flush-on-reset.patch
|
|||||||
Patch0021: 0021-linux-user-fix-multi-threaded-proc-.patch
|
Patch0021: 0021-linux-user-fix-multi-threaded-proc-.patch
|
||||||
Patch0022: 0022-use-libexecdir-instead-of-ignoring-.patch
|
Patch0022: 0022-use-libexecdir-instead-of-ignoring-.patch
|
||||||
Patch0023: 0023-linux-user-Ignore-broken-loop-ioctl.patch
|
Patch0023: 0023-linux-user-Ignore-broken-loop-ioctl.patch
|
||||||
|
Patch0024: 0024-linux-user-binfmt-Force-using-emula.patch
|
||||||
# this is to make lint happy
|
# this is to make lint happy
|
||||||
Source300: rpmlintrc
|
Source300: rpmlintrc
|
||||||
Source302: bridge.conf
|
Source302: bridge.conf
|
||||||
@ -86,6 +87,10 @@ BuildRequires: libspice-server-devel
|
|||||||
BuildRequires: spice-protocol-devel
|
BuildRequires: spice-protocol-devel
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
%ifarch ppc ppc64
|
||||||
|
#we need that for -M pseries support in SLES
|
||||||
|
BuildRequires: libfdt1-devel
|
||||||
|
%endif
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
BuildRequires: libvdeplug3-devel
|
BuildRequires: libvdeplug3-devel
|
||||||
@ -160,6 +165,7 @@ run cross-architecture builds.
|
|||||||
%patch0021 -p1
|
%patch0021 -p1
|
||||||
%patch0022 -p1
|
%patch0022 -p1
|
||||||
%patch0023 -p1
|
%patch0023 -p1
|
||||||
|
%patch0024 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# build QEMU
|
# build QEMU
|
||||||
|
@ -64,6 +64,10 @@ BuildRequires: libspice-server-devel
|
|||||||
BuildRequires: spice-protocol-devel
|
BuildRequires: spice-protocol-devel
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
%ifarch ppc ppc64
|
||||||
|
#we need that for -M pseries support in SLES
|
||||||
|
BuildRequires: libfdt1-devel
|
||||||
|
%endif
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
BuildRequires: libvdeplug3-devel
|
BuildRequires: libvdeplug3-devel
|
||||||
|
Loading…
Reference in New Issue
Block a user