[meta-freescale] [meta-fsl-arm][PATCH 4/8] amd-gpu-mx51: Stop auto-renaming GPU driver libraries

Otavio Salvador otavio at ossystems.com.br
Thu Feb 5 03:04:58 PST 2015


The AMD GPU libraries shouldn't be renamed; this allow for runtime to
choose the right library at installation time.

Change-Id: If674fa3d3ee0c8ff99688d0a1bc2dfda67355fa8
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---
 recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc | 24 +++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc
index 9d97ab0..743892a 100644
--- a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc
+++ b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc
@@ -1,5 +1,5 @@
 # Copyright (C) 2011, 2012, 2013 Freescale
-# Copyright (C) 2011-2014 O.S. Systems Software LTDA.
+# Copyright (C) 2011-2015 O.S. Systems Software LTDA.
 # Released under the MIT license (see COPYING.MIT for the terms)
 
 LICENSE = "Proprietary"
@@ -17,11 +17,31 @@ SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \
 
 inherit fsl-eula-unpack
 
+# For the packages that make up the OpenGL interfaces, inject variables so that
+# they don't get Debian-renamed (which would remove the -mx51 suffix).
+#
 # FIXME: All binaries lack GNU_HASH in elf binary but as we don't have
 # the source we cannot fix it. Disable the insane check for now.
-python () {
+python __anonymous() {
     for p in d.getVar('PACKAGES', True).split():
         d.setVar("INSANE_SKIP_%s" % p, "ldflags")
+
+    for p in (("libegl", "libegl1"), ("libgl", "libgl1"),
+              ("libgles2", "libglesv2-2")):
+        fullp = p[0] + "-mx51"
+        pkgs = " ".join(p)
+        d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1")
+        d.appendVar("RREPLACES_" + fullp, pkgs)
+        d.appendVar("RPROVIDES_" + fullp, pkgs)
+        d.appendVar("RCONFLICTS_" + fullp, pkgs)
+
+        # For -dev, the first element is both the Debian and original name
+        fullp += "-dev"
+        pkgs = p[0] + "-dev"
+        d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1")
+        d.appendVar("RREPLACES_" + fullp, pkgs)
+        d.appendVar("RPROVIDES_" + fullp, pkgs)
+        d.appendVar("RCONFLICTS_" + fullp, pkgs)
 }
 
 do_install () {
-- 
2.1.4



More information about the meta-freescale mailing list