diff options
| -rw-r--r-- | recipes-graphics/waffle/waffle/0002-meson-Separate-surfaceless-option-from-x11.patch | 46 | ||||
| -rw-r--r-- | recipes-graphics/waffle/waffle_%.bbappend | 1 |
2 files changed, 47 insertions, 0 deletions
diff --git a/recipes-graphics/waffle/waffle/0002-meson-Separate-surfaceless-option-from-x11.patch b/recipes-graphics/waffle/waffle/0002-meson-Separate-surfaceless-option-from-x11.patch new file mode 100644 index 000000000..3f9f3b1ce --- /dev/null +++ b/recipes-graphics/waffle/waffle/0002-meson-Separate-surfaceless-option-from-x11.patch | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | From 451381a61ad0c96e870da2325fc188eaa3d91fec Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Tom Hochstein <tom.hochstein@nxp.com> | ||
| 3 | Date: Wed, 22 Apr 2020 14:08:36 -0500 | ||
| 4 | Subject: [PATCH 2/2] meson: Separate surfaceless option from x11 | ||
| 5 | |||
| 6 | Allow surfaceless build separate from the x11 option. | ||
| 7 | Also require gbm for surfaceless build. | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | |||
| 11 | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> | ||
| 12 | --- | ||
| 13 | meson.build | 5 ++++- | ||
| 14 | 1 file changed, 4 insertions(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/meson.build b/meson.build | ||
| 17 | index 4ebb022..0705f61 100644 | ||
| 18 | --- a/meson.build | ||
| 19 | +++ b/meson.build | ||
| 20 | @@ -72,6 +72,7 @@ dep_udev = _dep_null | ||
| 21 | dep_cocoa = _dep_null | ||
| 22 | dep_core_foundation = _dep_null | ||
| 23 | dep_gl_headers = _dep_null | ||
| 24 | +dep_surfaceless = _dep_null | ||
| 25 | |||
| 26 | # Get dependencies | ||
| 27 | if build_wgl | ||
| 28 | @@ -101,12 +102,14 @@ else | ||
| 29 | endif | ||
| 30 | dep_gbm = dependency('gbm', required : get_option('gbm')) | ||
| 31 | dep_udev = dependency('libudev', required : get_option('gbm')) | ||
| 32 | + dep_surfaceless_egl = dependency('egl', required : get_option('surfaceless_egl')) | ||
| 33 | + dep_surfaceless_gbm = dependency('gbm', required : get_option('surfaceless_egl')) | ||
| 34 | |||
| 35 | build_x11_egl = dep_egl.found() | ||
| 36 | build_wayland = dep_wayland_client.found() and dep_wayland_egl.found() and dep_wayland_wayland_egl.found() | ||
| 37 | build_glx = dep_gl.found() | ||
| 38 | build_gbm = dep_gbm.found() and dep_udev.found() | ||
| 39 | - build_surfaceless = dep_egl.found() | ||
| 40 | + build_surfaceless = dep_surfaceless_egl.found() and dep_surfaceless_gbm.found() | ||
| 41 | endif | ||
| 42 | |||
| 43 | dep_bash = dependency('bash-completion', required : false) | ||
| 44 | -- | ||
| 45 | 2.17.1 | ||
| 46 | |||
diff --git a/recipes-graphics/waffle/waffle_%.bbappend b/recipes-graphics/waffle/waffle_%.bbappend index 4bb2ed5f5..9d090bcfe 100644 --- a/recipes-graphics/waffle/waffle_%.bbappend +++ b/recipes-graphics/waffle/waffle_%.bbappend | |||
| @@ -2,6 +2,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | |||
| 2 | 2 | ||
| 3 | SRC_URI += " \ | 3 | SRC_URI += " \ |
| 4 | file://0001-meson-Add-missing-wayland-dependency-on-EGL.patch \ | 4 | file://0001-meson-Add-missing-wayland-dependency-on-EGL.patch \ |
| 5 | file://0002-meson-Separate-surfaceless-option-from-x11.patch \ | ||
| 5 | " | 6 | " |
| 6 | 7 | ||
| 7 | PACKAGECONFIG_IMXGPU_X11 = "" | 8 | PACKAGECONFIG_IMXGPU_X11 = "" |
