Commit 2bb9df30 authored by Yann E. MORIN's avatar Yann E. MORIN Committed by Thomas Petazzoni
Browse files

package/libegl: rename the _HAS and _PROVIDES variables



The basic rule for a package is to have its options named
after the package name. There is no reason this should not
also be the case for virtual packages.

Besides, this will allow us to switch libegl to use the
soon-to-be-introduced virtual-package infrastructure.

Signed-off-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com>
Cc: Mike Zick <minimod@morethan.org>
Cc: Samuel Martin <s.martin49@gmail.com>
Reviewed-by: default avatarSamuel Martin <s.martin49@gmail.com>
cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent ec0de5d2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ comment "gpu-viv-bin-mx6q needs an (e)glibc toolchain"

config BR2_PACKAGE_GPU_VIV_BIN_MX6Q
	bool "gpu-viv-bin-mx6q"
	select BR2_PACKAGE_HAS_OPENGL_EGL
	select BR2_PACKAGE_HAS_LIBEGL
	select BR2_PACKAGE_HAS_LIBGLES
	select BR2_PACKAGE_XLIB_LIBXDAMAGE if BR2_PACKAGE_XORG7
	select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7
@@ -24,7 +24,7 @@ config BR2_PACKAGE_GPU_VIV_BIN_MX6Q

if BR2_PACKAGE_GPU_VIV_BIN_MX6Q

config BR2_PACKAGE_PROVIDES_OPENGL_EGL
config BR2_PACKAGE_PROVIDES_LIBEGL
	default "gpu-viv-bin-mx6q"

config BR2_PACKAGE_PROVIDES_LIBGLES
+1 −1
Original line number Diff line number Diff line
@@ -464,7 +464,7 @@ comment "rsvg plugin needs a toolchain w/ C++, wchar, threads"

config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_EGLGLES
	bool "eglgles"
	depends on BR2_PACKAGE_HAS_OPENGL_EGL && BR2_PACKAGE_HAS_LIBGLES
	depends on BR2_PACKAGE_HAS_LIBEGL && BR2_PACKAGE_HAS_LIBGLES
	help
	  EGL/GLES sink

+2 −2
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ depends on BR2_PACKAGE_MESA3D_DRIVER
config BR2_PACKAGE_MESA3D_OPENGL_EGL
	bool "EGL"
	depends on BR2_PACKAGE_HAS_UDEV
	select BR2_PACKAGE_HAS_OPENGL_EGL
	select BR2_PACKAGE_HAS_LIBEGL
	help
	  Use the Khronos EGL APIs. EGL is a window manager for OpenGL applications
	  similar to GLX, for X, and WGL, for Windows.
@@ -106,7 +106,7 @@ config BR2_PACKAGE_MESA3D_OPENGL_ES

endmenu

config BR2_PACKAGE_PROVIDES_OPENGL_EGL
config BR2_PACKAGE_PROVIDES_LIBEGL
	default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_EGL

config BR2_PACKAGE_PROVIDES_LIBGLES
+3 −3
Original line number Diff line number Diff line
config BR2_PACKAGE_HAS_OPENGL_EGL
config BR2_PACKAGE_HAS_LIBEGL
	bool

config BR2_PACKAGE_PROVIDES_OPENGL_EGL
	depends on BR2_PACKAGE_HAS_OPENGL_EGL
config BR2_PACKAGE_PROVIDES_LIBEGL
	depends on BR2_PACKAGE_HAS_LIBEGL
	string
+2 −2
Original line number Diff line number Diff line
@@ -5,9 +5,9 @@
################################################################################

LIBEGL_SOURCE =
LIBEGL_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_OPENGL_EGL))
LIBEGL_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_LIBEGL))

ifeq ($(BR2_PACKAGE_HAS_OPENGL_EGL),y)
ifeq ($(BR2_PACKAGE_HAS_LIBEGL),y)
ifeq ($(LIBEGL_DEPENDENCIES),)
$(error No libEGL implementation selected. Configuration error.)
endif
Loading