[meta-intel] [PATCH resend] intel-gpu-tools: modify packaging to support different usages
Reinette Chatre
reinette.chatre at intel.com
Mon Feb 8 14:24:14 PST 2016
The intel-gpu-tools recipe describes itself as "Variety of small tools for
testing intel graphics.". Current packaging does not support "small" usages.
Here we separate out the tests (about 25MB) and benchmarks (about 2MB)
into two new packages that can be installed when they are needed. For the
usages that only need the tools, the intel-gpu-tools package
contains those.
Suggested-by: Richard Purdie <richard.purdie at linuxfoundation.org>
Signed-off-by: Reinette Chatre <reinette.chatre at intel.com>
---
resend with corrected email address
.../recipes-graphics/intel-gpu-tools/intel-gpu-tools_1.11.bb | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/common/recipes-graphics/intel-gpu-tools/intel-gpu-tools_1.11.bb b/common/recipes-graphics/intel-gpu-tools/intel-gpu-tools_1.11.bb
index 1997264..3415056 100644
--- a/common/recipes-graphics/intel-gpu-tools/intel-gpu-tools_1.11.bb
+++ b/common/recipes-graphics/intel-gpu-tools/intel-gpu-tools_1.11.bb
@@ -12,6 +12,9 @@ inherit autotools gtk-doc
DEPENDS += "libdrm libpciaccess cairo udev glib-2.0 libxv libx11 libxext libxrandr"
RDEPENDS_${PN} += "bash"
+RDEPENDS_${PN}-tests += "bash"
+
+PACKAGES =+ "${PN}-benchmarks-dbg ${PN}-benchmarks ${PN}-tests"
PACKAGECONFIG ??= ""
PACKAGECONFIG[libunwind] = "--with-libunwind,--without-libunwind,libunwind,libunwind"
@@ -23,3 +26,12 @@ gputools_sysroot_preprocess() {
rm -f ${SYSROOT_DESTDIR}${libdir}/pkgconfig/intel-gen4asm.pc
}
SYSROOT_PREPROCESS_FUNCS += "gputools_sysroot_preprocess"
+
+FILES_${PN}-benchmarks-dbg += "${libdir}/intel-gpu-tools/intel-gpu-tools/benchmarks/.debug/*"
+FILES_${PN}-benchmarks += "${libdir}/intel-gpu-tools/intel-gpu-tools/benchmarks"
+FILES_${PN}-tests += "\
+ ${libdir}/intel-gpu-tools/intel-gpu-tools/*\
+ ${datadir}/intel-gpu-tools/1080p-right.png\
+ ${datadir}/intel-gpu-tools/1080p-left.png\
+ ${datadir}/intel-gpu-tools/pass.png\
+ ${datadir}/intel-gpu-tools/test-list.txt"
--
2.4.3
More information about the meta-intel
mailing list