diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2022-09-20 20:51:50 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-20 20:51:50 -0300 |
commit | abeab58d14b614c77f7e97ca927c39f20f0c6e81 (patch) | |
tree | 0c99f1de772208485c4111744e7c335d5eb2fed1 /recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc | |
parent | 8b73e238a56301ea2e4625d944ae81388f82cf5a (diff) | |
parent | d91b6dac7dd7c0879b3a4a5f8f3abd82c33780b7 (diff) | |
download | meta-freescale-abeab58d14b614c77f7e97ca927c39f20f0c6e81.tar.gz |
Merge pull request #1214 from YoeDistro/yoe/mut
musl fixes
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.inc | 20 |
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. |
26 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'mesa', '', d)}" | 26 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'mesa', '', d)}" |
27 | 27 | ||
28 | DEPENDS:append:libc-musl = " gcompat" | ||
29 | |||
28 | PROVIDES += " \ | 30 | PROVIDES += " \ |
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 | ||
252 | do_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 | |||
250 | ALLOW_EMPTY:${PN} = "1" | 270 | ALLOW_EMPTY:${PN} = "1" |
251 | 271 | ||
252 | FILES:libclc-imx = "${libdir}/libCLC${SOLIBS} ${includedir}/CL/cl_viv_vx_ext.h" | 272 | FILES:libclc-imx = "${libdir}/libCLC${SOLIBS} ${includedir}/CL/cl_viv_vx_ext.h" |