summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2015-01-31 19:02:49 -0200
committerOtavio Salvador <otavio@ossystems.com.br>2015-02-05 23:08:27 -0200
commit6fb2f855e2b277df01a6f025e255f02f6154c46b (patch)
treeaa842d57cf87ab5fe27b50696cab1ce525b75df1 /recipes-graphics
parentfab7dfb61978399a5486c6e4d7c08db08ae8429e (diff)
downloadmeta-fsl-arm-6fb2f855e2b277df01a6f025e255f02f6154c46b.tar.gz
amd-gpu-mx51: Stop auto-renaming GPU driver libraries
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@ossystems.com.br>
Diffstat (limited to 'recipes-graphics')
-rw-r--r--recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc24
1 files 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 @@
1# Copyright (C) 2011, 2012, 2013 Freescale 1# Copyright (C) 2011, 2012, 2013 Freescale
2# Copyright (C) 2011-2014 O.S. Systems Software LTDA. 2# Copyright (C) 2011-2015 O.S. Systems Software LTDA.
3# Released under the MIT license (see COPYING.MIT for the terms) 3# Released under the MIT license (see COPYING.MIT for the terms)
4 4
5LICENSE = "Proprietary" 5LICENSE = "Proprietary"
@@ -17,11 +17,31 @@ SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \
17 17
18inherit fsl-eula-unpack 18inherit fsl-eula-unpack
19 19
20# For the packages that make up the OpenGL interfaces, inject variables so that
21# they don't get Debian-renamed (which would remove the -mx51 suffix).
22#
20# FIXME: All binaries lack GNU_HASH in elf binary but as we don't have 23# FIXME: All binaries lack GNU_HASH in elf binary but as we don't have
21# the source we cannot fix it. Disable the insane check for now. 24# the source we cannot fix it. Disable the insane check for now.
22python () { 25python __anonymous() {
23 for p in d.getVar('PACKAGES', True).split(): 26 for p in d.getVar('PACKAGES', True).split():
24 d.setVar("INSANE_SKIP_%s" % p, "ldflags") 27 d.setVar("INSANE_SKIP_%s" % p, "ldflags")
28
29 for p in (("libegl", "libegl1"), ("libgl", "libgl1"),
30 ("libgles2", "libglesv2-2")):
31 fullp = p[0] + "-mx51"
32 pkgs = " ".join(p)
33 d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1")
34 d.appendVar("RREPLACES_" + fullp, pkgs)
35 d.appendVar("RPROVIDES_" + fullp, pkgs)
36 d.appendVar("RCONFLICTS_" + fullp, pkgs)
37
38 # For -dev, the first element is both the Debian and original name
39 fullp += "-dev"
40 pkgs = p[0] + "-dev"
41 d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1")
42 d.appendVar("RREPLACES_" + fullp, pkgs)
43 d.appendVar("RPROVIDES_" + fullp, pkgs)
44 d.appendVar("RCONFLICTS_" + fullp, pkgs)
25} 45}
26 46
27do_install () { 47do_install () {