diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2020-10-07 11:17:29 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2020-10-07 15:05:12 -0300 |
commit | 98eb5673ba2ae2b6cb91dd760511e3bcaae11c1d (patch) | |
tree | 3c027f414620fdaa737bd40c992714c2a0369a6b /recipes-graphics | |
parent | 342fe6e4a9bbcc84d4909c09501f86e34b4a464f (diff) | |
download | meta-freescale-98eb5673ba2ae2b6cb91dd760511e3bcaae11c1d.tar.gz |
imx-gpu-viv: Fix regression when running some userspace applications
The imx-gpu-viv does a very bad work regarding the soname handling of
its libraries so we need to do a lot of hacks providing '.so' files for
use by the application.
This comes after revert of aa552127 "imx-gpu-viv: Fix packaging for various libraries"
An example of the error can be seen below:
,----[ strace log ]
| openat(AT_FDCWD, "/usr/lib/libEGL.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
| openat(AT_FDCWD, "/lib/libGLESv1_CM.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
| openat(AT_FDCWD, "/usr/lib/libGLESv1_CM.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
| openat(AT_FDCWD, "/lib/libGLESv2.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
| openat(AT_FDCWD, "/usr/lib/libGLESv2.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
`----
This commit are the extra fixes which was need due to new files on the
new imx-gpu-viv release to fix the following build error:
,----[ Packaging error ]
| ERROR: imx-gpu-viv-1_6.4.0.p2.4-aarch32-r0 do_package: QA Issue:
| imx-gpu-viv: Files/directories were installed but not shipped in any
| package:
| /usr/lib/libOpenCL.so.1
| /usr/lib/libOpenCL.so.1.2
`----
as well as:
,----[ Packaging error ]
| ERROR: imx-gpu-viv-1_6.4.0.p2.4-aarch64-r0 do_package: QA Issue:
| imx-gpu-viv: Files/directories were installed but not shipped in any
| package:
| /usr/lib/libOpenVX.so.1.2
| /usr/lib/libOpenVX.so.1
`----
and finally:
,----[ Packaging error ]
| ERROR: imx-gpu-viv-1_6.4.0.p2.4-aarch64-r0 do_package_qa: QA Issue: non
| -dev/-dbg/nativesdk- package contains symlink .so: libopencl-imx path
| '/work/aarch64-mx8m-fslc-linux/imx-gpu-viv/1_6.4.0.p2.4-aarch64-r0/packages-split/libopencl-imx/usr/lib/libOpenCL.so'
| [dev-so]
`----
Reported-by: Gary Bisson <gary.bisson@boundarydevices.com>
Change-Id: I785a69c0592a3c5fda9fd14a7dc8cf35b2b94d08
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Tested-by: Gary Bisson <gary.bisson@boundarydevices.com>
Diffstat (limited to 'recipes-graphics')
-rw-r--r-- | recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc | 5 |
1 files changed, 3 insertions, 2 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 414f98b2..efafe78d 100644 --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc | |||
@@ -325,7 +325,8 @@ FILES_libvulkan-imx = "${libdir}/libvulkan_VSI${REALSOLIBS} ${libdir}/libSPIRV_v | |||
325 | FILES_libvulkan-imx-dev = "${includedir}/vulkan ${libdir}/libvulkan_VSI${SOLIBSDEV}" | 325 | FILES_libvulkan-imx-dev = "${includedir}/vulkan ${libdir}/libvulkan_VSI${SOLIBSDEV}" |
326 | 326 | ||
327 | FILES_libopenvx-imx = " \ | 327 | FILES_libopenvx-imx = " \ |
328 | ${libdir}/libOpenVX*${SOLIBS} \ | 328 | ${libdir}/libOpenVX*${REALSOLIBS} \ |
329 | ${libdir}/libOpenVXU${SOLIBS} \ | ||
329 | ${libdir}/libOvx*${SOLIBS} \ | 330 | ${libdir}/libOvx*${SOLIBS} \ |
330 | ${libdir}/libovx*${SOLIBS} \ | 331 | ${libdir}/libovx*${SOLIBS} \ |
331 | " | 332 | " |
@@ -356,7 +357,7 @@ RDEPENDS_libgles2-imx-dev += "libgles3-imx-dev" | |||
356 | FILES_libglslc-imx = "${libdir}/libGLSLC${SOLIBS}" | 357 | FILES_libglslc-imx = "${libdir}/libGLSLC${SOLIBS}" |
357 | FILES_libglslc-imx-dev = "${includedir}/CL ${libdir}/libGLSLC${SOLIBSDEV}" | 358 | FILES_libglslc-imx-dev = "${includedir}/CL ${libdir}/libGLSLC${SOLIBSDEV}" |
358 | 359 | ||
359 | FILES_libopencl-imx = "${libdir}/libOpenCL${SOLIBS} \ | 360 | FILES_libopencl-imx = "${libdir}/libOpenCL${REALSOLIBS} \ |
360 | ${libdir}/libVivanteOpenCL${SOLIBS} \ | 361 | ${libdir}/libVivanteOpenCL${SOLIBS} \ |
361 | ${libdir}/libLLVM_viv${SOLIBS} \ | 362 | ${libdir}/libLLVM_viv${SOLIBS} \ |
362 | ${sysconfdir}/OpenCL/vendors/Vivante.icd" | 363 | ${sysconfdir}/OpenCL/vendors/Vivante.icd" |