Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
From 48a177958a9ecff8f7cee379affb2f35984b58a9 Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd@kuhls.net>
|
||||
Date: Fri, 10 Jul 2026 20:34:01 +0200
|
||||
Subject: [PATCH] tools/intel_gpu_frequency: include limits.h to fix musl build
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Fixes build error seen with musl-based toolchains:
|
||||
|
||||
../tools/intel_gpu_frequency.c:90:19: error:
|
||||
‘PATH_MAX’ undeclared (first use in this function)
|
||||
90 | char path[PATH_MAX];
|
||||
|
||||
Upstream: https://patchwork.freedesktop.org/patch/739159/?series=170207&rev=1
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
tools/intel_gpu_frequency.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/tools/intel_gpu_frequency.c b/tools/intel_gpu_frequency.c
|
||||
index 6316c2e58..7df7f331d 100644
|
||||
--- a/tools/intel_gpu_frequency.c
|
||||
+++ b/tools/intel_gpu_frequency.c
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <dirent.h>
|
||||
#include <fcntl.h>
|
||||
#include <getopt.h>
|
||||
+#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
--
|
||||
2.47.3
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
From e807c4cd97c3e9bbbd89026cf9ed0b16b02ef397 Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd@kuhls.net>
|
||||
Date: Fri, 10 Jul 2026 20:35:22 +0200
|
||||
Subject: [PATCH] tests/intel/xe_madvise: Fix the type for sighandler_t
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
__sighandler_t is private interface in glibc so its
|
||||
better to not use it, as an aside fixes build with musl
|
||||
|
||||
Patch was inspired by
|
||||
https://lists.gnu.org/r/bug-time/2025-03/msg00000.html
|
||||
|
||||
Fixes build error seen with musl-based toolchains:
|
||||
|
||||
../tests/intel/xe_madvise.c: In function ‘test_dontneed_after_mmap’:
|
||||
../tests/intel/xe_madvise.c:400:48: error: ‘__sighandler_t’ undeclared
|
||||
(first use in this function); did you mean ‘sighandler_t’?
|
||||
400 | old_sigsegv = signal(SIGSEGV, (__sighandler_t)sigtrap);
|
||||
|
||||
Upstream: https://patchwork.freedesktop.org/patch/739160/?series=170207&rev=1
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
tests/intel/xe_madvise.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/tests/intel/xe_madvise.c b/tests/intel/xe_madvise.c
|
||||
index 3d36be941..a33a08630 100644
|
||||
--- a/tests/intel/xe_madvise.c
|
||||
+++ b/tests/intel/xe_madvise.c
|
||||
@@ -397,8 +397,8 @@ static void test_dontneed_after_mmap(int fd)
|
||||
char *ptr = (char *)map;
|
||||
int sig;
|
||||
|
||||
- old_sigsegv = signal(SIGSEGV, (__sighandler_t)sigtrap);
|
||||
- old_sigbus = signal(SIGBUS, (__sighandler_t)sigtrap);
|
||||
+ old_sigsegv = signal(SIGSEGV, (sighandler_t)sigtrap);
|
||||
+ old_sigbus = signal(SIGBUS, (sighandler_t)sigtrap);
|
||||
|
||||
sig = sigsetjmp(jmp, 1); /* savemask=1: save/restore signal mask */
|
||||
switch (sig) {
|
||||
--
|
||||
2.47.3
|
||||
|
||||
49
package/igt-gpu-tools/Config.in
Normal file
49
package/igt-gpu-tools/Config.in
Normal file
@@ -0,0 +1,49 @@
|
||||
config BR2_PACKAGE_IGT_GPU_TOOLS_ARCH_SUPPORTS
|
||||
bool
|
||||
default y if BR2_ENDIAN = "LITTLE"
|
||||
|
||||
config BR2_PACKAGE_IGT_GPU_TOOLS
|
||||
bool "igt-gpu-tools"
|
||||
depends on BR2_PACKAGE_IGT_GPU_TOOLS_ARCH_SUPPORTS
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on BR2_ENABLE_LOCALE
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
depends on BR2_PACKAGE_HAS_LIBUDEV
|
||||
depends on BR2_USE_WCHAR # elfutils, procps-ng
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11 # linux/dma-buf.h
|
||||
select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # procps-ng
|
||||
select BR2_PACKAGE_CAIRO
|
||||
select BR2_PACKAGE_CAIRO_PNG
|
||||
select BR2_PACKAGE_ELFUTILS
|
||||
select BR2_PACKAGE_KMOD
|
||||
select BR2_PACKAGE_LIBDRM
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
select BR2_PACKAGE_LIBPCIACCESS
|
||||
select BR2_PACKAGE_PCIUTILS
|
||||
select BR2_PACKAGE_PIXMAN
|
||||
select BR2_PACKAGE_PROCPS_NG
|
||||
select BR2_PACKAGE_ZLIB
|
||||
help
|
||||
IGT GPU Tools is a collection of tools for development and
|
||||
testing of the DRM drivers.
|
||||
|
||||
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 libudev and a toolchain w/ NPTL, wchar, dynamic library, locale, headers >= 4.11"
|
||||
depends on BR2_PACKAGE_IGT_GPU_TOOLS_ARCH_SUPPORTS
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_PACKAGE_HAS_LIBUDEV || BR2_STATIC_LIBS || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS_NPTL || !BR2_USE_WCHAR || \
|
||||
!BR2_ENABLE_LOCALE || \
|
||||
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
|
||||
6
package/igt-gpu-tools/igt-gpu-tools.hash
Normal file
6
package/igt-gpu-tools/igt-gpu-tools.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From https://lists.x.org/archives/xorg-announce/2026-June/003710.html
|
||||
sha256 bf5ee5cc1e2b92c456d626b7986be9e2d18b4765cd06c28c1ab449200c1ce5e2 igt-gpu-tools-2.5.tar.xz
|
||||
sha512 0da8f56a76bb79186da95545be63b8fa82c93edfe9b5fe6ffe43017deb792601545bba292c516b525e1e29087e9b048751df4875d8a7a64e265bac943bf6be81 igt-gpu-tools-2.5.tar.xz
|
||||
|
||||
# Hash for license file:
|
||||
sha256 1b7e266857b05808660f42369a4a797459d7b7bec7245e378aa28a8db2f213da COPYING
|
||||
62
package/igt-gpu-tools/igt-gpu-tools.mk
Normal file
62
package/igt-gpu-tools/igt-gpu-tools.mk
Normal file
@@ -0,0 +1,62 @@
|
||||
################################################################################
|
||||
#
|
||||
# igt-gpu-tools
|
||||
#
|
||||
################################################################################
|
||||
|
||||
IGT_GPU_TOOLS_VERSION = 2.5
|
||||
IGT_GPU_TOOLS_SOURCE = igt-gpu-tools-$(IGT_GPU_TOOLS_VERSION).tar.xz
|
||||
IGT_GPU_TOOLS_SITE = https://www.x.org/releases/individual/app
|
||||
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 \
|
||||
libudev \
|
||||
pciutils \
|
||||
pixman \
|
||||
procps-ng \
|
||||
zlib
|
||||
|
||||
IGT_GPU_TOOLS_CONF_OPTS = \
|
||||
-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.
|
||||
# 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_JANSSON),y)
|
||||
IGT_GPU_TOOLS_CONF_OPTS += -Drunner=enabled
|
||||
IGT_GPU_TOOLS_DEPENDENCIES += jansson
|
||||
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))
|
||||
Reference in New Issue
Block a user