Initial Commit
- initial default booting image
This commit is contained in:
51
package/libglvnd/Config.in
Normal file
51
package/libglvnd/Config.in
Normal file
@@ -0,0 +1,51 @@
|
||||
config BR2_PACKAGE_LIBGLVND
|
||||
bool "libglvnd"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # __sync_*_4 intrisics
|
||||
depends on !BR2_STATIC_LIBS # dlfcn.h
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
help
|
||||
The GL Vendor-Neutral Dispatch library
|
||||
|
||||
libglvnd is a vendor-neutral dispatch layer for arbitrating
|
||||
OpenGL API calls between multiple vendors. It allows multiple
|
||||
drivers from different vendors to coexist on the same
|
||||
filesystem, and determines which vendor to dispatch each API
|
||||
call to at runtime.
|
||||
|
||||
Both GLX and EGL are supported, in any combination with OpenGL
|
||||
and OpenGL ES.
|
||||
|
||||
if BR2_PACKAGE_LIBGLVND
|
||||
|
||||
# The following symbols should be selected by the libglvnd-aware
|
||||
# GL/EGL/GLES providers.
|
||||
config BR2_PACKAGE_LIBGLVND_DISPATCH_GL
|
||||
bool
|
||||
depends on BR2_PACKAGE_XORG7 # libx11, libXext, xorgproto
|
||||
select BR2_PACKAGE_XLIB_LIBX11
|
||||
select BR2_PACKAGE_XLIB_LIBXEXT
|
||||
select BR2_PACKAGE_XORGPROTO
|
||||
select BR2_PACKAGE_HAS_LIBGL
|
||||
|
||||
config BR2_PACKAGE_LIBGLVND_DISPATCH_EGL
|
||||
bool
|
||||
select BR2_PACKAGE_HAS_LIBEGL
|
||||
|
||||
config BR2_PACKAGE_LIBGLVND_DISPATCH_GLES
|
||||
bool
|
||||
select BR2_PACKAGE_HAS_LIBGLES
|
||||
|
||||
config BR2_PACKAGE_PROVIDES_LIBGL
|
||||
default "libglvnd" if BR2_PACKAGE_LIBGLVND_DISPATCH_GL
|
||||
|
||||
config BR2_PACKAGE_PROVIDES_LIBEGL
|
||||
default "libglvnd" if BR2_PACKAGE_LIBGLVND_DISPATCH_EGL
|
||||
|
||||
config BR2_PACKAGE_PROVIDES_LIBGLES
|
||||
default "libglvnd" if BR2_PACKAGE_LIBGLVND_DISPATCH_GLES
|
||||
|
||||
endif
|
||||
|
||||
comment "libglvnd needs a toolchain w/ dynamic library, threads"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
7
package/libglvnd/libglvnd.hash
Normal file
7
package/libglvnd/libglvnd.hash
Normal file
@@ -0,0 +1,7 @@
|
||||
# Locally computed
|
||||
sha256 13ae5bb99a5a2869fbe00aadb49b21fd9c13dfbf59844b0f88d521098094d44a libglvnd-1.7.0.tar.gz
|
||||
|
||||
# Locally computed hashes for license files
|
||||
sha256 f84a3eca98cc5bdf5318741124c38c5e877f856df8c7e229ee5065e5c61038c2 README.md
|
||||
sha256 e9b9aac8421b6d29176c6f23f6f7a907194245e35ef99ace10839734961cfaa2 src/util/uthash/LICENSE
|
||||
sha256 f6f207863675ca5a5128fd120b9aef4f4bbab73ffa57e5f771ccffc8e3cc56b7 src/util/cJSON/LICENSE
|
||||
52
package/libglvnd/libglvnd.mk
Normal file
52
package/libglvnd/libglvnd.mk
Normal file
@@ -0,0 +1,52 @@
|
||||
################################################################################
|
||||
#
|
||||
# libglvnd
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBGLVND_VERSION = 1.7.0
|
||||
LIBGLVND_SITE = https://gitlab.freedesktop.org/glvnd/libglvnd/uploads/c24806c283070dc70700234ca8ffacf8
|
||||
|
||||
LIBGLVND_LICENSE = \
|
||||
libglvnd license, \
|
||||
Apache-2.0 (Khronos headers), \
|
||||
MIT (Xorg; mesa; cJSON), \
|
||||
BSD-1=Clause (uthash)
|
||||
|
||||
LIBGLVND_LICENSE_FILES = \
|
||||
README.md \
|
||||
src/util/uthash/LICENSE \
|
||||
src/util/cJSON/LICENSE
|
||||
|
||||
LIBGLVND_INSTALL_STAGING = YES
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
|
||||
LIBGLVND_DEPENDENCIES += xlib_libX11
|
||||
LIBGLVND_CONF_OPTS += -Dx11=enabled
|
||||
else
|
||||
LIBGLVND_CONF_OPTS += -Dx11=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBGLVND_DISPATCH_GL),y)
|
||||
LIBGLVND_DEPENDENCIES += xlib_libXext xorgproto
|
||||
LIBGLVND_CONF_OPTS += -Dglx=enabled
|
||||
LIBGLVND_PROVIDES += libgl
|
||||
else
|
||||
LIBGLVND_CONF_OPTS += -Dglx=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBGLVND_DISPATCH_EGL),y)
|
||||
LIBGLVND_CONF_OPTS += -Degl=true
|
||||
LIBGLVND_PROVIDES += libegl
|
||||
else
|
||||
LIBGLVND_CONF_OPTS += -Degl=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBGLVND_DISPATCH_GLES),y)
|
||||
LIBGLVND_CONF_OPTS += -Dgles1=true -Dgles2=true
|
||||
LIBGLVND_PROVIDES += libgles
|
||||
else
|
||||
LIBGLVND_CONF_OPTS += -Dgles1=false -Dgles2=false
|
||||
endif
|
||||
|
||||
$(eval $(meson-package))
|
||||
Reference in New Issue
Block a user