igt-gpu-tools: add new package
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
@@ -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
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
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)
Signed-off-by Arthur She <[email protected]>--- .../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.bbmeta-oe/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb new file +46
-1@@ -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
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)
Signed-off-by Arthur She <[email protected]>--- .../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@@ -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
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:
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
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:
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
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
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
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
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