summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-03-09 09:07:51 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-10 13:07:37 +0000
commit6ef0c91921bf77f76273d5a07b0754a0234a290b (patch)
treebdcbe877288af5c0de5dc2db2e56d1d049e919e8 /meta
parent5c931175b4707b3bf46aee9509607bef9adfe08f (diff)
downloadpoky-6ef0c91921bf77f76273d5a07b0754a0234a290b.tar.gz
qemu: Fix build when x11 is not in distro features
There is use of 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 (From OE-Core rev: 8c9d0bc4eb2784a3defa047e509d96e0eb521c03) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/qemu/qemu_6.2.0.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/qemu/qemu_6.2.0.bb b/meta/recipes-devtools/qemu/qemu_6.2.0.bb
index 062ed32b01..c7eef0a9d5 100644
--- a/meta/recipes-devtools/qemu/qemu_6.2.0.bb
+++ b/meta/recipes-devtools/qemu/qemu_6.2.0.bb
@@ -6,6 +6,8 @@ DEPENDS = "glib-2.0 zlib pixman bison-native ninja-native meson-native"
6 6
7DEPENDS:append:libc-musl = " libucontext" 7DEPENDS:append:libc-musl = " libucontext"
8 8
9CFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_NO_X11=1', d)}"
10
9RDEPENDS:${PN}:class-target += "bash" 11RDEPENDS:${PN}:class-target += "bash"
10 12
11EXTRA_OECONF:append:class-target = " --target-list=${@get_qemu_target_list(d)}" 13EXTRA_OECONF:append:class-target = " --target-list=${@get_qemu_target_list(d)}"