0008-tests-meson.build-use-relative-path-to-refer-to-file.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 2bf9388b801d4389e2d57e95a7897bfc1c42786e 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 08/12] tests/meson.build: use relative path to refer to files
  5. Fix error like:
  6. Fatal error: can't create tests/ptimer-test.p/..._qemu-5.2.0_hw_core_ptimer.c.o: File name too long
  7. when build path is too long, use meson.source_root() will make this
  8. filename too long. Fixed by using relative path to refer to files
  9. Upstream-Status: Submitted [send to qemu-devel]
  10. Signed-off-by: Changqing Li <changqing.li@windriver.com>
  11. ---
  12. tests/unit/meson.build | 4 ++--
  13. 1 file changed, 2 insertions(+), 2 deletions(-)
  14. diff --git a/tests/unit/meson.build b/tests/unit/meson.build
  15. index 96b295263..e4c3246dc 100644
  16. --- a/tests/unit/meson.build
  17. +++ b/tests/unit/meson.build
  18. @@ -44,9 +44,9 @@ tests = {
  19. 'test-keyval': [testqapi],
  20. 'test-logging': [],
  21. 'test-uuid': [],
  22. - 'ptimer-test': ['ptimer-test-stubs.c', meson.project_source_root() / 'hw/core/ptimer.c'],
  23. + 'ptimer-test': ['ptimer-test-stubs.c', '../../hw/core/ptimer.c'],
  24. 'test-qapi-util': [],
  25. - 'test-smp-parse': [qom, meson.project_source_root() / 'hw/core/machine-smp.c'],
  26. + 'test-smp-parse': [qom, '../../hw/core/machine-smp.c'],
  27. }
  28. if have_system or have_tools
  29. --
  30. 2.30.2