diff options
Diffstat (limited to 'recipes-graphics')
-rw-r--r-- | recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc | 71 |
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" | |||
5 | SECTION = "libs" | 5 | SECTION = "libs" |
6 | LICENSE = "Proprietary" | 6 | LICENSE = "Proprietary" |
7 | LIC_FILES_CHKSUM = "file://usr/include/gc_vdk.h;endline=11;md5=c831981a5cbb2673318b77fb2f07014c" | 7 | LIC_FILES_CHKSUM = "file://usr/include/gc_vdk.h;endline=11;md5=c831981a5cbb2673318b77fb2f07014c" |
8 | PROVIDES += "virtual/libgal-x11 virtual/egl virtual/libgles1 virtual/libgles2 libvivante-dri-mx6" | 8 | PROVIDES += "virtual/libgal-x11 virtual/egl virtual/libgles1 virtual/libgles2 virtual/dri" |
9 | 9 | ||
10 | INC_PR = "r3" | 10 | INC_PR = "r5" |
11 | 11 | ||
12 | inherit fsl-eula-unpack | 12 | inherit 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 | ||
19 | PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \ | 19 | GPU_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 | |||
25 | GPU_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 | |||
30 | PACKAGES =+ "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 | ||
45 | KEEP_XLIBS = "${@base_contains("DISTRO_FEATURES", "x11", "yes", "no", d)}" | ||
46 | KEEP_DFBLIBS = "${@base_contains("DISTRO_FEATURES", "directfb", "yes", "no", d)}" | ||
47 | |||
39 | # Inhibit warnings about files being stripped. | 48 | # Inhibit warnings about files being stripped. |
40 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | 49 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |
41 | 50 | ||
@@ -53,15 +62,22 @@ python __anonymous() { | |||
53 | } | 62 | } |
54 | 63 | ||
55 | do_install () { | 64 | do_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 | ||
77 | S = "${WORKDIR}/${PN}-${PV}" | 92 | S = "${WORKDIR}/${PN}-${PV}" |
@@ -85,8 +100,6 @@ FILES_libclc-mx6 = "${libdir}/libCLC${SOLIBS}" | |||
85 | FILES_libclc-mx6-dev = "${includedir}/CL ${libdir}/libCLC${SOLIBSDEV}" | 100 | FILES_libclc-mx6-dev = "${includedir}/CL ${libdir}/libCLC${SOLIBSDEV}" |
86 | FILES_libclc-mx6-dbg = "${libdir}/.debug/libCLC${SOLIBS}" | 101 | FILES_libclc-mx6-dbg = "${libdir}/.debug/libCLC${SOLIBS}" |
87 | 102 | ||
88 | FILES_libegl-common-mx6-dev = "${includedir}/EGL ${libdir}/libEGL${SOLIBSDEV}" | ||
89 | |||
90 | FILES_libegl-fb-mx6 = "${libdir}/libEGL-fb${SOLIBS}" | 103 | FILES_libegl-fb-mx6 = "${libdir}/libEGL-fb${SOLIBS}" |
91 | FILES_libegl-fb-mx6-dev = "${libdir}/libEGL-fb${SOLIBSDEV}" | 104 | FILES_libegl-fb-mx6-dev = "${libdir}/libEGL-fb${SOLIBSDEV}" |
92 | FILES_libegl-fb-mx6-dbg = "${libdir}/.debug/libEGL-fb${SOLIBS}" | 105 | FILES_libegl-fb-mx6-dbg = "${libdir}/.debug/libEGL-fb${SOLIBS}" |
@@ -95,7 +108,9 @@ FILES_libegl-x11-mx6 = "${libdir}/libEGL-x11${SOLIBS}" | |||
95 | FILES_libegl-x11-mx6-dev = "${libdir}/libEGL-x11${SOLIBSDEV}" | 108 | FILES_libegl-x11-mx6-dev = "${libdir}/libEGL-x11${SOLIBSDEV}" |
96 | FILES_libegl-x11-mx6-dbg = "${libdir}/.debug/libEGL-x11${SOLIBS}" | 109 | FILES_libegl-x11-mx6-dbg = "${libdir}/.debug/libEGL-x11${SOLIBS}" |
97 | 110 | ||
98 | FILES_libgal-common-mx6-dev = "${includedir}/HAL ${libdir}/libGAL${SOLIBSDEV}" | 111 | FILES_libegl-dfb-mx6 = "${libdir}/libEGL-dfb${SOLIBS}" |
112 | FILES_libegl-dfb-mx6-dev = "${libdir}/libEGL-dfb${SOLIBSDEV}" | ||
113 | FILES_libegl-dfb-mx6-dbg = "${libdir}/.debug/libEGL-dfb${SOLIBS}" | ||
99 | 114 | ||
100 | FILES_libgal-fb-mx6 = "${libdir}/libGAL-fb${SOLIBS}" | 115 | FILES_libgal-fb-mx6 = "${libdir}/libGAL-fb${SOLIBS}" |
101 | FILES_libgal-fb-mx6-dev = "${libdir}/libGAL-fb${SOLIBSDEV}" | 116 | FILES_libgal-fb-mx6-dev = "${libdir}/libGAL-fb${SOLIBSDEV}" |
@@ -105,6 +120,10 @@ FILES_libgal-x11-mx6 = "${libdir}/libGAL-x11${SOLIBS}" | |||
105 | FILES_libgal-x11-mx6-dev = "${libdir}/libGAL-x11${SOLIBSDEV}" | 120 | FILES_libgal-x11-mx6-dev = "${libdir}/libGAL-x11${SOLIBSDEV}" |
106 | FILES_libgal-x11-mx6-dbg = "${libdir}/.debug/libGAL-x11${SOLIBS}" | 121 | FILES_libgal-x11-mx6-dbg = "${libdir}/.debug/libGAL-x11${SOLIBS}" |
107 | 122 | ||
123 | FILES_libgal-dfb-mx6 = "${libdir}/libGAL-dfb${SOLIBS}" | ||
124 | FILES_libgal-dfb-mx6-dev = "${libdir}/libGAL-dfb${SOLIBSDEV}" | ||
125 | FILES_libgal-dfb-mx6-dbg = "${libdir}/.debug/libGAL-dfb${SOLIBS}" | ||
126 | |||
108 | FILES_libgles-mx6 = "${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBS}" | 127 | FILES_libgles-mx6 = "${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBS}" |
109 | FILES_libgles-mx6-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBSDEV}" | 128 | FILES_libgles-mx6-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBSDEV}" |
110 | FILES_libgles-mx6-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS} ${libdir}/.debug/libGLES_*${SOLIBS}" | 129 | FILES_libgles-mx6-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS} ${libdir}/.debug/libGLES_*${SOLIBS}" |
@@ -133,8 +152,6 @@ FILES_libvdk-mx6 = "${libdir}/libVDK${SOLIBS}" | |||
133 | FILES_libvdk-mx6-dev = "${includedir}/*vdk.h ${libdir}/libVDK${SOLIBSDEV}" | 152 | FILES_libvdk-mx6-dev = "${includedir}/*vdk.h ${libdir}/libVDK${SOLIBSDEV}" |
134 | FILES_libvdk-mx6-dbg = "${libdir}/.debug/libVDK${SOLIBS}" | 153 | FILES_libvdk-mx6-dbg = "${libdir}/.debug/libVDK${SOLIBS}" |
135 | 154 | ||
136 | FILES_libvivante-common-mx6-dev = "${includedir}/HAL ${libdir}/libVIVANTE${SOLIBSDEV}" | ||
137 | |||
138 | FILES_libvivante-fb-mx6 = "${libdir}/libVIVANTE-fb${SOLIBS}" | 155 | FILES_libvivante-fb-mx6 = "${libdir}/libVIVANTE-fb${SOLIBS}" |
139 | FILES_libvivante-fb-mx6-dev = "${libdir}/libVIVANTE-fb${SOLIBSDEV}" | 156 | FILES_libvivante-fb-mx6-dev = "${libdir}/libVIVANTE-fb${SOLIBSDEV}" |
140 | FILES_libvivante-fb-mx6-dbg = "${libdir}/.debug/libVIVANTE-fb${SOLIBS}" | 157 | FILES_libvivante-fb-mx6-dbg = "${libdir}/.debug/libVIVANTE-fb${SOLIBS}" |
@@ -143,6 +160,10 @@ FILES_libvivante-x11-mx6 = "${libdir}/libVIVANTE-x11${SOLIBS}" | |||
143 | FILES_libvivante-x11-mx6-dev = "${libdir}/libVIVANTE-x11${SOLIBSDEV}" | 160 | FILES_libvivante-x11-mx6-dev = "${libdir}/libVIVANTE-x11${SOLIBSDEV}" |
144 | FILES_libvivante-x11-mx6-dbg = "${libdir}/.debug/libVIVANTE-x11${SOLIBS}" | 161 | FILES_libvivante-x11-mx6-dbg = "${libdir}/.debug/libVIVANTE-x11${SOLIBS}" |
145 | 162 | ||
163 | FILES_libvivante-dfb-mx6 = "${libdir}/libVIVANTE-dfb${SOLIBS}" | ||
164 | FILES_libvivante-dfb-mx6-dev = "${libdir}/libVIVANTE-dfb${SOLIBSDEV}" | ||
165 | FILES_libvivante-dfb-mx6-dbg = "${libdir}/.debug/libVIVANTE-dfb${SOLIBS}" | ||
166 | |||
146 | FILES_libvivante-dri-mx6 = "${libdir}/dri/vivante_dri${SOLIBS}" | 167 | FILES_libvivante-dri-mx6 = "${libdir}/dri/vivante_dri${SOLIBS}" |
147 | FILES_libvivante-dri-mx6-dev = "" | 168 | FILES_libvivante-dri-mx6-dev = "" |
148 | FILES_libvivante-dri-mx6-dbg = "${libdir}/dri/.debug/vivante_dri${SOLIBS}" | 169 | FILES_libvivante-dri-mx6-dbg = "${libdir}/dri/.debug/vivante_dri${SOLIBS}" |