0001-tests-meson.build-use-relative-path-to-refer-to-file.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  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. 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/meson.build | 2 +-
  13. 1 files changed, 1 insertions(+), 1 deletion(-)
  14. Index: qemu-6.0.0/tests/unit/meson.build
  15. ===================================================================
  16. --- qemu-6.0.0.orig/tests/unit/meson.build
  17. +++ qemu-6.0.0/tests/unit/meson.build
  18. @@ -42,7 +42,7 @@ tests = {
  19. 'test-keyval': [testqapi],
  20. 'test-logging': [],
  21. 'test-uuid': [],
  22. - 'ptimer-test': ['ptimer-test-stubs.c', meson.source_root() / 'hw/core/ptimer.c'],
  23. + 'ptimer-test': ['ptimer-test-stubs.c', '../../hw/core/ptimer.c'],
  24. 'test-qapi-util': [],
  25. }