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 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 10 | inherit meson pkgconfig |
Andrew Geissler | d25ed32 | 2020-06-27 00:28:28 -0500 | [diff] [blame] | 11 | |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 12 | SRCREV = "203def046b466fb2da67f9f15552d84e1c0b41f2" |
| 13 | PV = "1.26" |
Andrew Geissler | d25ed32 | 2020-06-27 00:28:28 -0500 | [diff] [blame] | 14 | |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 15 | SRC_URI = "git://gitlab.freedesktop.org/drm/igt-gpu-tools.git;protocol=https" |
Andrew Geissler | d25ed32 | 2020-06-27 00:28:28 -0500 | [diff] [blame] | 16 | |
| 17 | S = "${WORKDIR}/git" |
| 18 | |
| 19 | DEPENDS += "libdrm libpciaccess cairo udev glib-2.0 procps libunwind kmod openssl elfutils alsa-lib json-c bison-native" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 20 | RDEPENDS:${PN} += "bash" |
| 21 | RDEPENDS:${PN}-tests += "bash" |
Andrew Geissler | d25ed32 | 2020-06-27 00:28:28 -0500 | [diff] [blame] | 22 | |
| 23 | PACKAGE_BEFORE_PN = "${PN}-benchmarks ${PN}-tests" |
| 24 | |
Andrew Geissler | b7d2861 | 2020-07-24 16:15:54 -0500 | [diff] [blame] | 25 | PACKAGECONFIG[chamelium] = "-Dchamelium=enabled,-Dchamelium=disabled,gsl xmlrpc-c" |
| 26 | |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 27 | 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] | 28 | COMPATIBLE_HOST = "(x86_64.*|i.86.*|arm.*|aarch64).*-linux" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 29 | COMPATIBLE_HOST:libc-musl:class-target = "null" |
Andrew Geissler | d25ed32 | 2020-06-27 00:28:28 -0500 | [diff] [blame] | 30 | SECURITY_LDFLAGS = "${SECURITY_X_LDFLAGS}" |
| 31 | |
| 32 | gputools_sysroot_preprocess() { |
| 33 | rm -f ${SYSROOT_DESTDIR}${libdir}/pkgconfig/intel-gen4asm.pc |
| 34 | } |
| 35 | SYSROOT_PREPROCESS_FUNCS += "gputools_sysroot_preprocess" |
| 36 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 37 | do_install:append() { |
Andrew Geissler | d25ed32 | 2020-06-27 00:28:28 -0500 | [diff] [blame] | 38 | 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 Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 45 | FILES:${PN}-benchmarks += "${libexecdir}/${BPN}/benchmarks" |
| 46 | FILES:${PN}-tests += "\ |
Andrew Geissler | d25ed32 | 2020-06-27 00:28:28 -0500 | [diff] [blame] | 47 | ${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" |