]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-gpu-viv: Avoid duplicate values in PROVIDES
authorGary Thomas <gary@mlbassoc.com>
Tue, 16 Jun 2015 13:08:51 +0000 (07:08 -0600)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 17 Jun 2015 15:21:59 +0000 (12:21 -0300)
Additional packages are added to the PROVIDES variable, depending on
the type of processor being supported, e.g. i.MX6Q, i.MX6SX, etc.
The old way this was being set could add multiple versions of the
same package to the PROVIDES variable which in turn can cause confusion
with sstate, e.g. a number of i.MX6 machines use :mx6q:mx6dl in their
overrides whereas others might only have :mx6q.  With the previous
setting of PROVIDES, this package would not be sharable via sstate
between such machines.

This patch changes the process so that these extra packages are only
added once, improving the [re]usability of sstate.

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc

index ea19292d8485ad2059b73d08184f6e9a7958c888..4b6e030ec242b355cc319345fa8ae3cce07732af 100644 (file)
@@ -11,10 +11,11 @@ DEPENDS += "${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxdamag
                              base_contains('DISTRO_FEATURES', 'wayland', 'wayland', \
                                            '', d), d)}"
 
-PROVIDES += "virtual/wayland-egl virtual/libgal-x11 virtual/egl virtual/libopenvg virtual/libg2d"
-PROVIDES_append_mx6q  = " virtual/libgl virtual/libgles1 virtual/libgles2"
-PROVIDES_append_mx6dl  = " virtual/libgl virtual/libgles1 virtual/libgles2"
-PROVIDES_append_mx6sx  = " virtual/libgl virtual/libgles1 virtual/libgles2"
+EXTRA_PROVIDES = ""
+EXTRA_PROVIDES_mx6q  = " virtual/libgl virtual/libgles1 virtual/libgles2"
+EXTRA_PROVIDES_mx6dl  = " virtual/libgl virtual/libgles1 virtual/libgles2"
+EXTRA_PROVIDES_mx6sx  = " virtual/libgl virtual/libgles1 virtual/libgles2"
+PROVIDES += "virtual/wayland-egl virtual/libgal-x11 virtual/egl virtual/libopenvg virtual/libg2d ${EXTRA_PROVIDES}"
 
 PE = "1"