diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2019-01-28 13:46:37 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-28 23:14:10 +0000 |
commit | a9f1348af9f26da65e6a01d9575abd6a5f4555b2 (patch) | |
tree | be37bc8bdeb6f0637e59c3fc3efab0ca997ed528 /meta/recipes-graphics/libepoxy | |
parent | 997b526d8b732112edae252eb615b124c5a95760 (diff) | |
download | poky-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>
Diffstat (limited to 'meta/recipes-graphics/libepoxy')
-rw-r--r-- | meta/recipes-graphics/libepoxy/libepoxy_1.5.3.bb | 16 |
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" | |||
14 | inherit meson pkgconfig distro_features_check | 14 | inherit meson pkgconfig distro_features_check |
15 | 15 | ||
16 | REQUIRED_DISTRO_FEATURES = "opengl" | 16 | REQUIRED_DISTRO_FEATURES = "opengl" |
17 | REQUIRED_DISTRO_FEATURES_class-native = "" | ||
18 | REQUIRED_DISTRO_FEATURES_class-nativesdk = "" | ||
17 | 19 | ||
18 | PACKAGECONFIG[egl] = "-Degl=yes, -Degl=no, virtual/egl" | 20 | PACKAGECONFIG[egl] = "-Degl=yes, -Degl=no, virtual/egl" |
19 | PACKAGECONFIG[x11] = "-Dglx=yes, -Dglx=no, virtual/libx11 virtual/libgl" | 21 | PACKAGECONFIG[x11] = "-Dglx=yes, -Dglx=no, virtual/libx11 virtual/libgl" |
20 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} egl" | 22 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} egl" |
21 | 23 | ||
22 | EXTRA_OEMESON += "-Dtests=false" | 24 | EXTRA_OEMESON += "-Dtests=false" |
25 | |||
26 | PACKAGECONFIG_class-native = "egl" | ||
27 | PACKAGECONFIG_class-nativesdk = "egl" | ||
28 | |||
29 | BBCLASSEXTEND = "native nativesdk" | ||
30 | |||
31 | # This will ensure that dlopen will attempt only GL libraries provided by host | ||
32 | do_install_append_class-native() { | ||
33 | chrpath --delete ${D}${libdir}/*.so | ||
34 | } | ||
35 | |||
36 | do_install_append_class-nativesdk() { | ||
37 | chrpath --delete ${D}${libdir}/*.so | ||
38 | } | ||