All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] imx-gpu-viv: Avoid duplicate values in PROVIDES
@ 2015-06-16 13:18 Gary Thomas
  2015-06-17 14:06 ` Otavio Salvador
  0 siblings, 1 reply; 14+ messages in thread
From: Gary Thomas @ 2015-06-16 13:18 UTC (permalink / raw)
  To: meta-freescale; +Cc: Gary Thomas

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>
---
 recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc
index ea19292..4b6e030 100644
--- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc
+++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc
@@ -11,11 +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"
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-06-17 15:28 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-16 13:18 [PATCH] imx-gpu-viv: Avoid duplicate values in PROVIDES Gary Thomas
2015-06-17 14:06 ` Otavio Salvador
2015-06-17 14:25   ` Gary Thomas
2015-06-17 14:31     ` Otavio Salvador
2015-06-17 14:46       ` Gary Thomas
2015-06-17 14:56         ` Fabio Estevam
2015-06-17 15:01           ` Gary Thomas
2015-06-17 15:11             ` Fabio Estevam
2015-06-17 15:22               ` Gary Thomas
2015-06-17 15:12             ` Nikolay Dimitrov
2015-06-17 15:14             ` Otavio Salvador
2015-06-17 15:21               ` Gary Thomas
2015-06-17 15:24                 ` Fabio Estevam
2015-06-17 15:28                   ` Gary Thomas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.