blob: 90cd09ea70c3246d12cbc60c2487c0fbcf69658b [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
Andrew Geissler220dafd2023-10-04 10:18:08 -050012SRCREV = "31ec677ca24e7ed86e35f367f40a29d3d9f51c06"
13PV = "1.28"
Andrew Geisslerd25ed322020-06-27 00:28:28 -050014
Andrew Geissler220dafd2023-10-04 10:18:08 -050015SRC_URI = "git://gitlab.freedesktop.org/drm/igt-gpu-tools.git;protocol=https;branch=master"
Andrew Geisslerd25ed322020-06-27 00:28:28 -050016
17S = "${WORKDIR}/git"
18
19DEPENDS += "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 -060020RDEPENDS:${PN} += "bash perl"
Patrick Williams213cb262021-08-07 19:21:33 -050021RDEPENDS:${PN}-tests += "bash"
Andrew Geisslerd25ed322020-06-27 00:28:28 -050022
23PACKAGE_BEFORE_PN = "${PN}-benchmarks ${PN}-tests"
24
Andrew Geisslerb7d28612020-07-24 16:15:54 -050025PACKAGECONFIG[chamelium] = "-Dchamelium=enabled,-Dchamelium=disabled,gsl xmlrpc-c"
26
Patrick Williamsac13d5f2023-11-24 18:59:46 -060027EXTRA_OEMESON = "-Ddocs=disabled -Drunner=enabled -Dsrcdir=${TARGET_DBGSRC_DIR}/git/ -Dversion_hash=${PV}"
Andrew Geisslerd25ed322020-06-27 00:28:28 -050028COMPATIBLE_HOST = "(x86_64.*|i.86.*|arm.*|aarch64).*-linux"
Patrick Williams213cb262021-08-07 19:21:33 -050029COMPATIBLE_HOST:libc-musl:class-target = "null"
Andrew Geisslerd25ed322020-06-27 00:28:28 -050030SECURITY_LDFLAGS = "${SECURITY_X_LDFLAGS}"
31
32gputools_sysroot_preprocess() {
33 rm -f ${SYSROOT_DESTDIR}${libdir}/pkgconfig/intel-gen4asm.pc
34}
35SYSROOT_PREPROCESS_FUNCS += "gputools_sysroot_preprocess"
36
Patrick Williams213cb262021-08-07 19:21:33 -050037do_install:append() {
Andrew Geisslerd25ed322020-06-27 00:28:28 -050038 install -d ${D}/usr/share/${BPN}/scripts
39 install ${S}/scripts/run-tests.sh ${D}/usr/share/${BPN}/scripts
40 install -d ${D}/usr/share/${BPN}/runner
41 install -D ${B}/runner/igt_runner ${D}/usr/share/${BPN}/runner
42 install -D ${B}/runner/igt_resume ${D}/usr/share/${BPN}/runner
43}
44
Patrick Williams213cb262021-08-07 19:21:33 -050045FILES:${PN}-benchmarks += "${libexecdir}/${BPN}/benchmarks"
46FILES:${PN}-tests += "\
Andrew Geisslerd25ed322020-06-27 00:28:28 -050047 ${libexecdir}/${BPN}/*\
48 ${datadir}/${BPN}/1080p-right.png\
49 ${datadir}/${BPN}/1080p-left.png\
50 ${datadir}/${BPN}/pass.png\
51 ${datadir}/${BPN}/test-list.txt"