All of lore.kernel.org
 help / color / mirror / Atom feed
* [OE-core][PATCH v3] igt-gpu-tools: add new package
@ 2020-06-19 18:09 Arthur She
  2020-06-19 22:14 ` Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Arthur She @ 2020-06-19 18:09 UTC (permalink / raw)
  To: openembedded-core; +Cc: Arthur She

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 and Chamelium
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.

Signed-off-by: Arthur She <arthur.she@linaro.org>
---
 meta/conf/distro/include/maintainers.inc      |  1 +
 .../igt-gpu-tools/igt-gpu-tools_git.bb        | 47 +++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 100644 meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb

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>"
 RECIPE_MAINTAINER_pn-icecc-create-env = "Joshua Watt <JPEWhacker@gmail.com>"
 RECIPE_MAINTAINER_pn-icu = "Alexander Kanavin <alex.kanavin@gmail.com>"
 RECIPE_MAINTAINER_pn-ifupdown = "Anuj Mittal <anuj.mittal@intel.com>"
+RECIPE_MAINTAINER_pn-igt-gpu-tools = "Anuj Mittal <anuj.mittal@intel.com>"
 RECIPE_MAINTAINER_pn-inetutils = "Tom Rini <trini@konsulko.com>"
 RECIPE_MAINTAINER_pn-init-ifupdown = "Anuj Mittal <anuj.mittal@intel.com>"
 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..dc9537c9e3
--- /dev/null
+++ b/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb
@@ -0,0 +1,47 @@
+SUMMARY = "IGT GPU Tools"
+DESCRIPTION = "IGT GPU Tools is a collection of tools for development and testing of the DRM drivers"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=67bfee4df38fa6ecbe3a675c552d4c08"
+
+LICENSE = "MIT"
+
+inherit meson
+
+SRCREV = "d16ad07e7f2a028e14d61f570931c87fa5ce404c"
+PV = "1.25+git${SRCPV}"
+
+SRC_URI = "git://gitlab.freedesktop.org/drm/igt-gpu-tools.git;protocol=https"
+
+S = "${WORKDIR}/git"
+
+DEPENDS += "libdrm libpciaccess cairo udev glib-2.0 procps libunwind kmod openssl xmlrpc-c gsl elfutils alsa-lib json-c bison-native"
+RDEPENDS_${PN} += "bash"
+RDEPENDS_${PN}-tests += "bash"
+
+PACKAGE_BEFORE_PN = "${PN}-benchmarks ${PN}-tests"
+
+EXTRA_OEMESON = "-Ddocs=disabled -Drunner=enabled -Dchamelium=enabled"
+COMPATIBLE_HOST = "(x86_64.*|i.86.*|arm.*|aarch64).*-linux"
+COMPATIBLE_HOST_libc-musl_class-target = "null"
+SECURITY_LDFLAGS = "${SECURITY_X_LDFLAGS}"
+
+gputools_sysroot_preprocess() {
+	rm -f ${SYSROOT_DESTDIR}${libdir}/pkgconfig/intel-gen4asm.pc
+}
+SYSROOT_PREPROCESS_FUNCS += "gputools_sysroot_preprocess"
+
+do_install_append() {
+    install -d ${D}/usr/share/${BPN}/scripts
+    install ${S}/scripts/run-tests.sh ${D}/usr/share/${BPN}/scripts
+    install -d ${D}/usr/share/${BPN}/runner
+    install -D ${B}/runner/igt_runner ${D}/usr/share/${BPN}/runner
+    install -D ${B}/runner/igt_resume ${D}/usr/share/${BPN}/runner
+}
+
+FILES_${PN}-benchmarks += "${libexecdir}/${BPN}/benchmarks"
+FILES_${PN}-tests += "\
+        ${libexecdir}/${BPN}/*\
+        ${datadir}/${BPN}/1080p-right.png\
+        ${datadir}/${BPN}/1080p-left.png\
+        ${datadir}/${BPN}/pass.png\
+        ${datadir}/${BPN}/test-list.txt"
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [OE-core][PATCH v3] igt-gpu-tools: add new package
  2020-06-19 18:09 [OE-core][PATCH v3] igt-gpu-tools: add new package Arthur She
@ 2020-06-19 22:14 ` Richard Purdie
  2020-06-22  0:07   ` Anuj Mittal
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2020-06-19 22:14 UTC (permalink / raw)
  To: Arthur She, openembedded-core

On Fri, 2020-06-19 at 11:09 -0700, Arthur She wrote:
> 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 and Chamelium
> 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.
> 
> Signed-off-by: Arthur She <arthur.she@linaro.org>

Looks like it has a number of dependencies not in OE-Core?

WARNING: Nothing PROVIDES 'xmlrpc-c' (but /home/pokybuild/yocto-worker/a-full/build/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb DEPENDS on or otherwise requires it)
WARNING: Nothing PROVIDES 'gsl' (but /home/pokybuild/yocto-worker/a-full/build/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb DEPENDS on or otherwise requires it)

Cheers,

Richard


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core][PATCH v3] igt-gpu-tools: add new package
  2020-06-19 22:14 ` Richard Purdie
