diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2020-06-09 18:47:13 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2020-06-09 18:53:14 +0200 |
commit | bc390b207e829ea9235b83915415429446b479f3 (patch) | |
tree | 8dc890395a02058760686afa6b421cf2f2dd9471 | |
parent | b1ff979e1381fc0953b0d5b75ab93c7bc5d074bf (diff) |
imx-gpu-viv: fixup .inc file definitions for 4.14.98-2.3.0 bsp
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r-- | recipes-graphics/imx-gpu-viv/imx-gpu-viv_%.bbappend | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_%.bbappend b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_%.bbappend index 14371e2..3b32c70 100644 --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_%.bbappend +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_%.bbappend @@ -12,3 +12,18 @@ SRC_URI[sha256sum] = "${SHA256SUM}" # prevent pulling *-dev by packaging needed *.so in regular packages, not # in imx-gpu-viv-dev. INSANE_SKIP_libclc-imx += "dev-so" + +do_install_prepend() { + if [ "${USE_WL}" = "yes" ]; then + backend=wl + elif [ "${USE_X11}" = "yes" ]; then + backend=x11 + fi + + # in the 6.2.4.p4.8 this file wasn't backend specific + [ ! -e ${S}/gpu-core/usr/lib/libGL-${backend}.so ] && + cp ${S}/gpu-core/usr/lib/libGL.so ${S}/gpu-core/usr/lib/libGL-${backend}.so +} + +# in the 6.2.4.p4.8 gbm_viv.so is installed, so it must also be packaged +FILES_libgbm-imx_mx8 = "${libdir}/libgbm*${SOLIBS} ${libdir}/gbm_viv${SOLIBS}" |