summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-graphics')
-rw-r--r--recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc29
1 files changed, 16 insertions, 13 deletions
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
index 055ce263..0d90397e 100644
--- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
+++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
@@ -205,8 +205,10 @@ do_install () {
205 # Framebuffer backend for i.MX 8 and beyond 205 # Framebuffer backend for i.MX 8 and beyond
206 install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/egl.pc ${D}${libdir}/pkgconfig/egl.pc 206 install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/egl.pc ${D}${libdir}/pkgconfig/egl.pc
207 cp -r ${S}/gpu-core/usr/lib/wayland/* ${D}${libdir} 207 cp -r ${S}/gpu-core/usr/lib/wayland/* ${D}${libdir}
208 for f in ${FILES:libvdk-imx} ${FILES:libvdk-imx-dev}; do
209 rm -rf ${D}/$f
210 done
208 rm -rf \ 211 rm -rf \
209 ${D}${libdir}/libVDK.so* \
210 ${D}/opt/viv_samples/es20 \ 212 ${D}/opt/viv_samples/es20 \
211 ${D}/opt/viv_samples/tiger \ 213 ${D}/opt/viv_samples/tiger \
212 ${D}/opt/viv_samples/vdk 214 ${D}/opt/viv_samples/vdk
@@ -221,18 +223,19 @@ do_install () {
221 install -m 0644 ${S}/gpu-core/etc/Vivante.icd ${D}${sysconfdir}/OpenCL/vendors/Vivante.icd 223 install -m 0644 ${S}/gpu-core/etc/Vivante.icd ${D}${sysconfdir}/OpenCL/vendors/Vivante.icd
222 224
223 if [ "${IS_MX8}" = "1" ]; then 225 if [ "${IS_MX8}" = "1" ]; then
224 if [ -n "${PACKAGES_VULKAN}" ]; then 226 # Rename the vulkan implementation library which is wrapped by the vulkan-loader
225 # Rename the vulkan implementation library which is wrapped by the vulkan-loader 227 # library of the same name
226 # library of the same name 228 MAJOR=${LIBVULKAN_VERSION_MAJOR}
227 MAJOR=${LIBVULKAN_VERSION_MAJOR} 229 FULL=${LIBVULKAN_VERSION}
228 FULL=${LIBVULKAN_VERSION} 230 mv ${D}${libdir}/libvulkan.so.$FULL ${D}${libdir}/libvulkan_VSI.so.$FULL
229 mv ${D}${libdir}/libvulkan.so.$FULL ${D}${libdir}/libvulkan_VSI.so.$FULL 231 patchelf --set-soname libvulkan_VSI.so.$MAJOR ${D}${libdir}/libvulkan_VSI.so.$FULL
230 patchelf --set-soname libvulkan_VSI.so.$MAJOR ${D}${libdir}/libvulkan_VSI.so.$FULL 232 rm ${D}${libdir}/libvulkan.so.$MAJOR ${D}${libdir}/libvulkan.so
231 rm ${D}${libdir}/libvulkan.so.$MAJOR ${D}${libdir}/libvulkan.so 233 ln -s libvulkan_VSI.so.$FULL ${D}${libdir}/libvulkan_VSI.so.$MAJOR
232 ln -s libvulkan_VSI.so.$FULL ${D}${libdir}/libvulkan_VSI.so.$MAJOR 234 ln -s libvulkan_VSI.so.$FULL ${D}${libdir}/libvulkan_VSI.so
233 ln -s libvulkan_VSI.so.$FULL ${D}${libdir}/libvulkan_VSI.so 235 if [ -z "${PACKAGES_VULKAN}" ]; then
234 else 236 for f in ${FILES:libvulkan-imx} ${FILES:libvulkan-imx-dev}; do
235 rm -f ${D}${libdir}/libvulkan.so* ${D}${libdir}/libSPIRV_viv${SOLIBS}* 237 rm -rf ${D}$f
238 done
236 fi 239 fi
237 fi 240 fi
238 241