summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoorthy Baskar <moorthy.bs@ltts.com>2020-05-24 09:07:34 +0200
committerAndrei Gherzan <andrei@gherzan.ro>2020-06-09 17:55:06 +0100
commit3b5f62835aea4d6fa36faea2fa998793080af9ea (patch)
treea4ba63aaa945a061582f2922b1de6c9f102fb03b
parent2a192261a914892019f4f428d7462bb3c585ebac (diff)
downloadmeta-raspberrypi-3b5f62835aea4d6fa36faea2fa998793080af9ea.tar.gz
userland: add changes for vc4graphics support
Signed-off-by: Moorthy Baskar <moorthy.bs@ltts.com>
-rw-r--r--recipes-graphics/userland/userland_git.bb14
1 files changed, 11 insertions, 3 deletions
diff --git a/recipes-graphics/userland/userland_git.bb b/recipes-graphics/userland/userland_git.bb
index a37249c..3dafa9d 100644
--- a/recipes-graphics/userland/userland_git.bb
+++ b/recipes-graphics/userland/userland_git.bb
@@ -7,10 +7,9 @@ LIC_FILES_CHKSUM = "file://LICENCE;md5=0448d6488ef8cc380632b1569ee6d196"
7 7
8PR = "r5" 8PR = "r5"
9 9
10PROVIDES = "virtual/libgles2 \ 10PROVIDES = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'virtual/libgles2 virtual/egl', d)}"
11 virtual/egl"
12 11
13RPROVIDES_${PN} += "libgles2 libgl" 12RPROVIDES_${PN} += "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'libgles2 egl', d)}"
14 13
15COMPATIBLE_MACHINE = "raspberrypi" 14COMPATIBLE_MACHINE = "raspberrypi"
16 15
@@ -58,6 +57,14 @@ do_install_append () {
58 sed -i 's/include "vcos_futex_mutex.h"/include "pthreads\/vcos_futex_mutex.h"/g' ${f} 57 sed -i 's/include "vcos_futex_mutex.h"/include "pthreads\/vcos_futex_mutex.h"/g' ${f}
59 sed -i 's/include "vcos_platform_types.h"/include "pthreads\/vcos_platform_types.h"/g' ${f} 58 sed -i 's/include "vcos_platform_types.h"/include "pthreads\/vcos_platform_types.h"/g' ${f}
60 done 59 done
60 if [ "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "1", "0", d)}" = "1" ]; then
61 rm -rf ${D}${libdir}/libEGL*
62 rm -rf ${D}${libdir}/libGLES*
63 rm -rf ${D}${libdir}/libwayland-*
64 rm -rf ${D}${libdir}/pkgconfig/egl.pc ${D}${libdir}/pkgconfig/glesv2.pc \
65 ${D}${libdir}/pkgconfig/wayland-egl.pc
66 rm -rf ${D}${includedir}/EGL ${D}${includedir}/GLES* ${D}${includedir}/KHR
67 fi
61} 68}
62 69
63# Shared libs from userland package build aren't versioned, so we need 70# Shared libs from userland package build aren't versioned, so we need
@@ -77,3 +84,4 @@ FILES_${PN}-dbg += "${libdir}/plugins/.debug"
77PACKAGE_ARCH = "${MACHINE_ARCH}" 84PACKAGE_ARCH = "${MACHINE_ARCH}"
78 85
79RDEPENDS_${PN} += "bash" 86RDEPENDS_${PN} += "bash"
87RDEPENDS_${PN} += "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "libegl-mesa", "", d)}"