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)
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
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
This should be sent to oe-devel list.
Alex
Quoted 72 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
meta-oe/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb new file +2
-0@@ -0,0 +1,46 @@ +SUMMARY = "IGT GPU Tools" +DESCRIPTION = "IGT GPU Tools is a collection of tools for development andtesting of the DRM drivers"
meta-oe/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb new file +10
-0+ +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"
meta-oe/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb new file +4
-0+ +S = "${WORKDIR}/git" + +DEPENDS += "libdrm libpciaccess cairo udev glib-2.0 procps libunwind kmodopenssl xmlrpc-c gsl elfutils alsa-lib json-c bison-native"
meta-oe/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb new file +30
-1+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