diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-05 23:00:14 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-09 09:09:49 +0000 |
commit | 0d298198e57753213391788a8a9204d99648636b (patch) | |
tree | 043c08668b5e30472f230bf41b7837382d3636ac /meta/recipes-devtools/qemu/qemu/0010-configure-Add-pkg-config-handling-for-libgcrypt.patch | |
parent | 10c69538c0cb8708c7eff9e8dc05ca7c669cb61c (diff) | |
download | poky-0d298198e57753213391788a8a9204d99648636b.tar.gz |
qemu: Upgrade 5.1.0->5.2.0
This involves some pretty major changes for qemu. In particular, they
switched to meson+ninja so we have to adapt to that.
Patch changes:
* CVE patches - dropped as backports
* cflags fix - upstream code changed significantly, need new patch if still issues
* mips TLB entries - dropped as merged upstream
* usb fix - dropped as merged upstream
* find_datadir - dropped as code no longer present that I could find
A patch was added to allow us to force the configure script into "cross" mode
without setting cross_prefix which has other effects we don't need/want.
Dependencies on meson/ninja were added.
Specifying the python interpreter causes the internal meson copy to be
built/used which is undesireable for us so don't do that. The correct
python is in PATH anyway.
Acked-by: Alistair Francis <alistair.francis@wdc.com>
(From OE-Core rev: 181c635567aafb9b4787d8d6d0bcd4a615ceae80)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu/0010-configure-Add-pkg-config-handling-for-libgcrypt.patch')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu/0010-configure-Add-pkg-config-handling-for-libgcrypt.patch | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/meta/recipes-devtools/qemu/qemu/0010-configure-Add-pkg-config-handling-for-libgcrypt.patch b/meta/recipes-devtools/qemu/qemu/0010-configure-Add-pkg-config-handling-for-libgcrypt.patch index d7e3fffdd0..c5d206b91b 100644 --- a/meta/recipes-devtools/qemu/qemu/0010-configure-Add-pkg-config-handling-for-libgcrypt.patch +++ b/meta/recipes-devtools/qemu/qemu/0010-configure-Add-pkg-config-handling-for-libgcrypt.patch | |||
@@ -14,11 +14,11 @@ Signed-off-by: He Zhe <zhe.he@windriver.com> | |||
14 | configure | 48 ++++++++++++++++++++++++++++++++++++++++-------- | 14 | configure | 48 ++++++++++++++++++++++++++++++++++++++++-------- |
15 | 1 file changed, 40 insertions(+), 8 deletions(-) | 15 | 1 file changed, 40 insertions(+), 8 deletions(-) |
16 | 16 | ||
17 | Index: qemu-5.1.0/configure | 17 | Index: qemu-5.2.0/configure |
18 | =================================================================== | 18 | =================================================================== |
19 | --- qemu-5.1.0.orig/configure | 19 | --- qemu-5.2.0.orig/configure |
20 | +++ qemu-5.1.0/configure | 20 | +++ qemu-5.2.0/configure |
21 | @@ -3084,6 +3084,30 @@ has_libgcrypt() { | 21 | @@ -2956,6 +2956,30 @@ has_libgcrypt() { |
22 | return 0 | 22 | return 0 |
23 | } | 23 | } |
24 | 24 | ||
@@ -49,7 +49,7 @@ Index: qemu-5.1.0/configure | |||
49 | 49 | ||
50 | if test "$nettle" != "no"; then | 50 | if test "$nettle" != "no"; then |
51 | pass="no" | 51 | pass="no" |
52 | @@ -3124,7 +3148,14 @@ fi | 52 | @@ -2994,7 +3018,14 @@ fi |
53 | 53 | ||
54 | if test "$gcrypt" != "no"; then | 54 | if test "$gcrypt" != "no"; then |
55 | pass="no" | 55 | pass="no" |
@@ -65,7 +65,7 @@ Index: qemu-5.1.0/configure | |||
65 | gcrypt_cflags=$(libgcrypt-config --cflags) | 65 | gcrypt_cflags=$(libgcrypt-config --cflags) |
66 | gcrypt_libs=$(libgcrypt-config --libs) | 66 | gcrypt_libs=$(libgcrypt-config --libs) |
67 | # Debian has removed -lgpg-error from libgcrypt-config | 67 | # Debian has removed -lgpg-error from libgcrypt-config |
68 | @@ -3134,15 +3165,16 @@ if test "$gcrypt" != "no"; then | 68 | @@ -3004,12 +3035,12 @@ if test "$gcrypt" != "no"; then |
69 | then | 69 | then |
70 | gcrypt_libs="$gcrypt_libs -lgpg-error" | 70 | gcrypt_libs="$gcrypt_libs -lgpg-error" |
71 | fi | 71 | fi |
@@ -74,18 +74,11 @@ Index: qemu-5.1.0/configure | |||
74 | - # Link test to make sure the given libraries work (e.g for static). | 74 | - # Link test to make sure the given libraries work (e.g for static). |
75 | - write_c_skeleton | 75 | - write_c_skeleton |
76 | - if compile_prog "" "$gcrypt_libs" ; then | 76 | - if compile_prog "" "$gcrypt_libs" ; then |
77 | - LIBS="$gcrypt_libs $LIBS" | ||
78 | - QEMU_CFLAGS="$QEMU_CFLAGS $gcrypt_cflags" | ||
79 | - pass="yes" | ||
80 | - fi | ||
81 | + # Link test to make sure the given libraries work (e.g for static). | 77 | + # Link test to make sure the given libraries work (e.g for static). |
82 | + write_c_skeleton | 78 | + write_c_skeleton |
83 | + if compile_prog "" "$gcrypt_libs" ; then | 79 | + if compile_prog "" "$gcrypt_libs" ; then |
84 | + LIBS="$gcrypt_libs $LIBS" | 80 | pass="yes" |
85 | + QEMU_CFLAGS="$QEMU_CFLAGS $gcrypt_cflags" | 81 | - fi |
86 | + pass="yes" | ||
87 | fi | 82 | fi |
88 | + | ||
89 | if test "$pass" = "yes"; then | 83 | if test "$pass" = "yes"; then |
90 | gcrypt="yes" | 84 | gcrypt="yes" |
91 | cat > $TMPC << EOF | ||