Skip to contentSkip to conversation

igt-gpu-tools: add new package

PATCH In review Arthur She 4 participants 9 messages Jun 9, 2020 – Jun 13, 2020

lore
Share & tools
lore

Arthur She

author
#0 lore raw

PATCH 1/1 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)

---
 .../igt-gpu-tools/igt-gpu-tools_git.bb        | 46 +++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb
meta-oe/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb new file +46 -0
new file mode 100644
index 000000000..761df1cbb
@@ -0,0 +1,46 @@
+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_append = " & ISC"
+
+inherit meson gtk-doc
+
+SRCREV = "${AUTOREV}"
+
+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 python3-mako python3-six git net-snmp"
+
+PACKAGE_BEFORE_PN = "${PN}-benchmarks"
+
+EXTRA_OEMESON = "-Ddocs=disabled -Drunner=enabled -Dchamelium=enabled"
+COMPATIBLE_HOST = "(x86_64.*|i.86.*|arm.*|aarch64).*-linux"
+COMPATIBLE_HOST_libc-musl_class-target = "null"
+
+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} += "\
+        ${libexecdir}/${BPN}/*\
+        ${libdir}/intel_aubdump.so \
+        ${datadir}/${BPN}/1080p-right.png \
+        ${datadir}/${BPN}/1080p-left.png \
+        ${datadir}/${BPN}/pass.png \
+        ${datadir}/${BPN}/test-list.txt \
+        ${libexecdir}/${BPN}/benchmarks \
+        "
Signature · 1 line
2.25.1
#1 lore raw
Quoted 1 line · Arthur She

+SRCREV = "${AUTOREV}"

No.

Either use a release tag, of if you really need git HEAD then use a specific SHA instead of autorev.

AUTOREV means a network operation on every parse, and reproducible builds become impossible.

Ross

#2 lore raw
In reply to Arthur She

Also I guess you should mention that this is basically copied from meta-intel, and talk about how to handle duplicate recipes.

Ross

Quoted 66 lines · 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)

---
 .../igt-gpu-tools/igt-gpu-tools_git.bb        | 46 +++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb
meta-oe/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb new file +46 -1
new file mode 100644
index 000000000..761df1cbb
@@ -0,0 +1,46 @@
+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_append = " & ISC"
+
+inherit meson gtk-doc
+
+SRCREV = "${AUTOREV}"
+
+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 python3-mako python3-six git net-snmp"
+
+PACKAGE_BEFORE_PN = "${PN}-benchmarks"
+
+EXTRA_OEMESON = "-Ddocs=disabled -Drunner=enabled -Dchamelium=enabled"
+COMPATIBLE_HOST = "(x86_64.*|i.86.*|arm.*|aarch64).*-linux"
+COMPATIBLE_HOST_libc-musl_class-target = "null"
+
+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} += "\
+        ${libexecdir}/${BPN}/*\
+        ${libdir}/intel_aubdump.so \
+        ${datadir}/${BPN}/1080p-right.png \
+        ${datadir}/${BPN}/1080p-left.png \
+        ${datadir}/${BPN}/pass.png \
+        ${datadir}/${BPN}/test-list.txt \
+        ${libexecdir}/${BPN}/benchmarks \
+        "
--

2.25.1

#3 lore raw
Quoted 16 lines · Ross Burton

Also I guess you should mention that this is basically copied from meta-intel, and talk about how to handle duplicate recipes.

Ross

Quoted 10 lines · 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)

---
 .../igt-gpu-tools/igt-gpu-tools_git.bb        | 46 +++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb
Quoted 12 lines

meta-oe/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb line 6

Quoted 12 lines
meta-oe/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb new file +6 -0
new file mode 100644
index 000000000..761df1cbb
@@ -0,0 +1,46 @@
+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_append = " & ISC"

Huh?

Quoted 45 lines
Quoted 43 lines
meta-oe/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb new file +39 -1
+inherit meson gtk-doc
+
+SRCREV = "${AUTOREV}"
+
+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 python3-mako python3-six git net-snmp"
+
+PACKAGE_BEFORE_PN = "${PN}-benchmarks"
+
+EXTRA_OEMESON = "-Ddocs=disabled -Drunner=enabled -Dchamelium=enabled"
+COMPATIBLE_HOST = "(x86_64.*|i.86.*|arm.*|aarch64).*-linux"
+COMPATIBLE_HOST_libc-musl_class-target = "null"
+
+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} += "\
+        ${libexecdir}/${BPN}/*\
+        ${libdir}/intel_aubdump.so \
+        ${datadir}/${BPN}/1080p-right.png \
+        ${datadir}/${BPN}/1080p-left.png \
+        ${datadir}/${BPN}/pass.png \
+        ${datadir}/${BPN}/test-list.txt \
+        ${libexecdir}/${BPN}/benchmarks \
+        "
--

2.25.1

author
#5 lore raw

Hi Ross, Denys,
Thanks for your comments.
I've talked to the meta-intel maintainer.
He agrees to remove it from meta-intel and use this one instead, once it gets merged.
I will revise the patch and send the v2 out.

Thanks,
Arthur

Quoted 15 lines · Ross Burton
Quoted 1 line · Denys Dmytriyenko

Huh?

So that was the line that told me the recipe was basically copied from the file in meta-intel:

http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel/tree/recipes-graphics/igt-gpu-tools/igt-gpu-tools_1.25.bb

But it appears that the inclusion of the xorg-app.inc file has been removed. If the recipe has been made standalone then cruft like that needs to be fixed.

Ross

#6 lore raw
Quoted 5 lines · Arthur She

Hi Ross, Denys,
Thanks for your comments.
I've talked to the meta-intel maintainer.
He agrees to remove it from meta-intel and use this one instead, once it gets merged.

Actually I had requested that it be sent to oe-core list to seek others' opinion on whether it can be included there since this provides a core validation functionality that is applicable not just to a single arch and is used by all. I would have been able to remove it from meta- intel in that case.

Thanks,

Anuj

author
#7 lore raw

Hi Anuj,
I will send it to oe-core.

Thanks,
Arthur

Quoted 17 lines · Anuj
Quoted 5 lines · Arthur She

Hi Ross, Denys,
Thanks for your comments.
I've talked to the meta-intel maintainer.
He agrees to remove it from meta-intel and use this one instead, once it gets merged.

Actually I had requested that it be sent to oe-core list to seek others' opinion on whether it can be included there since this provides a core validation functionality that is applicable not just to a single arch and is used by all. I would have been able to remove it from meta- intel in that case.

Thanks,

Anuj

#8 lore raw
In reply to Ross Burton
Quoted 8 lines · Ross Burton
Quoted 1 line · Denys Dmytriyenko

Huh?

So that was the line that told me the recipe was basically copied from
the file in meta-intel:

Quoted 6 lines

http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel/tree/recipes-graphics/igt-gpu-tools/igt-gpu-tools_1.25.bb

But it appears that the inclusion of the xorg-app.inc file has been removed. If the recipe has been made standalone then cruft like that needs to be fixed.

Is this recipe something that can be included in oe-core?

Thanks,

Anuj