diff --git a/package/igt-gpu-tools/Config.in b/package/igt-gpu-tools/Config.in index de87bf8e99..184acb4cf1 100644 --- a/package/igt-gpu-tools/Config.in +++ b/package/igt-gpu-tools/Config.in @@ -24,6 +24,16 @@ config BR2_PACKAGE_IGT_GPU_TOOLS https://gitlab.freedesktop.org/drm/igt-gpu-tools +if BR2_PACKAGE_IGT_GPU_TOOLS + +config BR2_PACKAGE_IGT_GPU_TOOLS_TESTS + bool "enable tests" + help + Enable IGT tests, resulting in individual executables + for GPU testing under /usr/libexec/igt-gpu-tools. + +endif + comment "igt-gpu-tools needs udev /dev management and toolchain w/ NPTL, wchar, dynamic library, locale, headers >= 4.11" depends on BR2_USE_MMU depends on !BR2_PACKAGE_HAS_UDEV || BR2_STATIC_LIBS || \ diff --git a/package/igt-gpu-tools/igt-gpu-tools.mk b/package/igt-gpu-tools/igt-gpu-tools.mk index e3e7d4a896..bc430b6222 100644 --- a/package/igt-gpu-tools/igt-gpu-tools.mk +++ b/package/igt-gpu-tools/igt-gpu-tools.mk @@ -24,8 +24,13 @@ IGT_GPU_TOOLS_DEPENDENCIES = \ zlib IGT_GPU_TOOLS_CONF_OPTS = \ - -Dchamelium=disabled \ - -Dtests=disabled + -Dchamelium=disabled + +ifeq ($(BR2_PACKAGE_IGT_GPU_TOOLS_TESTS),y) +IGT_GPU_TOOLS_CONF_OPTS += -Dtests=enabled +else +IGT_GPU_TOOLS_CONF_OPTS += -Dtests=disabled +endif # On x86 systems, libigt resolves igt_half_to_float and igt_float_to_half as # indirect functions at runtime by checking CPU features with igt_x86_features.