package/powervr: switch to package-defined providers
authorYann E. MORIN <yann.morin.1998@free.fr>
Fri, 20 Dec 2013 22:27:57 +0000 (23:27 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 25 Dec 2013 17:21:33 +0000 (18:21 +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/powervr/Config.in
package/powervr/powervr.mk
package/ti-gfx/Config.in

index d09ce74d6a51120a431ed838acedf5750097f436..746e15b291aeec6c3b7ea5c4d9c811e0b596443f 100644 (file)
@@ -1,2 +1,6 @@
 config BR2_PACKAGE_HAS_POWERVR
        bool
+
+config BR2_PACKAGE_PROVIDES_POWERVR
+       depends on BR2_PACKAGE_HAS_POWERVR
+       string
index 83392fde36e429973045cda1dacafcc6774959c2..1f435056114c7515f57d573504ce765c7a42cb0a 100644 (file)
@@ -5,10 +5,7 @@
 ################################################################################
 
 POWERVR_SOURCE =
-
-ifeq ($(BR2_PACKAGE_TI_GFX),y)
-POWERVR_DEPENDENCIES += ti-gfx
-endif
+POWERVR_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_POWERVR))
 
 ifeq ($(POWERVR_DEPENDENCIES),)
 define POWERVR_CONFIGURE_CMDS
index 929247b24162c5641961d28d3d6bee9e886d35fd..f455f4ca705c4979f3c47c1504c41f4aafea7a72 100644 (file)
@@ -17,6 +17,9 @@ config BR2_PACKAGE_PROVIDES_OPENGL_EGL
 config BR2_PACKAGE_PROVIDES_OPENGL_ES
        default "ti-gfx"
 
+config BR2_PACKAGE_PROVIDES_POWERVR
+       default "ti-gfx"
+
 config BR2_PACKAGE_TI_GFX_DEBUG
        bool "enable debug support"
        help