[PATCH i-g-t v4 4/4] tools/vmtb: Install VMTB with IGT build system
Adam Miszczak
adam.miszczak at linux.intel.com
Mon Dec 9 14:24:23 UTC 2024
Integrate VMTB into the IGT build system: introduce a new meson
build option 'vmtb' to enable VMTB sources installation
in a libexec directory by default:
/usr/local/libexec/igt-gpu-tools/vmtb/
VMTB is not enabled in a default IGT meson configuration,
to build and install it, use the following command:
meson build -Dvmtb=enabled && ninja -C build install
Signed-off-by: Adam Miszczak <adam.miszczak at linux.intel.com>
Reviewed-by: Marcin Bernatowicz <marcin.bernatowicz at linux.intel.com>
---
meson.build | 2 ++
meson_options.txt | 5 +++++
tools/meson.build | 4 ++++
3 files changed, 11 insertions(+)
diff --git a/meson.build b/meson.build
index 64f57f232..0f26f95c8 100644
--- a/meson.build
+++ b/meson.build
@@ -91,10 +91,12 @@ build_docs = get_option('docs')
build_tests = not get_option('tests').disabled()
build_xe = not get_option('xe_driver').disabled()
build_xe_eudebug = get_option('xe_eudebug').enabled()
+build_vmtb = get_option('vmtb').enabled()
with_libdrm = get_option('libdrm_drivers')
build_info = ['Build type: ' + get_option('buildtype')]
build_info += 'Build Xe EU debugger test framework: @0@'.format(build_xe_eudebug)
+build_info += 'Build VM Test Bench: @0@'.format(build_vmtb)
inc = include_directories('include', 'include/drm-uapi', 'include/drm-uapi-experimental', 'include/linux-uapi', 'lib', 'lib/stubs/syscalls', '.')
diff --git a/meson_options.txt b/meson_options.txt
index c410f9b77..e23402b36 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -47,6 +47,11 @@ option('xe_eudebug',
value : 'disabled',
description : 'Build library and tests for Xe EU debugger')
+option('vmtb',
+ type : 'feature',
+ value : 'disabled',
+ description : 'Build VM Test Bench')
+
option('libdrm_drivers',
type : 'array',
value : ['auto'],
diff --git a/tools/meson.build b/tools/meson.build
index 48c9a4b50..38b04851c 100644
--- a/tools/meson.build
+++ b/tools/meson.build
@@ -113,6 +113,10 @@ if libudev.found()
install : true)
endif
+if build_vmtb
+ install_subdir('vmtb', install_dir: libexecdir)
+endif
+
subdir('i915-perf')
subdir('xe-perf')
subdir('null_state_gen')
--
2.39.1
More information about the igt-dev
mailing list