Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
From 6b3c46483844faba4dfe7dd90dc2b0cd06e67158 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 10 Nov 2025 19:20:22 -0800
Subject: [PATCH] c11/threads: fix build on c23
C23/glibc is now including once_init in stdlib.h
https://patchwork.sourceware.org/project/glibc/patch/78061085-f04a-0c45-107b-5a8a15521083@redhat.com/#213088
Conditionally check if glibc already provided c23 definition via stdlib.h
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Upstream: https://gitlab.freedesktop.org/mesa/waffle/-/merge_requests/158
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
third_party/threads/threads.h | 3 ++-
third_party/threads/threads_posix.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/third_party/threads/threads.h b/third_party/threads/threads.h
index b4db50c..cdc7bea 100644
--- a/third_party/threads/threads.h
+++ b/third_party/threads/threads.h
@@ -102,8 +102,9 @@ typedef pthread_cond_t cnd_t;
typedef pthread_t thrd_t;
typedef pthread_key_t tss_t;
typedef pthread_mutex_t mtx_t;
+#ifndef __once_flag_defined
typedef pthread_once_t once_flag;
-
+#endif
#else
#error Not supported on this platform.
#endif
diff --git a/third_party/threads/threads_posix.c b/third_party/threads/threads_posix.c
index bc50825..d93013b 100644
--- a/third_party/threads/threads_posix.c
+++ b/third_party/threads/threads_posix.c
@@ -75,11 +75,12 @@ static void *impl_thrd_routine(void *p)
/*--------------- 7.25.2 Initialization functions ---------------*/
// 7.25.2.1
+#ifndef __once_flag_defined
void call_once(once_flag *flag, void (*func)(void))
{
pthread_once(flag, func);
}
-
+#endif
/*------------- 7.25.3 Condition variable functions -------------*/
// 7.25.3.1
--
GitLab

47
package/waffle/Config.in Normal file
View File

@@ -0,0 +1,47 @@
config BR2_PACKAGE_WAFFLE_SUPPORTS_GLX
bool
default y if BR2_PACKAGE_HAS_LIBGL && BR2_PACKAGE_XORG7
config BR2_PACKAGE_WAFFLE_SUPPORTS_WAYLAND
bool
default y if BR2_PACKAGE_WAYLAND && BR2_PACKAGE_HAS_LIBEGL
config BR2_PACKAGE_WAFFLE_SUPPORTS_X11_EGL
bool
default y if BR2_PACKAGE_HAS_LIBEGL && BR2_PACKAGE_XORG7
config BR2_PACKAGE_WAFFLE_SUPPORTS_GBM
bool
# mesa3d is for now the only GBM provider, and it is enabled
# together with its EGL support
default y if BR2_PACKAGE_HAS_LIBEGL && BR2_PACKAGE_MESA3D_OPENGL_EGL && BR2_PACKAGE_HAS_UDEV
config BR2_PACKAGE_WAFFLE
bool "waffle"
depends on BR2_PACKAGE_WAFFLE_SUPPORTS_GLX || \
BR2_PACKAGE_WAFFLE_SUPPORTS_WAYLAND || \
BR2_PACKAGE_WAFFLE_SUPPORTS_X11_EGL || \
BR2_PACKAGE_WAFFLE_SUPPORTS_GBM
select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_WAFFLE_SUPPORTS_GLX || BR2_PACKAGE_WAFFLE_SUPPORTS_X11_EGL
select BR2_PACKAGE_LIBXCB if BR2_PACKAGE_WAFFLE_SUPPORTS_GLX || BR2_PACKAGE_WAFFLE_SUPPORTS_X11_EGL
help
Waffle is a cross-platform library that allows one to defer
selection of an OpenGL API and of window system until
runtime. For example, on Linux, Waffle enables an application
to select X11/EGL with an OpenGL 3.3 core profile, Wayland
with OpenGL ES2, and other window system / API combinations.
Waffle's immediate goal is to enable Piglit [1] to test
multiple OpenGL flavors in a cross-platform way, and to allow
each Piglit test to choose its OpenGL API and window system
at runtime. A future goal is to enable the ability to record
(with another tool such APITrace [2]) an application's OpenGL
calls on one operating system or window system, and then
replay that trace on a different system.
For more information, visit to Waffle's website.
[1] http://piglit.freedesktop.org
[2] http://github.com/apitrace/apitrace#readme
https://waffle.freedesktop.org/

View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 1058cca5ccd6c0c22c9c0cbe65f91a5dda5f77d08dac4ac8a38400bdd72be491 waffle-v1.8.0-95-g5f1f48287e806544d745e9a8f5aed47234c61292-git4.tar.gz
sha256 630844d1911c8a1b7b888a1de9097c4860b7e381362fd5aa64141d58ab7ecc9b LICENSE.txt

63
package/waffle/waffle.mk Normal file
View File

@@ -0,0 +1,63 @@
################################################################################
#
# waffle
#
################################################################################
WAFFLE_VERSION = v1.8.0-95-g5f1f48287e806544d745e9a8f5aed47234c61292
WAFFLE_SITE = https://gitlab.freedesktop.org/mesa/waffle.git
WAFFLE_SITE_METHOD = git
WAFFLE_INSTALL_STAGING = YES
WAFFLE_LICENSE = BSD-2-Clause
WAFFLE_LICENSE_FILES = LICENSE.txt
WAFFLE_DEPENDENCIES = host-pkgconf
WAFFLE_CONF_OPTS = \
-Dbuild.pkg_config_path=$(STAGING_DIR)/usr/lib/pkgconfig \
-Dbuild-tests=false \
-Dbuild-examples=false \
-Dbuild-manpages=false \
-Dbuild-htmldocs=false \
-Dnacl=false
ifeq ($(BR2_PACKAGE_WAFFLE_SUPPORTS_WAYLAND),y)
WAFFLE_DEPENDENCIES += libegl wayland
WAFFLE_CONF_OPTS += -Dwayland=enabled
else
WAFFLE_CONF_OPTS += -Dwayland=disabled
endif
ifeq ($(BR2_PACKAGE_WAFFLE_SUPPORTS_X11_EGL),y)
WAFFLE_DEPENDENCIES += libegl libxcb xlib_libX11
WAFFLE_CONF_OPTS += -Dx11_egl=enabled
else
WAFFLE_CONF_OPTS += -Dx11_egl=disabled
endif
ifeq ($(BR2_PACKAGE_WAFFLE_SUPPORTS_GLX),y)
WAFFLE_DEPENDENCIES += libgl libxcb xlib_libX11
WAFFLE_CONF_OPTS += -Dglx=enabled
else
WAFFLE_CONF_OPTS += -Dglx=disabled
endif
ifeq ($(BR2_PACKAGE_WAFFLE_SUPPORTS_GBM),y)
WAFFLE_DEPENDENCIES += libegl udev
WAFFLE_CONF_OPTS += -Dgbm=enabled
else
WAFFLE_CONF_OPTS += -Dgbm=disabled
endif
ifeq ($(BR2_PACKAGE_BASH_COMPLETION),y)
WAFFLE_DEPENDENCIES += bash-completion
endif
ifeq ($(BR2_PACKAGE_MESA3D)$(BR2_PACKAGE_MESA3D_OPENGL_EGL),yy)
WAFFLE_DEPENDENCIES += mesa3d
WAFFLE_CONF_OPTS += -Dsurfaceless_egl=enabled
else
WAFFLE_CONF_OPTS += -Dsurfaceless_egl=disabled
endif
$(eval $(meson-package))