summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc')
-rw-r--r--recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc20
1 files changed, 20 insertions, 0 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 e95761a1..dcfb049b 100644
--- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
+++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
@@ -25,6 +25,8 @@ DEPENDS:append:mx8-nxp-bsp = " patchelf-native"
25# We depend on mesa to fill in what is missing. 25# We depend on mesa to fill in what is missing.
26DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'mesa', '', d)}" 26DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'mesa', '', d)}"
27 27
28DEPENDS:append:libc-musl = " gcompat"
29
28PROVIDES += " \ 30PROVIDES += " \
29 imx-gpu-viv \ 31 imx-gpu-viv \
30 libgal-imx \ 32 libgal-imx \
@@ -247,6 +249,24 @@ do_install () {
247 chown -R root:root "${D}" 249 chown -R root:root "${D}"
248} 250}
249 251
252do_install:append:libc-musl() {
253 # libs
254 for f in `find ${D}${libdir} -name '*.so*' -type f`
255 do
256 patchelf --add-needed libgcompat.so.0 $f
257 done
258 # binaries
259 for f in `find ${D}/opt ${D}${bindir} -name '*' -type f -executable`
260 do
261 # prune scripts
262 if `patchelf --print-interpreter $f 2>&1 > /dev/null`
263 then
264 patchelf --set-interpreter ${root_prefix}`patchelf --print-interpreter $f` $f
265 patchelf --add-needed libgcompat.so.0 $f
266 fi
267 done
268}
269
250ALLOW_EMPTY:${PN} = "1" 270ALLOW_EMPTY:${PN} = "1"
251 271
252FILES:libclc-imx = "${libdir}/libCLC${SOLIBS} ${includedir}/CL/cl_viv_vx_ext.h" 272FILES:libclc-imx = "${libdir}/libCLC${SOLIBS} ${includedir}/CL/cl_viv_vx_ext.h"