summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2019-01-28 13:46:37 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-28 23:14:10 +0000
commita9f1348af9f26da65e6a01d9575abd6a5f4555b2 (patch)
treebe37bc8bdeb6f0637e59c3fc3efab0ca997ed528
parent997b526d8b732112edae252eb615b124c5a95760 (diff)
downloadpoky-a9f1348af9f26da65e6a01d9575abd6a5f4555b2.tar.gz
libepoxy: enable native/nativesdk variants
libepoxy is a requirement of virglrenderer. Note that we strip RPATH from the library, as this allows fall-through to the host GL implementation, instead of attempting (and failing) to use mesa-native. (From OE-Core rev: 0070b508259bb187a369a522f2884921b0c4e2fa) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-graphics/libepoxy/libepoxy_1.5.3.bb16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/recipes-graphics/libepoxy/libepoxy_1.5.3.bb b/meta/recipes-graphics/libepoxy/libepoxy_1.5.3.bb
index 92f644c039..dd706a9606 100644
--- a/meta/recipes-graphics/libepoxy/libepoxy_1.5.3.bb
+++ b/meta/recipes-graphics/libepoxy/libepoxy_1.5.3.bb
@@ -14,9 +14,25 @@ UPSTREAM_CHECK_URI = "https://github.com/anholt/libepoxy/releases"
14inherit meson pkgconfig distro_features_check 14inherit meson pkgconfig distro_features_check
15 15
16REQUIRED_DISTRO_FEATURES = "opengl" 16REQUIRED_DISTRO_FEATURES = "opengl"
17REQUIRED_DISTRO_FEATURES_class-native = ""
18REQUIRED_DISTRO_FEATURES_class-nativesdk = ""
17 19
18PACKAGECONFIG[egl] = "-Degl=yes, -Degl=no, virtual/egl" 20PACKAGECONFIG[egl] = "-Degl=yes, -Degl=no, virtual/egl"
19PACKAGECONFIG[x11] = "-Dglx=yes, -Dglx=no, virtual/libx11 virtual/libgl" 21PACKAGECONFIG[x11] = "-Dglx=yes, -Dglx=no, virtual/libx11 virtual/libgl"
20PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} egl" 22PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} egl"
21 23
22EXTRA_OEMESON += "-Dtests=false" 24EXTRA_OEMESON += "-Dtests=false"
25
26PACKAGECONFIG_class-native = "egl"
27PACKAGECONFIG_class-nativesdk = "egl"
28
29BBCLASSEXTEND = "native nativesdk"
30
31# This will ensure that dlopen will attempt only GL libraries provided by host
32do_install_append_class-native() {
33 chrpath --delete ${D}${libdir}/*.so
34}
35
36do_install_append_class-nativesdk() {
37 chrpath --delete ${D}${libdir}/*.so
38}