ef07e8da6f
Disable tests to avoid the following build failure raised since the addition of the package in commitd8a729d173
: ../tests/intel/kms_pm_backlight.c: In function '__igt_unique____real_main257': ../tests/intel/kms_pm_backlight.c:320:32: error: implicit declaration of function 'basename'; did you mean 'rename'? [-Werror=implicit-function-declaration] 320 | name = basename(full_name); | ^~~~~~~~ | rename Fixes:d8a729d173
- http://autobuild.buildroot.org/results/ff5de58ca9408f3a4fc6b6d5bd8c62093c1021ad Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
55 lines
1.7 KiB
Makefile
55 lines
1.7 KiB
Makefile
################################################################################
|
|
#
|
|
# igt-gpu-tools
|
|
#
|
|
################################################################################
|
|
|
|
IGT_GPU_TOOLS_VERSION = 0ee4074685c1e184f2d3612ea6eb4d126f9a2e23
|
|
IGT_GPU_TOOLS_SOURCE = igt-gpu-tools-$(IGT_GPU_TOOLS_VERSION).tar.bz2
|
|
IGT_GPU_TOOLS_SITE = https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/archive/$(IGT_GPU_TOOLS_VERSION)
|
|
IGT_GPU_TOOLS_LICENSE = MIT
|
|
IGT_GPU_TOOLS_LICENSE_FILES = COPYING
|
|
IGT_GPU_TOOLS_INSTALL_STAGING = YES
|
|
IGT_GPU_TOOLS_DEPENDENCIES = \
|
|
host-pkgconf \
|
|
cairo \
|
|
elfutils \
|
|
kmod \
|
|
libdrm \
|
|
libglib2 \
|
|
libpciaccess \
|
|
pixman \
|
|
procps-ng \
|
|
udev \
|
|
zlib
|
|
|
|
IGT_GPU_TOOLS_CONF_OPTS = -Dtests=disabled
|
|
|
|
# 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.
|
|
# The igt_x86_features function is implemented is a different object and the
|
|
# call uses the PLT itself. If lazy binding is disabled, this causes a segfault
|
|
# while resolving the symbols for libigt on x64 systems. Disable BINDNOW on X86
|
|
# systems to prevent the segfaults.
|
|
# https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/102
|
|
# https://bugs.gentoo.org/788625#c13
|
|
ifeq ($(BR2_i386)$(BR2_x86_64)x$(BR2_RELRO_NONE),yx)
|
|
IGT_GPU_TOOLS_LDFLAGS = $(TARGET_LDFLAGS) -Wl,-z,lazy
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JSON_C),y)
|
|
IGT_GPU_TOOLS_CONF_OPTS += -Drunner=enabled
|
|
IGT_GPU_TOOLS_DEPENDENCIES += json-c
|
|
else
|
|
IGT_GPU_TOOLS_CONF_OPTS += -Drunner=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
|
|
IGT_GPU_TOOLS_CONF_OPTS += -Dlibunwind=enabled
|
|
IGT_GPU_TOOLS_DEPENDENCIES += libunwind
|
|
else
|
|
IGT_GPU_TOOLS_CONF_OPTS += -Dlibunwind=disabled
|
|
endif
|
|
|
|
$(eval $(meson-package))
|