diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-03-09 09:07:52 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-10 13:07:37 +0000 |
commit | c3ac9501d71f3abd754843a6dcfba90f3e0ef828 (patch) | |
tree | ca723b90feccdfb148033d06e63fbc56adf3a0e6 | |
parent | 6ef0c91921bf77f76273d5a07b0754a0234a290b (diff) | |
download | poky-c3ac9501d71f3abd754843a6dcfba90f3e0ef828.tar.gz |
webkitgtk: Fix build when x11 is not in distro features
ANGLE's copy of khrplatform.h is not uptodate with mesa/khronos khrplatform.h
which uses MESA_EGL_NO_X11_HEADERS which is now renamed in newer headers to
EGL_NO_X11 from mesa/khronos headers, however this define is
relatively new and 3D stacks do not have this adopted but apps
like qemu and bunch of others depend on it, I guess they assume mesa.
One can argue that its better to fix the 3D stacks to behave
like mesa but this means every BSP using these stacks will need to
carry such a fix.
https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/include/EGL/eglplatform.h
This patch helps with that
(From OE-Core rev: 4f6b987705a624da3304cb559b885c4352f9b517)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-sato/webkit/webkitgtk_2.34.6.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-sato/webkit/webkitgtk_2.34.6.bb b/meta/recipes-sato/webkit/webkitgtk_2.34.6.bb index 52cc185eb3..ea29ec4adc 100644 --- a/meta/recipes-sato/webkit/webkitgtk_2.34.6.bb +++ b/meta/recipes-sato/webkit/webkitgtk_2.34.6.bb | |||
@@ -98,6 +98,9 @@ EXTRA_OECMAKE:append:arc = " -DENABLE_JIT=OFF " | |||
98 | CFLAGS:append:arc = " -mlong-calls" | 98 | CFLAGS:append:arc = " -mlong-calls" |
99 | CXXFLAGS:append:arc = " -mlong-calls" | 99 | CXXFLAGS:append:arc = " -mlong-calls" |
100 | 100 | ||
101 | # Needed for non-mesa graphics stacks when x11 is disabled | ||
102 | CXXFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_NO_X11=1', d)}" | ||
103 | |||
101 | # Javascript JIT is not supported on powerpc | 104 | # Javascript JIT is not supported on powerpc |
102 | EXTRA_OECMAKE:append:powerpc = " -DENABLE_JIT=OFF " | 105 | EXTRA_OECMAKE:append:powerpc = " -DENABLE_JIT=OFF " |
103 | EXTRA_OECMAKE:append:powerpc64 = " -DENABLE_JIT=OFF " | 106 | EXTRA_OECMAKE:append:powerpc64 = " -DENABLE_JIT=OFF " |