Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
From d8265abdce5dc2bf74b3fccdf2b7257b4f3894f0 Mon Sep 17 00:00:00 2001
From: He Zhe <[email protected]>
Date: Wed, 28 Aug 2019 19:56:28 +0800
Subject: [PATCH 04/12] configure: Add pkg-config handling for libgcrypt

libgcrypt may also be controlled by pkg-config, this patch adds pkg-config
handling for libgcrypt.

Upstream-Status: Denied [https://lists.nongnu.org/archive/html/qemu-devel/2019-08/msg06333.html]

Signed-off-by: He Zhe <[email protected]>

---
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: qemu-8.1.0/meson.build
===================================================================
--- qemu-8.1.0.orig/meson.build
+++ qemu-8.1.0/meson.build
@@ -1481,7 +1481,7 @@ endif
if not gnutls_crypto.found()
if (not get_option('gcrypt').auto() or have_system) and not get_option('nettle').enabled()
gcrypt = dependency('libgcrypt', version: '>=1.8',
- method: 'config-tool',
+ method: 'pkg-config',
required: get_option('gcrypt'))
# Debian has removed -lgpg-error from libgcrypt-config
# as it "spreads unnecessary dependencies" which in
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
From 2bf9388b801d4389e2d57e95a7897bfc1c42786e Mon Sep 17 00:00:00 2001
From: Changqing Li <[email protected]>
Date: Thu, 14 Jan 2021 06:33:04 +0000
Subject: [PATCH 08/12] tests/meson.build: use relative path to refer to files

Fix error like:
Fatal error: can't create tests/ptimer-test.p/..._qemu-5.2.0_hw_core_ptimer.c.o: File name too long

when build path is too long, use meson.source_root() will make this
filename too long. Fixed by using relative path to refer to files

Upstream-Status: Submitted [send to qemu-devel]

Signed-off-by: Changqing Li <[email protected]>

---
tests/unit/meson.build | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Index: qemu-8.0.0/tests/unit/meson.build
===================================================================
--- qemu-8.0.0.orig/tests/unit/meson.build
+++ qemu-8.0.0/tests/unit/meson.build
@@ -46,7 +46,7 @@ tests = {
'test-keyval': [testqapi],
'test-logging': [],
'test-uuid': [],
- 'ptimer-test': ['ptimer-test-stubs.c', meson.project_source_root() / 'hw/core/ptimer.c'],
+ 'ptimer-test': ['ptimer-test-stubs.c', '../../hw/core/ptimer.c'],
'test-qapi-util': [],
'test-interval-tree': [],
'test-xs-node': [qom],
@@ -136,7 +136,7 @@ if have_system
'test-util-sockets': ['socket-helpers.c'],
'test-base64': [],
'test-bufferiszero': [],
- 'test-smp-parse': [qom, meson.project_source_root() / 'hw/core/machine-smp.c'],
+ 'test-smp-parse': [qom, '../../hw/core/machine-smp.c'],
'test-vmstate': [migration, io],
'test-yank': ['socket-helpers.c', qom, io, chardev]
}
38 changes: 38 additions & 0 deletions meta-zephyr-sdk/recipes-devtools/qemu_xilinx/files/cross.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
From 76c3fc4c87231bed32974ebbbdb5079cff45a6b7 Mon Sep 17 00:00:00 2001
From: Richard Purdie <[email protected]>
Date: Tue, 5 Jan 2021 23:00:14 +0000
Subject: [PATCH 12/12] qemu: Upgrade 5.1.0->5.2.0

We need to be able to trigger configure's cross code but we don't want
to set cross_prefix as it does other things we don't want. Patch things
so we can do what we need in the target config case.

Upstream-Status: Inappropriate [may be rewritten in a way upstream may accept?]
Signed-off-by: Richard Purdie <[email protected]>

---
configure | 4 ----
1 file changed, 4 deletions(-)

Index: qemu-8.0.0/configure
===================================================================
--- qemu-8.0.0.orig/configure
+++ qemu-8.0.0/configure
@@ -2590,7 +2590,6 @@ if test "$skip_meson" = no; then
echo "widl = [$(meson_quote $widl)]" >> $cross
echo "windres = [$(meson_quote $windres)]" >> $cross
echo "windmc = [$(meson_quote $windmc)]" >> $cross
- if test "$cross_compile" = "yes"; then
cross_arg="--cross-file config-meson.cross"
echo "[host_machine]" >> $cross
echo "system = '$targetos'" >> $cross
@@ -2608,9 +2607,6 @@ if test "$skip_meson" = no; then
else
echo "endian = 'little'" >> $cross
fi
- else
- cross_arg="--native-file config-meson.cross"
- fi
mv $cross config-meson.cross

rm -rf meson-private meson-info meson-logs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Upstream-Status: Inappropriate [workaround, would need a real fix for upstream]

Index: qemu-8.1.0/configure
===================================================================
--- qemu-8.1.0.orig/configure
+++ qemu-8.1.0/configure
@@ -1032,12 +1032,7 @@ then
exit 1
fi

-# At this point, we expect Meson to be installed and available.
-# We expect mkvenv or pip to have created pyvenv/bin/meson for us.
-# We ignore PATH completely here: we want to use the venv's Meson
-# *exclusively*.
-
-meson="$(cd pyvenv/bin; pwd)/meson"
+meson=`which meson`

# Conditionally ensure Sphinx is installed.
45 changes: 45 additions & 0 deletions meta-zephyr-sdk/recipes-devtools/qemu_xilinx/files/no-pip.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
qemu: Ensure pip and the python venv aren't used for meson

Qemu wants to use a supported python version and a specific meson version
to "help" users and uses pip and creates a venv to do this. This is a nightmare
for us. Our versions stay up to date and should be supported so we don't
really need/want this wrapping. Tweak things to disable it.

There was breakage from the wrapper shown by:

bitbake qemu-system-native
<add DISTRO_FEATURES:remove = "opengl" to local.conf>
bitbake qemu-system-native -c configure

which would crash. The issue is the change in configuration removes pieces
from the sysroot but pyc files remainm as do pieces of pip which causes
problems.

Ideally we'd convince upstream to allow some way to disable the venv on
the understanding that if/when it breaks, we keep the pieces. The patch
as it stands is a workaround.

Upstream-Status: Inappropriate [oe specific]
Signed-off-by: Richard Purdie <[email protected]>

Index: qemu-8.1.2/configure
===================================================================
--- qemu-8.1.2.orig/configure
+++ qemu-8.1.2/configure
@@ -1009,7 +1009,7 @@ python="$(command -v "$python")"
echo "python determined to be '$python'"
echo "python version: $($python --version)"

-python="$($python -B "${source_path}/python/scripts/mkvenv.py" create pyvenv)"
+python=python3
if test "$?" -ne 0 ; then
error_exit "python venv creation failed"
fi
@@ -1017,6 +1017,7 @@ fi
# Suppress writing compiled files
python="$python -B"
mkvenv="$python ${source_path}/python/scripts/mkvenv.py"
+mkvenv=true

mkvenv_flags=""
if test "$download" = "enabled" ; then
Loading
Loading