@ 2020-06-22  0:07   ` Anuj Mittal
  2020-06-22 14:48     ` Arthur She
  0 siblings, 1 reply; 4+ messages in thread
From: Anuj Mittal @ 2020-06-22  0:07 UTC (permalink / raw)
  To: openembedded-core, arthur.she

Hi Arthur,

On Fri, 2020-06-19 at 23:14 +0100, Richard Purdie wrote:
> On Fri, 2020-06-19 at 11:09 -0700, Arthur She wrote:
> > 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 and Chamelium
> > 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.
> > 
> > Signed-off-by: Arthur She <arthur.she@linaro.org>
> 
> Looks like it has a number of dependencies not in OE-Core?
> 
> WARNING: Nothing PROVIDES 'xmlrpc-c' (but /home/pokybuild/yocto-
> worker/a-full/build/meta/recipes-graphics/igt-gpu-tools/igt-gpu-
> tools_git.bb DEPENDS on or otherwise requires it)
> WARNING: Nothing PROVIDES 'gsl' (but /home/pokybuild/yocto-worker/a-
> full/build/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb
> DEPENDS on or otherwise requires it)
> 

xmlrpc-c and gsl are optional dependencies and looks like are only
needed for chamelium. Could you please turn the option
chamelium=enabled into a PACKAGECONFIG and turn that off by default?

Thanks,

Anuj

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core][PATCH v3] igt-gpu-tools: add new package
  2020-06-22  0:07   ` Anuj Mittal
@ 2020-06-22 14:48     ` Arthur She
  0 siblings, 0 replies; 4+ messages in thread
From: Arthur She @ 2020-06-22 14:48 UTC (permalink / raw)
  To: Mittal, Anuj; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1857 bytes --]

Hi Anuj,
I did a test build.
These two packages were needed by chamelium.
I'll disable chamelium and resend the patch.

Thanks,

Arthur

On Sun, Jun 21, 2020 at 5:07 PM Mittal, Anuj <anuj.mittal@intel.com> wrote:

> Hi Arthur,
>
> On Fri, 2020-06-19 at 23:14 +0100, Richard Purdie wrote:
> > On Fri, 2020-06-19 at 11:09 -0700, Arthur She wrote:
> > > 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 and Chamelium
> > > 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.
> > >
> > > Signed-off-by: Arthur She <arthur.she@linaro.org>
> >
> > Looks like it has a number of dependencies not in OE-Core?
> >
> > WARNING: Nothing PROVIDES 'xmlrpc-c' (but /home/pokybuild/yocto-
> > worker/a-full/build/meta/recipes-graphics/igt-gpu-tools/igt-gpu-
> > tools_git.bb DEPENDS on or otherwise requires it)
> > WARNING: Nothing PROVIDES 'gsl' (but /home/pokybuild/yocto-worker/a-
> > full/build/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb
> > DEPENDS on or otherwise requires it)
> >
>
> xmlrpc-c and gsl are optional dependencies and looks like are only
> needed for chamelium. Could you please turn the option
> chamelium=enabled into a PACKAGECONFIG and turn that off by default?
>
> Thanks,
>
> Anuj
>

[-- Attachment #2: Type: text/html, Size: 2754 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-06-22 14:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-19 18:09 [OE-core][PATCH v3] igt-gpu-tools: add new package Arthur She
2020-06-19 22:14 ` Richard Purdie
2020-06-22  0:07   ` Anuj Mittal
2020-06-22 14:48     ` Arthur She

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.