blob: f4799fbc773a3559150cc85d620ffc7ea5d2b03d [file] [log] [blame]
Andrew Geisslerd25ed322020-06-27 00:28:28 -05001SUMMARY = "IGT GPU Tools"
2DESCRIPTION = "IGT GPU Tools is a collection of tools for development and testing of the DRM drivers"
Andrew Geissler90fd73c2021-03-05 15:25:55 -06003HOMEPAGE = "https://gitlab.freedesktop.org/drm/igt-gpu-tools"
4BUGTRACKER = "https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues"
Andrew Geisslerd25ed322020-06-27 00:28:28 -05005
6LIC_FILES_CHKSUM = "file://COPYING;md5=67bfee4df38fa6ecbe3a675c552d4c08"
7
8LICENSE = "MIT"
9
Andrew Geissler5199d832021-09-24 16:47:35 -050010inherit meson pkgconfig
Andrew Geisslerd25ed322020-06-27 00:28:28 -050011
Patrick Williams864cc432023-02-09 14:54:44 -060012SRCREV = "2b29e8ac07fbcfadc48b9d60e4d736a6e3b289ab"
13PV = "1.27.1"
Andrew Geisslerd25ed322020-06-27 00:28:28 -050014
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050015SRC_URI = "git://gitlab.freedesktop.org/drm/igt-gpu-tools.git;protocol=https;branch=master \
16 file://0001-Support-procps-4.x.patch \
17 "
Andrew Geisslerd25ed322020-06-27 00:28:28 -050018
19S = "${WORKDIR}/git"
20
21DEPENDS += "libdrm libpciaccess cairo udev glib-2.0 procps libunwind kmod openssl elfutils alsa-lib json-c bison-native"
Patrick Williams864cc432023-02-09 14:54:44 -060022RDEPENDS:${PN} += "bash perl"
Patrick Williams213cb262021-08-07 19:21:33 -050023RDEPENDS:${PN}-tests += "bash"
Andrew Geisslerd25ed322020-06-27 00:28:28 -050024
25PACKAGE_BEFORE_PN = "${PN}-benchmarks ${PN}-tests"
26
Andrew Geisslerb7d28612020-07-24 16:15:54 -050027PACKAGECONFIG[chamelium] = "-Dchamelium=enabled,-Dchamelium=disabled,gsl xmlrpc-c"
28
Andrew Geissler90fd73c2021-03-05 15:25:55 -060029EXTRA_OEMESON = "-Ddocs=disabled -Drunner=enabled -Dsrcdir=/usr/src/debug/${PN}/${PV}-${PR}/git/"
Andrew Geisslerd25ed322020-06-27 00:28:28 -050030COMPATIBLE_HOST = "(x86_64.*|i.86.*|arm.*|aarch64).*-linux"
Patrick Williams213cb262021-08-07 19:21:33 -050031COMPATIBLE_HOST:libc-musl:class-target = "null"
Andrew Geisslerd25ed322020-06-27 00:28:28 -050032SECURITY_LDFLAGS = "${SECURITY_X_LDFLAGS}"
33
34gputools_sysroot_preprocess() {
35 rm -f ${SYSROOT_DESTDIR}${libdir}/pkgconfig/intel-gen4asm.pc
36}
37SYSROOT_PREPROCESS_FUNCS += "gputools_sysroot_preprocess"
38
Patrick Williams213cb262021-08-07 19:21:33 -050039do_install:append() {
Andrew Geisslerd25ed322020-06-27 00:28:28 -050040 install -d ${D}/usr/share/${BPN}/scripts
41 install ${S}/scripts/run-tests.sh ${D}/usr/share/${BPN}/scripts
42 install -d ${D}/usr/share/${BPN}/runner
43 install -D ${B}/runner/igt_runner ${D}/usr/share/${BPN}/runner
44 install -D ${B}/runner/igt_resume ${D}/usr/share/${BPN}/runner
45}
46
Patrick Williams213cb262021-08-07 19:21:33 -050047FILES:${PN}-benchmarks += "${libexecdir}/${BPN}/benchmarks"
48FILES:${PN}-tests += "\
Andrew Geisslerd25ed322020-06-27 00:28:28 -050049 ${libexecdir}/${BPN}/*\
50 ${datadir}/${BPN}/1080p-right.png\
51 ${datadir}/${BPN}/1080p-left.png\
52 ${datadir}/${BPN}/pass.png\
53 ${datadir}/${BPN}/test-list.txt"