diff options
| author | Arthur She <arthur.she@linaro.org> | 2020-06-22 07:49:55 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-06-23 12:31:03 +0100 |
| commit | 86385d90faaa936142389795f3e207045263d582 (patch) | |
| tree | 7492f68f77e81f5e65da947c30d288cd801d178a | |
| parent | cea56554d0a52bedc2f871d43b509294de0b5a15 (diff) | |
| download | poky-86385d90faaa936142389795f3e207045263d582.tar.gz | |
igt-gpu-tools: add new package
igt-gpu-tools is a collection of tools for development and testing of the DRM
drivers. (https://gitlab.freedesktop.org/drm/igt-gpu-tools)
This recipe is originally copied from meta-intel and added the following
modifications
1. Enable ARM architecture
2. Enable igt-runner
3. Build git HEAD code instead of a specific version
The original recipe in the meta-intel will be removed and replaced by
this one to avoid having a duplicate recipe.
It is applicable to be submitted to oe-core, because it provides
a core validation functionality that is needed by all providing DRM
drivers and not just to a single arch.
(From OE-Core rev: d98e9b3612ab2c03503843cb3ea77bec7811a1d4)
Signed-off-by: Arthur She <arthur.she@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/conf/distro/include/maintainers.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb | 47 |
2 files changed, 48 insertions, 0 deletions
diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 6496a48e40..2751375acc 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc | |||
| @@ -262,6 +262,7 @@ RECIPE_MAINTAINER_pn-i2c-tools = "Anuj Mittal <anuj.mittal@intel.com>" | |||
| 262 | RECIPE_MAINTAINER_pn-icecc-create-env = "Joshua Watt <JPEWhacker@gmail.com>" | 262 | RECIPE_MAINTAINER_pn-icecc-create-env = "Joshua Watt <JPEWhacker@gmail.com>" |
| 263 | RECIPE_MAINTAINER_pn-icu = "Alexander Kanavin <alex.kanavin@gmail.com>" | 263 | RECIPE_MAINTAINER_pn-icu = "Alexander Kanavin <alex.kanavin@gmail.com>" |
| 264 | RECIPE_MAINTAINER_pn-ifupdown = "Anuj Mittal <anuj.mittal@intel.com>" | 264 | RECIPE_MAINTAINER_pn-ifupdown = "Anuj Mittal <anuj.mittal@intel.com>" |
| 265 | RECIPE_MAINTAINER_pn-igt-gpu-tools = "Anuj Mittal <anuj.mittal@intel.com>" | ||
| 265 | RECIPE_MAINTAINER_pn-inetutils = "Tom Rini <trini@konsulko.com>" | 266 | RECIPE_MAINTAINER_pn-inetutils = "Tom Rini <trini@konsulko.com>" |
| 266 | RECIPE_MAINTAINER_pn-init-ifupdown = "Anuj Mittal <anuj.mittal@intel.com>" | 267 | RECIPE_MAINTAINER_pn-init-ifupdown = "Anuj Mittal <anuj.mittal@intel.com>" |
| 267 | RECIPE_MAINTAINER_pn-init-system-helpers = "Anuj Mittal <anuj.mittal@intel.com>" | 268 | RECIPE_MAINTAINER_pn-init-system-helpers = "Anuj Mittal <anuj.mittal@intel.com>" |
diff --git a/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb b/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb new file mode 100644 index 0000000000..f60880c292 --- /dev/null +++ b/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | SUMMARY = "IGT GPU Tools" | ||
| 2 | DESCRIPTION = "IGT GPU Tools is a collection of tools for development and testing of the DRM drivers" | ||
| 3 | |||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=67bfee4df38fa6ecbe3a675c552d4c08" | ||
| 5 | |||
| 6 | LICENSE = "MIT" | ||
| 7 | |||
| 8 | inherit meson | ||
| 9 | |||
| 10 | SRCREV = "d16ad07e7f2a028e14d61f570931c87fa5ce404c" | ||
| 11 | PV = "1.25+git${SRCPV}" | ||
| 12 | |||
| 13 | SRC_URI = "git://gitlab.freedesktop.org/drm/igt-gpu-tools.git;protocol=https" | ||
| 14 | |||
| 15 | S = "${WORKDIR}/git" | ||
| 16 | |||
| 17 | DEPENDS += "libdrm libpciaccess cairo udev glib-2.0 procps libunwind kmod openssl elfutils alsa-lib json-c bison-native" | ||
| 18 | RDEPENDS_${PN} += "bash" | ||
| 19 | RDEPENDS_${PN}-tests += "bash" | ||
| 20 | |||
| 21 | PACKAGE_BEFORE_PN = "${PN}-benchmarks ${PN}-tests" | ||
| 22 | |||
| 23 | EXTRA_OEMESON = "-Ddocs=disabled -Drunner=enabled" | ||
| 24 | COMPATIBLE_HOST = "(x86_64.*|i.86.*|arm.*|aarch64).*-linux" | ||
| 25 | COMPATIBLE_HOST_libc-musl_class-target = "null" | ||
| 26 | SECURITY_LDFLAGS = "${SECURITY_X_LDFLAGS}" | ||
| 27 | |||
| 28 | gputools_sysroot_preprocess() { | ||
| 29 | rm -f ${SYSROOT_DESTDIR}${libdir}/pkgconfig/intel-gen4asm.pc | ||
| 30 | } | ||
| 31 | SYSROOT_PREPROCESS_FUNCS += "gputools_sysroot_preprocess" | ||
| 32 | |||
| 33 | do_install_append() { | ||
| 34 | install -d ${D}/usr/share/${BPN}/scripts | ||
| 35 | install ${S}/scripts/run-tests.sh ${D}/usr/share/${BPN}/scripts | ||
| 36 | install -d ${D}/usr/share/${BPN}/runner | ||
| 37 | install -D ${B}/runner/igt_runner ${D}/usr/share/${BPN}/runner | ||
| 38 | install -D ${B}/runner/igt_resume ${D}/usr/share/${BPN}/runner | ||
| 39 | } | ||
| 40 | |||
| 41 | FILES_${PN}-benchmarks += "${libexecdir}/${BPN}/benchmarks" | ||
| 42 | FILES_${PN}-tests += "\ | ||
| 43 | ${libexecdir}/${BPN}/*\ | ||
| 44 | ${datadir}/${BPN}/1080p-right.png\ | ||
| 45 | ${datadir}/${BPN}/1080p-left.png\ | ||
| 46 | ${datadir}/${BPN}/pass.png\ | ||
| 47 | ${datadir}/${BPN}/test-list.txt" | ||
