summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
diff options
context:
space:
mode:
authorAdrian Alonso <aalonso00@gmail.com>2013-02-02 10:11:54 -0600
committerOtavio Salvador <otavio@ossystems.com.br>2013-03-26 09:20:45 -0300
commit2f883eb71ce877e66f29d9e82fa02472726f7906 (patch)
treec1e1be60bc2469ab22a7578481a70b9c95143f0a /recipes-graphics
parentae902c9654b87ed9a2a3b5a315dfcae1044eb5f9 (diff)
downloadmeta-fsl-arm-2f883eb71ce877e66f29d9e82fa02472726f7906.tar.gz
gpu-viv-bin-mx6q: group libs based on backend
* Group GPU libs based on backend * Add GPU libs to packages depending on DISTRO_FEATURES * Bump PR Change-Id: I08aaee593cc18cb7cf6f3f0ef9a3aff046d87edd Signed-off-by: Adrian Alonso <aalonso00@gmail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-graphics')
-rw-r--r--recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc71
1 files changed, 46 insertions, 25 deletions
diff --git a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
index 3105a60..7c52810 100644
--- a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
+++ b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
@@ -5,9 +5,9 @@ DESCRIPTION = "GPU driver and apps for imx6"
5SECTION = "libs" 5SECTION = "libs"
6LICENSE = "Proprietary" 6LICENSE = "Proprietary"
7LIC_FILES_CHKSUM = "file://usr/include/gc_vdk.h;endline=11;md5=c831981a5cbb2673318b77fb2f07014c" 7LIC_FILES_CHKSUM = "file://usr/include/gc_vdk.h;endline=11;md5=c831981a5cbb2673318b77fb2f07014c"
8PROVIDES += "virtual/libgal-x11 virtual/egl virtual/libgles1 virtual/libgles2 libvivante-dri-mx6" 8PROVIDES += "virtual/libgal-x11 virtual/egl virtual/libgles1 virtual/libgles2 virtual/dri"
9 9
10INC_PR = "r3" 10INC_PR = "r5"
11 11
12inherit fsl-eula-unpack 12inherit fsl-eula-unpack
13 13
@@ -16,13 +16,18 @@ SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \
16 file://gc_hal_eglplatform-remove-xlib-undefs.patch \ 16 file://gc_hal_eglplatform-remove-xlib-undefs.patch \
17 " 17 "
18 18
19PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \ 19GPU_XLIBS = "libegl-x11-mx6 libegl-x11-mx6-dev libegl-x11-mx6-dbg \
20 libegl-fb-mx6 libegl-fb-mx6-dev libegl-fb-mx6-dbg \
21 libegl-x11-mx6 libegl-x11-mx6-dev libegl-x11-mx6-dbg \
22 libegl-common-mx6 libegl-common-mx6-dev libegl-common-mx6-dbg \
23 libgal-fb-mx6 libgal-fb-mx6-dev libgal-fb-mx6-dbg \
24 libgal-x11-mx6 libgal-x11-mx6-dev libgal-x11-mx6-dbg \ 20 libgal-x11-mx6 libgal-x11-mx6-dev libgal-x11-mx6-dbg \
25 libgal-common-mx6 libgal-common-mx6-dev libgal-common-mx6-dbg \ 21 libvivante-x11-mx6 libvivante-x11-mx6-dev libvivante-x11-mx6-dbg \
22 libvivante-dri-mx6 libvivante-dri-mx6-dev libvivante-dri-mx6-dbg \
23 "
24
25GPU_DFBLIBS = "libegl-dfb-mx6 libegl-dfb-mx6-dev libegl-dfb-mx6-dbg \
26 libgal-dfb-mx6 libgal-dfb-mx6-dev libgal-dfb-mx6-dbg \
27 libvivante-dfb-mx6 libvivante-dfb-mx6-dev libvivante-dfb-mx6-dbg \
28 "
29
30PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \
26 libgles-mx6 libgles-mx6-dev libgles-mx6-dbg \ 31 libgles-mx6 libgles-mx6-dev libgles-mx6-dbg \
27 libgles2-mx6 libgles2-mx6-dev libgles2-mx6-dbg \ 32 libgles2-mx6 libgles2-mx6-dev libgles2-mx6-dbg \
28 libgl-mx6 libgl-mx6-dev libgl-mx6-dbg \ 33 libgl-mx6 libgl-mx6-dev libgl-mx6-dbg \
@@ -30,12 +35,16 @@ PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \
30 libopencl-mx6 libopencl-mx6-dev libopencl-mx6-dbg \ 35 libopencl-mx6 libopencl-mx6-dev libopencl-mx6-dbg \
31 libopenvg-mx6 libopenvg-mx6-dev libopenvg-mx6-dbg \ 36 libopenvg-mx6 libopenvg-mx6-dev libopenvg-mx6-dbg \
32 libvdk-mx6 libvdk-mx6-dev libvdk-mx6-dbg \ 37 libvdk-mx6 libvdk-mx6-dev libvdk-mx6-dbg \
33 libvivante-x11-mx6 libvivante-x11-mx6-dev libvivante-x11-mx6-dbg \ 38 libegl-fb-mx6 libegl-fb-mx6-dev libegl-fb-mx6-dbg \
39 libgal-fb-mx6 libgal-fb-mx6-dev libgal-fb-mx6-dbg \
34 libvivante-fb-mx6 libvivante-fb-mx6-dev libvivante-fb-mx6-dbg \ 40 libvivante-fb-mx6 libvivante-fb-mx6-dev libvivante-fb-mx6-dbg \
35 libvivante-dri-mx6 libvivante-dri-mx6-dev libvivante-dri-mx6-dbg \ 41 ${@base_contains("DISTRO_FEATURES", "x11", "${GPU_XLIBS}", "", d)} \
36 libvivante-common-mx6 libvivante-common-mx6-dev libvivante-common-mx6-dbg \ 42 ${@base_contains("DISTRO_FEATURES", "directfb", "${GPU_DFBLIBS}", "", d)} \
37 " 43 "
38 44
45KEEP_XLIBS = "${@base_contains("DISTRO_FEATURES", "x11", "yes", "no", d)}"
46KEEP_DFBLIBS = "${@base_contains("DISTRO_FEATURES", "directfb", "yes", "no", d)}"
47
39# Inhibit warnings about files being stripped. 48# Inhibit warnings about files being stripped.
40INHIBIT_PACKAGE_DEBUG_SPLIT = "1" 49INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
41 50
@@ -53,15 +62,22 @@ python __anonymous() {
53} 62}
54 63
55do_install () { 64do_install () {
56 install -d ${D}${libdir}/dri 65 install -d ${D}${libdir}
57 install -d ${D}${includedir} 66 install -d ${D}${includedir}
58 67
59 cp -rP ${S}/usr/lib/* ${D}${libdir} 68 cp ${S}/usr/lib/*.so ${D}${libdir}
60 cp -rP ${S}/usr/include/* ${D}${includedir} 69 cp -axr ${S}/usr/include/* ${D}${includedir}
61 cp -rP ${S}/opt ${D} 70 cp -axr ${S}/opt ${D}
62 71
63 find ${D}${libdir} -type f -exec chmod 644 {} \; 72 if [ "${KEEP_XLIBS}" = "no" ]; then
64 find ${D}${includedir} -type f -exec chmod 644 {} \; 73 rm ${D}${libdir}/*-x11.so
74 else
75 install -d ${D}${libdir}/dri
76 cp -ax ${S}/usr/lib/dri/* ${D}${libdir}/dri
77 fi
78 if [ "${KEEP_DFBLIBS}" = "no" ]; then
79 rm ${D}${libdir}/*-dfb.so
80 fi
65 81
66 # FIXME: Drop default library as we need to explicit link to one 82 # FIXME: Drop default library as we need to explicit link to one
67 # of supported backends 83 # of supported backends
@@ -69,9 +85,8 @@ do_install () {
69 ${D}${libdir}/libGAL.so \ 85 ${D}${libdir}/libGAL.so \
70 ${D}${libdir}/libVIVANTE.so 86 ${D}${libdir}/libVIVANTE.so
71 87
72 # FIXME: Drop directfb backport as 1.4 version is not supported in Yocto 88 find ${D}${libdir} -type f -exec chmod 644 {} \;
73 rm -r ${D}${libdir}/directfb-1.4-0 \ 89 find ${D}${includedir} -type f -exec chmod 644 {} \;
74 ${D}${libdir}/*-dfb.so
75} 90}
76 91
77S = "${WORKDIR}/${PN}-${PV}" 92S = "${WORKDIR}/${PN}-${PV}"
@@ -85,8 +100,6 @@ FILES_libclc-mx6 = "${libdir}/libCLC${SOLIBS}"
85FILES_libclc-mx6-dev = "${includedir}/CL ${libdir}/libCLC${SOLIBSDEV}" 100FILES_libclc-mx6-dev = "${includedir}/CL ${libdir}/libCLC${SOLIBSDEV}"
86FILES_libclc-mx6-dbg = "${libdir}/.debug/libCLC${SOLIBS}" 101FILES_libclc-mx6-dbg = "${libdir}/.debug/libCLC${SOLIBS}"
87 102
88FILES_libegl-common-mx6-dev = "${includedir}/EGL ${libdir}/libEGL${SOLIBSDEV}"
89
90FILES_libegl-fb-mx6 = "${libdir}/libEGL-fb${SOLIBS}" 103FILES_libegl-fb-mx6 = "${libdir}/libEGL-fb${SOLIBS}"
91FILES_libegl-fb-mx6-dev = "${libdir}/libEGL-fb${SOLIBSDEV}" 104FILES_libegl-fb-mx6-dev = "${libdir}/libEGL-fb${SOLIBSDEV}"
92FILES_libegl-fb-mx6-dbg = "${libdir}/.debug/libEGL-fb${SOLIBS}" 105FILES_libegl-fb-mx6-dbg = "${libdir}/.debug/libEGL-fb${SOLIBS}"
@@ -95,7 +108,9 @@ FILES_libegl-x11-mx6 = "${libdir}/libEGL-x11${SOLIBS}"
95FILES_libegl-x11-mx6-dev = "${libdir}/libEGL-x11${SOLIBSDEV}" 108FILES_libegl-x11-mx6-dev = "${libdir}/libEGL-x11${SOLIBSDEV}"
96FILES_libegl-x11-mx6-dbg = "${libdir}/.debug/libEGL-x11${SOLIBS}" 109FILES_libegl-x11-mx6-dbg = "${libdir}/.debug/libEGL-x11${SOLIBS}"
97 110
98FILES_libgal-common-mx6-dev = "${includedir}/HAL ${libdir}/libGAL${SOLIBSDEV}" 111FILES_libegl-dfb-mx6 = "${libdir}/libEGL-dfb${SOLIBS}"
112FILES_libegl-dfb-mx6-dev = "${libdir}/libEGL-dfb${SOLIBSDEV}"
113FILES_libegl-dfb-mx6-dbg = "${libdir}/.debug/libEGL-dfb${SOLIBS}"
99 114
100FILES_libgal-fb-mx6 = "${libdir}/libGAL-fb${SOLIBS}" 115FILES_libgal-fb-mx6 = "${libdir}/libGAL-fb${SOLIBS}"
101FILES_libgal-fb-mx6-dev = "${libdir}/libGAL-fb${SOLIBSDEV}" 116FILES_libgal-fb-mx6-dev = "${libdir}/libGAL-fb${SOLIBSDEV}"
@@ -105,6 +120,10 @@ FILES_libgal-x11-mx6 = "${libdir}/libGAL-x11${SOLIBS}"
105FILES_libgal-x11-mx6-dev = "${libdir}/libGAL-x11${SOLIBSDEV}" 120FILES_libgal-x11-mx6-dev = "${libdir}/libGAL-x11${SOLIBSDEV}"
106FILES_libgal-x11-mx6-dbg = "${libdir}/.debug/libGAL-x11${SOLIBS}" 121FILES_libgal-x11-mx6-dbg = "${libdir}/.debug/libGAL-x11${SOLIBS}"
107 122
123FILES_libgal-dfb-mx6 = "${libdir}/libGAL-dfb${SOLIBS}"
124FILES_libgal-dfb-mx6-dev = "${libdir}/libGAL-dfb${SOLIBSDEV}"
125FILES_libgal-dfb-mx6-dbg = "${libdir}/.debug/libGAL-dfb${SOLIBS}"
126
108FILES_libgles-mx6 = "${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBS}" 127FILES_libgles-mx6 = "${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBS}"
109FILES_libgles-mx6-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBSDEV}" 128FILES_libgles-mx6-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBSDEV}"
110FILES_libgles-mx6-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS} ${libdir}/.debug/libGLES_*${SOLIBS}" 129FILES_libgles-mx6-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS} ${libdir}/.debug/libGLES_*${SOLIBS}"
@@ -133,8 +152,6 @@ FILES_libvdk-mx6 = "${libdir}/libVDK${SOLIBS}"
133FILES_libvdk-mx6-dev = "${includedir}/*vdk.h ${libdir}/libVDK${SOLIBSDEV}" 152FILES_libvdk-mx6-dev = "${includedir}/*vdk.h ${libdir}/libVDK${SOLIBSDEV}"
134FILES_libvdk-mx6-dbg = "${libdir}/.debug/libVDK${SOLIBS}" 153FILES_libvdk-mx6-dbg = "${libdir}/.debug/libVDK${SOLIBS}"
135 154
136FILES_libvivante-common-mx6-dev = "${includedir}/HAL ${libdir}/libVIVANTE${SOLIBSDEV}"
137
138FILES_libvivante-fb-mx6 = "${libdir}/libVIVANTE-fb${SOLIBS}" 155FILES_libvivante-fb-mx6 = "${libdir}/libVIVANTE-fb${SOLIBS}"
139FILES_libvivante-fb-mx6-dev = "${libdir}/libVIVANTE-fb${SOLIBSDEV}" 156FILES_libvivante-fb-mx6-dev = "${libdir}/libVIVANTE-fb${SOLIBSDEV}"
140FILES_libvivante-fb-mx6-dbg = "${libdir}/.debug/libVIVANTE-fb${SOLIBS}" 157FILES_libvivante-fb-mx6-dbg = "${libdir}/.debug/libVIVANTE-fb${SOLIBS}"
@@ -143,6 +160,10 @@ FILES_libvivante-x11-mx6 = "${libdir}/libVIVANTE-x11${SOLIBS}"
143FILES_libvivante-x11-mx6-dev = "${libdir}/libVIVANTE-x11${SOLIBSDEV}" 160FILES_libvivante-x11-mx6-dev = "${libdir}/libVIVANTE-x11${SOLIBSDEV}"
144FILES_libvivante-x11-mx6-dbg = "${libdir}/.debug/libVIVANTE-x11${SOLIBS}" 161FILES_libvivante-x11-mx6-dbg = "${libdir}/.debug/libVIVANTE-x11${SOLIBS}"
145 162
163FILES_libvivante-dfb-mx6 = "${libdir}/libVIVANTE-dfb${SOLIBS}"
164FILES_libvivante-dfb-mx6-dev = "${libdir}/libVIVANTE-dfb${SOLIBSDEV}"
165FILES_libvivante-dfb-mx6-dbg = "${libdir}/.debug/libVIVANTE-dfb${SOLIBS}"
166
146FILES_libvivante-dri-mx6 = "${libdir}/dri/vivante_dri${SOLIBS}" 167FILES_libvivante-dri-mx6 = "${libdir}/dri/vivante_dri${SOLIBS}"
147FILES_libvivante-dri-mx6-dev = "" 168FILES_libvivante-dri-mx6-dev = ""
148FILES_libvivante-dri-mx6-dbg = "${libdir}/dri/.debug/vivante_dri${SOLIBS}" 169FILES_libvivante-dri-mx6-dbg = "${libdir}/dri/.debug/vivante_dri${SOLIBS}"