diff options
author | Ross Burton <ross.burton@arm.com> | 2024-12-09 17:26:24 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-12-10 08:39:05 -0800 |
commit | 7529a85b9a26ff6e61243b81c600ec0e7105e456 (patch) | |
tree | 870e46a59a7329e9b072446119a03543ed66a2c2 | |
parent | e0702daf8ebacc63ca99e331c78ae4d43200bdf6 (diff) | |
download | meta-openembedded-7529a85b9a26ff6e61243b81c600ec0e7105e456.tar.gz |
vk-gl-cts: use cmake-qemu
Don't configure qemu+cmake manually, use the cmake-qemu class.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-graphics/vk-gl-cts/khronos-cts.inc | 14 |
1 files changed, 1 insertions, 13 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 cf9eaf6863..0b347cf77e 100644 --- a/meta-oe/recipes-graphics/vk-gl-cts/khronos-cts.inc +++ b/meta-oe/recipes-graphics/vk-gl-cts/khronos-cts.inc | |||
@@ -19,7 +19,7 @@ SRCREV_FORMAT = "vk-gl-cts_amber_glslang_spirv-headers_spirv-tools_jsoncpp_video | |||
19 | 19 | ||
20 | S = "${WORKDIR}/git" | 20 | S = "${WORKDIR}/git" |
21 | 21 | ||
22 | inherit pkgconfig cmake features_check python3native qemu | 22 | inherit pkgconfig cmake cmake-qemu features_check python3native |
23 | 23 | ||
24 | UPSTREAM_CHECK_GITTAGREGEX = "${BPN}-(?P<pver>\d+(\.\d+)+)" | 24 | UPSTREAM_CHECK_GITTAGREGEX = "${BPN}-(?P<pver>\d+(\.\d+)+)" |
25 | 25 | ||
@@ -42,7 +42,6 @@ SRC_URI:append:toolchain-clang = "\ | |||
42 | " | 42 | " |
43 | 43 | ||
44 | EXTRA_OECMAKE += "-DAMBER_DISABLE_WERROR=ON \ | 44 | EXTRA_OECMAKE += "-DAMBER_DISABLE_WERROR=ON \ |
45 | -DCMAKE_CROSSCOMPILING_EMULATOR=${WORKDIR}/qemuwrapper \ | ||
46 | -DWAYLAND_SCANNER=${STAGING_BINDIR_NATIVE}/wayland-scanner \ | 45 | -DWAYLAND_SCANNER=${STAGING_BINDIR_NATIVE}/wayland-scanner \ |
47 | -DWAYLAND_PROTOCOLS_DIR=${STAGING_DATADIR}/wayland-protocols" | 46 | -DWAYLAND_PROTOCOLS_DIR=${STAGING_DATADIR}/wayland-protocols" |
48 | 47 | ||
@@ -58,17 +57,6 @@ PACKAGECONFIG[x11_egl] = "-DDEQP_TARGET=x11_egl,,virtual/libx11 virtual/egl,,,su | |||
58 | PACKAGECONFIG[x11_glx] = "-DDEQP_TARGET=x11_glx,,virtual/libx11,,,surfaceless wayland x11_egl x11_egl_glx" | 57 | PACKAGECONFIG[x11_glx] = "-DDEQP_TARGET=x11_glx,,virtual/libx11,,,surfaceless wayland x11_egl x11_egl_glx" |
59 | PACKAGECONFIG[x11_egl_glx] = "-DDEQP_TARGET=x11_glx,,virtual/libx11 virtual/egl,,,surfaceless wayland x11_egl x11_glx" | 58 | PACKAGECONFIG[x11_egl_glx] = "-DDEQP_TARGET=x11_glx,,virtual/libx11 virtual/egl,,,surfaceless wayland x11_egl x11_glx" |
60 | 59 | ||
61 | do_configure:append() { | ||
62 | # Write out a qemu wrapper that will be used by cmake | ||
63 | # so that it can run target helper binaries through that. | ||
64 | qemu_binary="${@qemu_wrapper_cmdline(d, d.getVar('STAGING_DIR_HOST'), [d.expand('${STAGING_DIR_HOST}${libdir}'),d.expand('${STAGING_DIR_HOST}${base_libdir}')])}" | ||
65 | cat > ${WORKDIR}/qemuwrapper << EOF | ||
66 | #!/bin/sh | ||
67 | $qemu_binary "\$@" | ||
68 | EOF | ||
69 | chmod +x ${WORKDIR}/qemuwrapper | ||
70 | } | ||
71 | |||
72 | python __anonymous() { | 60 | python __anonymous() { |
73 | # if the user doesn't specify any PACKAGECONFIG then the cts build system | 61 | # if the user doesn't specify any PACKAGECONFIG then the cts build system |
74 | # is going to probe the sysroot to try to figure out what to build | 62 | # is going to probe the sysroot to try to figure out what to build |