Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/meson.build: fix build on cross-compiled environments
@ 2023-09-13 13:24 Mauro Carvalho Chehab
  2023-09-13 14:30 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Mauro Carvalho Chehab @ 2023-09-13 13:24 UTC (permalink / raw)
  To: igt-dev

From: Mauro Carvalho Chehab <mchehab@kernel.org>

When using a cross-compilation build, test_list_target
won't be updated. So, it needs to be initialized as a blank
list, otherwise meson will abort with this error message:

	docs/reference/igt-gpu-tools/meson.build:58:1: ERROR: Unknown variable "test_list_target".

Tested using a cross-file named meson-core2.txt with:

	[properties]
	c_args = '-march=core2'

	[binaries]
	c = 'gcc'
	ar = 'ar'
	strip = 'strip'
	pkgconfig = 'pkg-config'

	[host_machine]
	system = 'linux'
	cpu_family = 'aarch64'
	cpu = 'aarch64'
	endian = 'little'

And running meson with:

	meson -Dxe_driver=enabled --cross-file meson-core2.txt core2

Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
---
 tests/meson.build | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/meson.build b/tests/meson.build
index 94b1e2e123ca..a754c7b7612b 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -464,6 +464,8 @@ if not meson.is_cross_build()
 		    command : [ gen_testlist, '@OUTPUT@', test_list ],
 		    install : true,
 		    install_dir : libexecdir)
+else
+	test_list_target = []
 endif
 
 test_executables += executable('gem_concurrent_all', 'intel/gem_concurrent_all.c',
-- 
2.41.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-09-14 14:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-13 13:24 [igt-dev] [PATCH i-g-t] tests/meson.build: fix build on cross-compiled environments Mauro Carvalho Chehab
2023-09-13 14:30 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-09-13 14:31 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-09-13 16:34 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-09-14  9:43 ` [igt-dev] [PATCH i-g-t] " Kamil Konieczny
2023-09-14 13:29 ` Kamil Konieczny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox