mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 21:26:36 +00:00
package/mesa3d: provides libgl not only with DRI drivers
This patch is a follow-up for
999d4a2631
libGL.so and support files are not only available with DRI drivers but
also with Gallium drivers, in fact mesa3d can be built without any
driver enabled - unless X.org is disabled it will provide libGL.so.
Tested using this defconfig:
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_KODI=y
BR2_PACKAGE_KODI_VISUALISATION_WAVEFORHUE=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_XORG7=y
Fixes
http://autobuild.buildroot.net/results/d97/d97a80e6de066a7dea08b284eab24fc44b11d661/
kodi-visualisation-waveforhue detects OpenGL installed by mesa3d but the
kodi package itself does not select libglew before because mesa3d was
not listed as a provider for libgl in the buildroot build system.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
bdef0f00f9
commit
33bf5e436a
@ -6,6 +6,7 @@ menuconfig BR2_PACKAGE_MESA3D
|
|||||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||||
select BR2_PACKAGE_LIBDRM
|
select BR2_PACKAGE_LIBDRM
|
||||||
select BR2_PACKAGE_EXPAT
|
select BR2_PACKAGE_EXPAT
|
||||||
|
select BR2_PACKAGE_HAS_LIBGL if BR2_PACKAGE_XORG7
|
||||||
select BR2_PACKAGE_XPROTO_DRI2PROTO if BR2_PACKAGE_XORG7
|
select BR2_PACKAGE_XPROTO_DRI2PROTO if BR2_PACKAGE_XORG7
|
||||||
select BR2_PACKAGE_XPROTO_GLPROTO if BR2_PACKAGE_XORG7
|
select BR2_PACKAGE_XPROTO_GLPROTO if BR2_PACKAGE_XORG7
|
||||||
select BR2_PACKAGE_XPROTO_XF86DRIPROTO if BR2_PACKAGE_XORG7
|
select BR2_PACKAGE_XPROTO_XF86DRIPROTO if BR2_PACKAGE_XORG7
|
||||||
@ -28,15 +29,10 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
|||||||
|
|
||||||
config BR2_PACKAGE_MESA3D_DRI_DRIVER
|
config BR2_PACKAGE_MESA3D_DRI_DRIVER
|
||||||
select BR2_PACKAGE_MESA3D_DRIVER
|
select BR2_PACKAGE_MESA3D_DRIVER
|
||||||
select BR2_PACKAGE_HAS_LIBGL if BR2_PACKAGE_XORG7
|
|
||||||
select BR2_PACKAGE_XLIB_LIBXSHMFENCE if BR2_PACKAGE_XPROTO_DRI3PROTO
|
select BR2_PACKAGE_XLIB_LIBXSHMFENCE if BR2_PACKAGE_XPROTO_DRI3PROTO
|
||||||
select BR2_PACKAGE_XPROTO_PRESENTPROTO if BR2_PACKAGE_XPROTO_DRI3PROTO
|
select BR2_PACKAGE_XPROTO_PRESENTPROTO if BR2_PACKAGE_XPROTO_DRI3PROTO
|
||||||
bool
|
bool
|
||||||
|
|
||||||
config BR2_PACKAGE_PROVIDES_LIBGL
|
|
||||||
default "mesa3d" if BR2_PACKAGE_MESA3D_DRI_DRIVER && \
|
|
||||||
BR2_PACKAGE_XORG7
|
|
||||||
|
|
||||||
config BR2_PACKAGE_MESA3D_DRIVER
|
config BR2_PACKAGE_MESA3D_DRIVER
|
||||||
bool
|
bool
|
||||||
|
|
||||||
@ -164,6 +160,9 @@ config BR2_PACKAGE_MESA3D_OPENGL_ES
|
|||||||
|
|
||||||
endif # BR2_PACKAGE_MESA3D_DRIVER
|
endif # BR2_PACKAGE_MESA3D_DRIVER
|
||||||
|
|
||||||
|
config BR2_PACKAGE_PROVIDES_LIBGL
|
||||||
|
default "mesa3d" if BR2_PACKAGE_XORG7
|
||||||
|
|
||||||
config BR2_PACKAGE_PROVIDES_LIBEGL
|
config BR2_PACKAGE_PROVIDES_LIBEGL
|
||||||
default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_EGL
|
default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_EGL
|
||||||
|
|
||||||
|
@ -109,10 +109,6 @@ endif
|
|||||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXXF86VM),y)
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXXF86VM),y)
|
||||||
MESA3D_DEPENDENCIES += xlib_libXxf86vm
|
MESA3D_DEPENDENCIES += xlib_libXxf86vm
|
||||||
endif
|
endif
|
||||||
# libGL is only provided for a full xorg stack
|
|
||||||
ifeq ($(BR2_PACKAGE_XORG7),y)
|
|
||||||
MESA3D_PROVIDES += libgl
|
|
||||||
endif
|
|
||||||
MESA3D_CONF_OPTS += \
|
MESA3D_CONF_OPTS += \
|
||||||
--enable-shared-glapi \
|
--enable-shared-glapi \
|
||||||
--enable-driglx-direct \
|
--enable-driglx-direct \
|
||||||
@ -135,6 +131,11 @@ MESA3D_CONF_OPTS += --enable-opengl --enable-dri
|
|||||||
# we do not need libva support in mesa3d, therefore disable this option
|
# we do not need libva support in mesa3d, therefore disable this option
|
||||||
MESA3D_CONF_OPTS += --disable-va
|
MESA3D_CONF_OPTS += --disable-va
|
||||||
|
|
||||||
|
# libGL is only provided for a full xorg stack
|
||||||
|
ifeq ($(BR2_PACKAGE_XORG7),y)
|
||||||
|
MESA3D_PROVIDES += libgl
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
|
ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
|
||||||
MESA3D_PROVIDES += libegl
|
MESA3D_PROVIDES += libegl
|
||||||
ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),y)
|
ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),y)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user