Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 1 | From a4bdc0416134477e4eae386db04b1de7491163bb 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/meson.build | 2 +- |
| 17 | 1 files changed, 1 insertions(+), 1 deletion(-) |
| 18 | |
| 19 | diff --git a/tests/meson.build b/tests/meson.build |
| 20 | index afeb6be..54684b5 100644 |
| 21 | --- a/tests/meson.build |
| 22 | +++ b/tests/meson.build |
| 23 | @@ -113,7 +113,7 @@ tests = { |
| 24 | 'test-keyval': [testqapi], |
| 25 | 'test-logging': [], |
| 26 | 'test-uuid': [], |
| 27 | - 'ptimer-test': ['ptimer-test-stubs.c', meson.source_root() / 'hw/core/ptimer.c'], |
| 28 | + 'ptimer-test': ['ptimer-test-stubs.c', '../hw/core/ptimer.c'], |
| 29 | 'test-qapi-util': [], |
| 30 | } |
| 31 | |
| 32 | -- |
| 33 | 2.29.2 |
| 34 | |