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..74de158b2e --- /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 77ebf67d0c96f51da91c8499200ebd13f4dcdd68 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 07/11] 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 | 4 ++-- | ||
17 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
18 | |||
19 | diff --git a/tests/unit/meson.build b/tests/unit/meson.build | ||
20 | index 228a21d03c..272fb4c6ca 100644 | ||
21 | --- a/tests/unit/meson.build | ||
22 | +++ b/tests/unit/meson.build | ||
23 | @@ -47,7 +47,7 @@ tests = { | ||
24 | 'test-keyval': [testqapi], | ||
25 | 'test-logging': [], | ||
26 | 'test-uuid': [], | ||
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-qapi-util': [], | ||
30 | 'test-interval-tree': [], | ||
31 | 'test-xs-node': [qom], | ||
32 | @@ -138,7 +138,7 @@ if have_system | ||
33 | 'test-util-sockets': ['socket-helpers.c'], | ||
34 | 'test-base64': [], | ||
35 | 'test-bufferiszero': [], | ||
36 | - 'test-smp-parse': [qom, meson.project_source_root() / 'hw/core/machine-smp.c'], | ||
37 | + 'test-smp-parse': [qom, '../../hw/core/machine-smp.c'], | ||
38 | 'test-vmstate': [migration, io], | ||
39 | 'test-yank': ['socket-helpers.c', qom, io, chardev] | ||
40 | } | ||
41 | -- | ||
42 | 2.44.0 | ||
43 | |||