For the underlying reasons, see previous patch, titled:
package/opengl/libegl: switch to package-defined providers
Reported-by: David Corvoysier <david.corvoysier@orange.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
source "package/opengl/libegl/Config.in"
source "package/opengl/libgles/Config.in"
-
-config BR2_PACKAGE_HAS_OPENVG
- bool
+source "package/opengl/libopenvg/Config.in"
config BR2_PACKAGE_HAS_OPENMAX
bool
--- /dev/null
+config BR2_PACKAGE_HAS_OPENVG
+ bool
+
+config BR2_PACKAGE_PROVIDES_OPENVG
+ depends on BR2_PACKAGE_HAS_OPENVG
+ string
################################################################################
LIBOPENVG_SOURCE =
-
-ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
-LIBOPENVG_DEPENDENCIES += rpi-userland
-endif
+LIBOPENVG_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_OPENVG))
ifeq ($(LIBOPENVG_DEPENDENCIES),)
define LIBOPENVG_CONFIGURE_CMDS
config BR2_PACKAGE_PROVIDES_OPENGL_ES
default "rpi-userland"
+config BR2_PACKAGE_PROVIDES_OPENVG
+ default "rpi-userland"
+
endif
comment "rpi-userland needs a toolchain w/ C++, largefile, threads"