diff options
author | Moorthy Baskar <moorthy.bs@ltts.com> | 2020-05-24 09:07:34 +0200 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2020-06-09 17:55:06 +0100 |
commit | 3b5f62835aea4d6fa36faea2fa998793080af9ea (patch) | |
tree | a4ba63aaa945a061582f2922b1de6c9f102fb03b | |
parent | 2a192261a914892019f4f428d7462bb3c585ebac (diff) | |
download | meta-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.bb | 14 |
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 | ||
8 | PR = "r5" | 8 | PR = "r5" |
9 | 9 | ||
10 | PROVIDES = "virtual/libgles2 \ | 10 | PROVIDES = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'virtual/libgles2 virtual/egl', d)}" |
11 | virtual/egl" | ||
12 | 11 | ||
13 | RPROVIDES_${PN} += "libgles2 libgl" | 12 | RPROVIDES_${PN} += "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'libgles2 egl', d)}" |
14 | 13 | ||
15 | COMPATIBLE_MACHINE = "raspberrypi" | 14 | COMPATIBLE_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" | |||
77 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 84 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
78 | 85 | ||
79 | RDEPENDS_${PN} += "bash" | 86 | RDEPENDS_${PN} += "bash" |
87 | RDEPENDS_${PN} += "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "libegl-mesa", "", d)}" | ||