diff options
| -rw-r--r-- | meta-oe/recipes-graphics/vk-gl-cts/khronos-cts.inc | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/meta-oe/recipes-graphics/vk-gl-cts/khronos-cts.inc b/meta-oe/recipes-graphics/vk-gl-cts/khronos-cts.inc index f619214731..881d6ca829 100644 --- a/meta-oe/recipes-graphics/vk-gl-cts/khronos-cts.inc +++ b/meta-oe/recipes-graphics/vk-gl-cts/khronos-cts.inc | |||
| @@ -18,9 +18,9 @@ S = "${WORKDIR}/git" | |||
| 18 | 18 | ||
| 19 | inherit pkgconfig cmake features_check | 19 | inherit pkgconfig cmake features_check |
| 20 | 20 | ||
| 21 | REQUIRED_DISTRO_FEATURES += "opengl" | 21 | ANY_OF_DISTRO_FEATURES += "opengl wayland" |
| 22 | 22 | ||
| 23 | DEPENDS += "libpng zlib virtual/libgles2 virtual/egl" | 23 | DEPENDS += "libpng zlib virtual/libgles2" |
| 24 | 24 | ||
| 25 | SRC_URI += "file://0001-Workaround-for-GCC-11-uninit-variable-warnings-946.patch;patchdir=external/amber/src \ | 25 | SRC_URI += "file://0001-Workaround-for-GCC-11-uninit-variable-warnings-946.patch;patchdir=external/amber/src \ |
| 26 | file://0001-Include-limits-header-for-numeric_limits.patch;patchdir=external/vulkancts \ | 26 | file://0001-Include-limits-header-for-numeric_limits.patch;patchdir=external/vulkancts \ |
| @@ -36,7 +36,30 @@ SRC_URI:append:toolchain-clang = "\ | |||
| 36 | file://fix-clang-private-operator.patch \ | 36 | file://fix-clang-private-operator.patch \ |
| 37 | " | 37 | " |
| 38 | 38 | ||
| 39 | EXTRA_OECMAKE:append = " -DDEQP_TARGET=surfaceless" | 39 | # The best thing for the user to do is to not specify any of the following |
| 40 | # PACKAGECONFIGs (i.e. leave it blank) which tells the project to do its own | ||
| 41 | # probing and build what it thinks is appropriate. | ||
| 42 | # However, if you want, you can specify one of the following PACKAGECONFIGs | ||
| 43 | # to override this behaviour. | ||
| 44 | PACKAGECONFIG ??= "" | ||
| 45 | PACKAGECONFIG[surfaceless] = "-DDEQP_TARGET=surfaceless,,,,,wayland x11_egl x11_glx x11_egl_glx" | ||
| 46 | PACKAGECONFIG[wayland] = "-DDEQP_TARGET=wayland,,wayland,,,surfaceless x11_egl x11_glx x11_egl_glx" | ||
| 47 | PACKAGECONFIG[x11_egl] = "-DDEQP_TARGET=x11_egl,,virtual/libx11 virtual/egl,,,surfaceless wayland x11_glx x11_egl_glx" | ||
| 48 | PACKAGECONFIG[x11_glx] = "-DDEQP_TARGET=x11_glx,,virtual/libx11,,,surfaceless wayland x11_egl x11_egl_glx" | ||
| 49 | PACKAGECONFIG[x11_egl_glx] = "-DDEQP_TARGET=x11_glx,,virtual/libx11 virtual/egl,,,surfaceless wayland x11_egl x11_glx" | ||
| 50 | |||
| 51 | python __anonymous() { | ||
| 52 | # if the user doesn't specify any PACKAGECONFIG then the cts build system | ||
| 53 | # is going to probe the sysroot to try to figure out what to build | ||
| 54 | # in this case we try to guess whether the user is building for wayland | ||
| 55 | # or x11 and add the required dependencies automatically | ||
| 56 | distrofeatures = (d.getVar("DISTRO_FEATURES") or "") | ||
| 57 | if not bb.utils.contains_any("PACKAGECONFIG", ["surfaceless", "wayland", "x11_egl", "x11_glx", "x11_egl_glx"], True, False, d): | ||
| 58 | if "wayland" in distrofeatures: | ||
| 59 | d.appendVar("DEPENDS", " wayland ") | ||
| 60 | if "x11" in distrofeatures: | ||
| 61 | d.appendVar("DEPENDS", " virtual/libx11 virtual/egl ") | ||
| 62 | } | ||
| 40 | 63 | ||
| 41 | CTSDIR = "/usr/lib/${BPN}" | 64 | CTSDIR = "/usr/lib/${BPN}" |
| 42 | 65 | ||
