package/opengl/libgles: switch to package-defined providers
authorYann E. MORIN <yann.morin.1998@free.fr>
Fri, 20 Dec 2013 22:27:54 +0000 (23:27 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 25 Dec 2013 17:20:57 +0000 (18:20 +0100)
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>
package/freescale-imx/gpu-viv-bin-mx6q/Config.in
package/opengl/Config.in
package/opengl/libgles/Config.in [new file with mode: 0644]
package/opengl/libgles/libgles.mk
package/rpi-userland/Config.in
package/sunxi-mali/Config.in
package/ti-gfx/Config.in

index 68380a2996476b5a9e12714df1fff87ed25181ba..e084568aa1cea32a8ac339f9dffb9bd6eb9d4b8d 100644 (file)
@@ -27,6 +27,9 @@ if BR2_PACKAGE_GPU_VIV_BIN_MX6Q
 config BR2_PACKAGE_PROVIDES_OPENGL_EGL
        default "gpu-viv-bin-mx6q"
 
+config BR2_PACKAGE_PROVIDES_OPENGL_ES
+       default "gpu-viv-bin-mx6q"
+
 config BR2_PACKAGE_GPU_VIV_BIN_MX6Q_EXAMPLES
        bool "install examples"
        help
index 686543b27f297fdc8dc9b93c5370259d5bf5897f..3960082747aab4fb92afe69f6a5d6df6999911f2 100644 (file)
@@ -1,7 +1,5 @@
 source "package/opengl/libegl/Config.in"
-
-config BR2_PACKAGE_HAS_OPENGL_ES
-       bool
+source "package/opengl/libgles/Config.in"
 
 config BR2_PACKAGE_HAS_OPENVG
        bool
diff --git a/package/opengl/libgles/Config.in b/package/opengl/libgles/Config.in
new file mode 100644 (file)
index 0000000..75ccfc8
--- /dev/null
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HAS_OPENGL_ES
+       bool
+
+config BR2_PACKAGE_PROVIDES_OPENGL_ES
+       depends on BR2_PACKAGE_HAS_OPENGL_ES
+       string
index ec157ac506bdf2ddbe20d0c72f73a8307dbdb0f3..0dcbaa7ddb0a2df425bfc0ac8dc83296a0421f30 100644 (file)
@@ -5,22 +5,7 @@
 ################################################################################
 
 LIBGLES_SOURCE =
-
-ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
-LIBGLES_DEPENDENCIES += rpi-userland
-endif
-
-ifeq ($(BR2_PACKAGE_TI_GFX),y)
-LIBGLES_DEPENDENCIES += ti-gfx
-endif
-
-ifeq ($(BR2_PACKAGE_SUNXI_MALI),y)
-LIBGLES_DEPENDENCIES += sunxi-mali
-endif
-
-ifeq ($(BR2_PACKAGE_GPU_VIV_BIN_MX6Q),y)
-LIBGLES_DEPENDENCIES += gpu-viv-bin-mx6q
-endif
+LIBGLES_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_OPENGL_ES))
 
 ifeq ($(LIBGLES_DEPENDENCIES),)
 define LIBGLES_CONFIGURE_CMDS
index 3c8959e2932ba115a6c6f0c892030cbdcc8f3a8f..b8860d6c9da2c7b6d8ae466f66be7b219db0953c 100644 (file)
@@ -22,6 +22,9 @@ if BR2_PACKAGE_RPI_USERLAND
 config BR2_PACKAGE_PROVIDES_OPENGL_EGL
        default "rpi-userland"
 
+config BR2_PACKAGE_PROVIDES_OPENGL_ES
+       default "rpi-userland"
+
 endif
 
 comment "rpi-userland needs a toolchain w/ C++, largefile, threads"
index 7f07647d6a3c45dd36382ecb44fbcf5af08b6091..9f188a315a32b7a357845e5cc3e5bf8df2d193c2 100644 (file)
@@ -21,6 +21,9 @@ if BR2_PACKAGE_SUNXI_MALI
 config BR2_PACKAGE_PROVIDES_OPENGL_EGL
        default "sunxi-mali"
 
+config BR2_PACKAGE_PROVIDES_OPENGL_ES
+       default "sunxi-mali"
+
 config BR2_PACKAGE_SUNXI_MALI_DBG
        bool "install malitest and maliver tools"
        help
index e89660f3e77a37b3935b39a304cf89f3fd2f9df0..929247b24162c5641961d28d3d6bee9e886d35fd 100644 (file)
@@ -14,6 +14,9 @@ if BR2_PACKAGE_TI_GFX
 config BR2_PACKAGE_PROVIDES_OPENGL_EGL
        default "ti-gfx"
 
+config BR2_PACKAGE_PROVIDES_OPENGL_ES
+       default "ti-gfx"
+
 config BR2_PACKAGE_TI_GFX_DEBUG
        bool "enable debug support"
        help