blob: d5e1ab4d5115d27ca1acc7c4f45525156d19dbdb [file] [log] [blame]
Andrew Geisslerd1e89492021-02-12 15:35:20 -06001From a4bdc0416134477e4eae386db04b1de7491163bb Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Thu, 14 Jan 2021 06:33:04 +0000
4Subject: [PATCH] tests/meson.build: use relative path to refer to files
5
6Fix error like:
7Fatal error: can't create tests/ptimer-test.p/..._qemu-5.2.0_hw_core_ptimer.c.o: File name too long
8
9when build path is too long, use meson.source_root() will make this
10filename too long. Fixed by using relative path to refer to files
11
12Upstream-Status: Submitted [send to qemu-devel]
13
14Signed-off-by: Changqing Li <changqing.li@windriver.com>
15---
16 tests/meson.build | 2 +-
17 1 files changed, 1 insertions(+), 1 deletion(-)
18
William A. Kennington IIIac69b482021-06-02 12:28:27 -070019Index: qemu-6.0.0/tests/unit/meson.build
20===================================================================
21--- qemu-6.0.0.orig/tests/unit/meson.build
22+++ qemu-6.0.0/tests/unit/meson.build
23@@ -42,7 +42,7 @@ tests = {
Andrew Geisslerd1e89492021-02-12 15:35:20 -060024 'test-keyval': [testqapi],
25 'test-logging': [],
26 'test-uuid': [],
27- 'ptimer-test': ['ptimer-test-stubs.c', meson.source_root() / 'hw/core/ptimer.c'],
William A. Kennington IIIac69b482021-06-02 12:28:27 -070028+ 'ptimer-test': ['ptimer-test-stubs.c', '../../hw/core/ptimer.c'],
Andrew Geisslerd1e89492021-02-12 15:35:20 -060029 'test-qapi-util': [],
30 }
31