initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
From 8b0ae49c8bea78df73c3ecae0059d54a95c561fa Mon Sep 17 00:00:00 2001
|
||||
From: Romain Naour <romain.naour@gmail.com>
|
||||
Date: Sun, 24 Dec 2017 00:11:45 +0100
|
||||
Subject: [PATCH] cmake: forward cflags from *.pc files to waffle cflags
|
||||
|
||||
When building mesa egl without x11 and gles2 the headers need a
|
||||
EGL_NO_X11 define to avoid including X11 headers.
|
||||
|
||||
This define EGL_NO_X11 is lost while building waffle
|
||||
since CFLAGS defined by pc files are not used.
|
||||
|
||||
EGL_NO_X11 is defined in CFLAGS from egl.pc.
|
||||
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
---
|
||||
src/waffle/CMakeLists.txt | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/src/waffle/CMakeLists.txt b/src/waffle/CMakeLists.txt
|
||||
index d76e029..2ff72c8 100644
|
||||
--- a/src/waffle/CMakeLists.txt
|
||||
+++ b/src/waffle/CMakeLists.txt
|
||||
@@ -5,6 +5,14 @@
|
||||
add_definitions(
|
||||
-DWAFFLE_API_VERSION=${waffle_api_version}
|
||||
-DWAFFLE_API_EXPERIMENTAL
|
||||
+ ${egl_CFLAGS}
|
||||
+ ${gbm_CFLAGS}
|
||||
+ ${gl_CFLAGS}
|
||||
+ ${GLEXT_CFLAGS}
|
||||
+ ${libudev_CFLAGS}
|
||||
+ ${wayland-client_CFLAGS}
|
||||
+ ${wayland-egl_CFLAGS}
|
||||
+ ${x11-xcb_CFLAGS}
|
||||
)
|
||||
|
||||
include_directories(
|
||||
--
|
||||
2.14.3
|
||||
|
||||
@@ -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_WAYLAND
|
||||
|
||||
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
|
||||
|
||||
http://www.waffle-gl.org
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 234e65bdd2dd8f7d3bc8e9ad1a7cc80fce78a1deed3a04fe7f1d2c2edac0cd8a waffle-v1.6.1.tar.bz2
|
||||
sha256 630844d1911c8a1b7b888a1de9097c4860b7e381362fd5aa64141d58ab7ecc9b LICENSE.txt
|
||||
@@ -0,0 +1,61 @@
|
||||
################################################################################
|
||||
#
|
||||
# waffle
|
||||
#
|
||||
################################################################################
|
||||
|
||||
WAFFLE_VERSION = 1.6.1
|
||||
WAFFLE_SOURCE = waffle-v$(WAFFLE_VERSION).tar.bz2
|
||||
WAFFLE_SITE = https://gitlab.freedesktop.org/mesa/waffle/-/archive/v$(WAFFLE_VERSION)
|
||||
WAFFLE_INSTALL_STAGING = YES
|
||||
WAFFLE_LICENSE = BSD-2-Clause
|
||||
WAFFLE_LICENSE_FILES = LICENSE.txt
|
||||
|
||||
WAFFLE_DEPENDENCIES = host-pkgconf
|
||||
|
||||
WAFFLE_CONF_OPTS = -Dwaffle_build_tests=OFF \
|
||||
-Dwaffle_build_examples=OFF \
|
||||
-Dwaffle_build_manpages=OFF \
|
||||
-Dwaffle_build_htmldocs=OFF \
|
||||
-Dwaffle_has_nacl=OFF
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WAFFLE_SUPPORTS_WAYLAND),y)
|
||||
WAFFLE_DEPENDENCIES += libegl wayland
|
||||
WAFFLE_CONF_OPTS += -Dwaffle_has_wayland=ON
|
||||
else
|
||||
WAFFLE_CONF_OPTS += -Dwaffle_has_wayland=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WAFFLE_SUPPORTS_X11_EGL),y)
|
||||
WAFFLE_DEPENDENCIES += libegl libxcb xlib_libX11
|
||||
WAFFLE_CONF_OPTS += -Dwaffle_has_x11_egl=ON
|
||||
else
|
||||
WAFFLE_CONF_OPTS += -Dwaffle_has_x11_egl=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WAFFLE_SUPPORTS_GLX),y)
|
||||
WAFFLE_DEPENDENCIES += libgl libxcb xlib_libX11
|
||||
WAFFLE_CONF_OPTS += -Dwaffle_has_glx=ON
|
||||
else
|
||||
WAFFLE_CONF_OPTS += -Dwaffle_has_glx=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WAFFLE_SUPPORTS_GBM),y)
|
||||
WAFFLE_DEPENDENCIES += libegl udev
|
||||
WAFFLE_CONF_OPTS += -Dwaffle_has_gbm=ON
|
||||
else
|
||||
WAFFLE_CONF_OPTS += -Dwaffle_has_gbm=OFF
|
||||
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 += -Dwaffle_has_surfaceless_egl=ON
|
||||
else
|
||||
WAFFLE_CONF_OPTS += -Dwaffle_has_surfaceless_egl=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user