Andrew Geissler | d25ed32 | 2020-06-27 00:28:28 -0500 | [diff] [blame] | 1 | SUMMARY = "IGT GPU Tools" |
| 2 | DESCRIPTION = "IGT GPU Tools is a collection of tools for development and testing of the DRM drivers" |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 3 | HOMEPAGE = "https://gitlab.freedesktop.org/drm/igt-gpu-tools" |
| 4 | BUGTRACKER = "https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues" |
Andrew Geissler | d25ed32 | 2020-06-27 00:28:28 -0500 | [diff] [blame] | 5 | |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=67bfee4df38fa6ecbe3a675c552d4c08" |
| 7 | |
| 8 | LICENSE = "MIT" |
| 9 | |
| 10 | inherit meson |
| 11 | |
| 12 | SRCREV = "d16ad07e7f2a028e14d61f570931c87fa5ce404c" |
| 13 | PV = "1.25+git${SRCPV}" |
| 14 | |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 15 | SRC_URI = "git://gitlab.freedesktop.org/drm/igt-gpu-tools.git;protocol=https \ |
| 16 | file://0001-lib-igt_edid-Allocate-raw-8-bytes-for-VSDB.patch \ |
| 17 | file://reproducibility.patch" |
Andrew Geissler | d25ed32 | 2020-06-27 00:28:28 -0500 | [diff] [blame] | 18 | |
| 19 | S = "${WORKDIR}/git" |
| 20 | |
| 21 | DEPENDS += "libdrm libpciaccess cairo udev glib-2.0 procps libunwind kmod openssl elfutils alsa-lib json-c bison-native" |
| 22 | RDEPENDS_${PN} += "bash" |
| 23 | RDEPENDS_${PN}-tests += "bash" |
| 24 | |
| 25 | PACKAGE_BEFORE_PN = "${PN}-benchmarks ${PN}-tests" |
| 26 | |
Andrew Geissler | b7d2861 | 2020-07-24 16:15:54 -0500 | [diff] [blame] | 27 | PACKAGECONFIG[chamelium] = "-Dchamelium=enabled,-Dchamelium=disabled,gsl xmlrpc-c" |
| 28 | |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 29 | EXTRA_OEMESON = "-Ddocs=disabled -Drunner=enabled -Dsrcdir=/usr/src/debug/${PN}/${PV}-${PR}/git/" |
Andrew Geissler | d25ed32 | 2020-06-27 00:28:28 -0500 | [diff] [blame] | 30 | COMPATIBLE_HOST = "(x86_64.*|i.86.*|arm.*|aarch64).*-linux" |
| 31 | COMPATIBLE_HOST_libc-musl_class-target = "null" |
| 32 | SECURITY_LDFLAGS = "${SECURITY_X_LDFLAGS}" |
| 33 | |
| 34 | gputools_sysroot_preprocess() { |
| 35 | rm -f ${SYSROOT_DESTDIR}${libdir}/pkgconfig/intel-gen4asm.pc |
| 36 | } |
| 37 | SYSROOT_PREPROCESS_FUNCS += "gputools_sysroot_preprocess" |
| 38 | |
| 39 | do_install_append() { |
| 40 | 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 | |
| 47 | FILES_${PN}-benchmarks += "${libexecdir}/${BPN}/benchmarks" |
| 48 | FILES_${PN}-tests += "\ |
| 49 | ${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" |