diff options
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu/0007-tests-meson.build-use-relative-path-to-refer-to-file.patch')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu/0007-tests-meson.build-use-relative-path-to-refer-to-file.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-devtools/qemu/qemu/0007-tests-meson.build-use-relative-path-to-refer-to-file.patch b/meta/recipes-devtools/qemu/qemu/0007-tests-meson.build-use-relative-path-to-refer-to-file.patch new file mode 100644 index 0000000000..7c24f432f2 --- /dev/null +++ b/meta/recipes-devtools/qemu/qemu/0007-tests-meson.build-use-relative-path-to-refer-to-file.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From ebeab06747306ec16299207bf4bd7481a472b4de Mon Sep 17 00:00:00 2001 | ||
2 | From: Changqing Li <changqing.li@windriver.com> | ||
3 | Date: Thu, 14 Jan 2021 06:33:04 +0000 | ||
4 | Subject: [PATCH] tests/meson.build: use relative path to refer to files | ||
5 | |||
6 | Fix error like: | ||
7 | Fatal error: can't create tests/ptimer-test.p/..._qemu-5.2.0_hw_core_ptimer.c.o: File name too long | ||
8 | |||
9 | when build path is too long, use meson.source_root() will make this | ||
10 | filename too long. Fixed by using relative path to refer to files | ||
11 | |||
12 | Upstream-Status: Submitted [send to qemu-devel] | ||
13 | |||
14 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
15 | --- | ||
16 | tests/unit/meson.build | 6 +++--- | ||
17 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
18 | |||
19 | diff --git a/tests/unit/meson.build b/tests/unit/meson.build | ||
20 | index d5248ae51..2c581f055 100644 | ||
21 | --- a/tests/unit/meson.build | ||
22 | +++ b/tests/unit/meson.build | ||
23 | @@ -127,17 +127,17 @@ endif | ||
24 | |||
25 | if have_system | ||
26 | tests += { | ||
27 | - 'ptimer-test': ['ptimer-test-stubs.c', meson.project_source_root() / 'hw/core/ptimer.c'], | ||
28 | + 'ptimer-test': ['ptimer-test-stubs.c', '../../hw/core/ptimer.c'], | ||
29 | 'test-iov': [], | ||
30 | 'test-opts-visitor': [testqapi], | ||
31 | 'test-xs-node': [qom], | ||
32 | - 'test-virtio-dmabuf': [meson.project_source_root() / 'hw/display/virtio-dmabuf.c'], | ||
33 | + 'test-virtio-dmabuf': ['../../hw/display/virtio-dmabuf.c'], | ||
34 | 'test-qmp-cmds': [testqapi], | ||
35 | 'test-xbzrle': [migration], | ||
36 | 'test-util-sockets': ['socket-helpers.c'], | ||
37 | 'test-base64': [], | ||
38 | 'test-bufferiszero': [], | ||
39 | - 'test-smp-parse': [qom, meson.project_source_root() / 'hw/core/machine-smp.c'], | ||
40 | + 'test-smp-parse': [qom, '../../hw/core/machine-smp.c'], | ||
41 | 'test-vmstate': [migration, io], | ||
42 | 'test-yank': ['socket-helpers.c', qom, io, chardev] | ||
43 | } | ||