summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-graphics/drm/libdrm/0001-configure.ac-Allow-explicit-enabling-of-cunit-tests.patch53
-rw-r--r--meta/recipes-graphics/drm/libdrm/installtests.patch25
-rw-r--r--meta/recipes-graphics/drm/libdrm/musl-ioctl.patch35
-rw-r--r--meta/recipes-graphics/drm/libdrm_2.4.92.bb22
4 files changed, 44 insertions, 91 deletions
diff --git a/meta/recipes-graphics/drm/libdrm/0001-configure.ac-Allow-explicit-enabling-of-cunit-tests.patch b/meta/recipes-graphics/drm/libdrm/0001-configure.ac-Allow-explicit-enabling-of-cunit-tests.patch
deleted file mode 100644
index 40bebc0f50..0000000000
--- a/meta/recipes-graphics/drm/libdrm/0001-configure.ac-Allow-explicit-enabling-of-cunit-tests.patch
+++ /dev/null
@@ -1,53 +0,0 @@
1From e6bd4205b0b546afe991ae6f72256645f4404ad4 Mon Sep 17 00:00:00 2001
2From: Jussi Kukkonen <jussi.kukkonen@intel.com>
3Date: Mon, 5 Sep 2016 14:41:37 +0300
4Subject: [PATCH libdrm] configure.ac: Allow explicit enabling of cunit tests
5
6Add --with-cunit to make it easier to do reproducible builds. Default
7is still to probe cunit and build opportunistically.
8
9Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
10Upstream-Status: Submitted [mailing list]
11---
12 configure.ac | 14 ++++++++++++--
13 1 file changed, 12 insertions(+), 2 deletions(-)
14
15Index: libdrm-2.4.91/configure.ac
16===================================================================
17--- libdrm-2.4.91.orig/configure.ac
18+++ libdrm-2.4.91/configure.ac
19@@ -163,6 +163,12 @@ AC_ARG_ENABLE(install-test-programs,
20 [Install test programs (default: no)]),
21 [INSTALL_TESTS=$enableval], [INSTALL_TESTS=no])
22
23+AC_ARG_WITH([cunit],
24+ [AS_HELP_STRING([--with-cunit],
25+ [Build tests that use cunit (default: auto)])],
26+ [],
27+ [with_cunit=auto])
28+
29 dnl ===========================================================================
30 dnl check compiler flags
31 AC_DEFUN([LIBDRM_CC_TRY_FLAG], [
32@@ -411,7 +417,7 @@ else
33 AC_DEFINE(HAVE_RADEON, 0)
34 fi
35
36-if test "x$AMDGPU" != xno; then
37+if test "x$with_cunit" != xno -a "x$AMDGPU" != xno; then
38 # Detect cunit library
39 PKG_CHECK_MODULES([CUNIT], [cunit >= 2.1], [have_cunit=yes], [have_cunit=no])
40 # If pkg-config does not find cunit, check it using AC_CHECK_LIB. We
41@@ -436,7 +442,11 @@ if test "x$AMDGPU" = xyes; then
42 AC_DEFINE(HAVE_AMDGPU, 1, [Have amdgpu support])
43
44 if test "x$have_cunit" = "xno"; then
45- AC_MSG_WARN([Could not find cunit library. Disabling amdgpu tests])
46+ if test "x$with_cunit" = "xyes"; then
47+ AC_MSG_ERROR([Could not find cunit library but --with-cunit was given])
48+ elif test "x$with_cunit" = "xauto"; then
49+ AC_MSG_WARN([Could not find cunit library. Disabling amdgpu tests])
50+ fi
51 fi
52 else
53 AC_DEFINE(HAVE_AMDGPU, 0)
diff --git a/meta/recipes-graphics/drm/libdrm/installtests.patch b/meta/recipes-graphics/drm/libdrm/installtests.patch
deleted file mode 100644
index ec1fb0236e..0000000000
--- a/meta/recipes-graphics/drm/libdrm/installtests.patch
+++ /dev/null
@@ -1,25 +0,0 @@
1From 5c6eb43c2f6e7f2ee7c25c92e42f4e4403fa0527 Mon Sep 17 00:00:00 2001
2From: Jussi Kukkonen <jussi.kukkonen@intel.com>
3Date: Tue, 21 Feb 2017 14:37:52 +0200
4Subject: [PATCH] tests: also install test apps
5
6Upstream-Status: Inappropriate [configuration]
7
8Signed-off-by: Yu Ke <ke.yu@intel.com>
9Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
10---
11 tests/Makefile.am | 1 +
12 1 file changed, 1 insertion(+)
13
14diff --git a/tests/Makefile.am b/tests/Makefile.am
15index 0355a92..b4882cd 100644
16--- a/tests/Makefile.am
17+++ b/tests/Makefile.am
18@@ -45,3 +45,4 @@ TESTS = \
19 check_PROGRAMS = \
20 $(TESTS) \
21 drmdevice
22+bin_PROGRAMS = $(check_PROGRAMS)
23--
242.1.4
25
diff --git a/meta/recipes-graphics/drm/libdrm/musl-ioctl.patch b/meta/recipes-graphics/drm/libdrm/musl-ioctl.patch
new file mode 100644
index 0000000000..e3d6c5b853
--- /dev/null
+++ b/meta/recipes-graphics/drm/libdrm/musl-ioctl.patch
@@ -0,0 +1,35 @@
1Upstream-Status: Submitted
2Signed-off-by: Ross Burton <ross.burton@intel.com>
3
4From 46c0fd6c827a8cb4d04e067bf04fab579ac4712e Mon Sep 17 00:00:00 2001
5From: Ross Burton <ross.burton@intel.com>
6Date: Mon, 18 Jun 2018 15:07:03 +0100
7Subject: [PATCH] tests/nouveau/threaded: adapt ioctl signature
8
9POSIX says ioctl() has the signature (int, int, ...) but glibc has decided to
10use (int, unsigned long int, ...) instead.
11
12Use a #ifdef to adapt the replacement function as appropriate.
13---
14 tests/nouveau/threaded.c | 4 ++++
15 1 file changed, 4 insertions(+)
16
17diff --git a/tests/nouveau/threaded.c b/tests/nouveau/threaded.c
18index 3669bcd3..e1c27c01 100644
19--- a/tests/nouveau/threaded.c
20+++ b/tests/nouveau/threaded.c
21@@ -36,7 +36,11 @@ static int failed;
22
23 static int import_fd;
24
25+#ifdef __GLIBC__
26 int ioctl(int fd, unsigned long request, ...)
27+#else
28+int ioctl(int fd, int request, ...)
29+#endif
30 {
31 va_list va;
32 int ret;
33--
342.11.0
35
diff --git a/meta/recipes-graphics/drm/libdrm_2.4.92.bb b/meta/recipes-graphics/drm/libdrm_2.4.92.bb
index 2b3bf4f83d..347090cd5f 100644
--- a/meta/recipes-graphics/drm/libdrm_2.4.92.bb
+++ b/meta/recipes-graphics/drm/libdrm_2.4.92.bb
@@ -11,23 +11,19 @@ PROVIDES = "drm"
11DEPENDS = "libpthread-stubs libpciaccess" 11DEPENDS = "libpthread-stubs libpciaccess"
12 12
13SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.bz2 \ 13SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.bz2 \
14 file://installtests.patch \ 14 file://musl-ioctl.patch"
15 file://0001-configure.ac-Allow-explicit-enabling-of-cunit-tests.patch \
16 "
17
18SRC_URI[md5sum] = "f9b00d985f82d0be6ecc20c799acc89e" 15SRC_URI[md5sum] = "f9b00d985f82d0be6ecc20c799acc89e"
19SRC_URI[sha256sum] = "e9e48fdb4de139dc4d9880aa1473158a16ff6aff63d14341367bd30a51ff39fa" 16SRC_URI[sha256sum] = "e9e48fdb4de139dc4d9880aa1473158a16ff6aff63d14341367bd30a51ff39fa"
20 17
21inherit autotools pkgconfig manpages 18inherit meson pkgconfig manpages
19
20EXTRA_OEMESON = "-Dvalgrind=false \
21 -Dcairo-tests=false \
22 -Dinstall-test-programs=true \
23 -Domap=true \
24 -Detnaviv=true"
22 25
23EXTRA_OECONF += "--disable-cairo-tests \ 26PACKAGECONFIG[manpages] = "-Dman-pages=true,-Dman-pages=false,libxslt-native xmlto-native"
24 --without-cunit \
25 --enable-omap-experimental-api \
26 --enable-etnaviv-experimental-api \
27 --enable-install-test-programs \
28 --disable-valgrind \
29 "
30PACKAGECONFIG[manpages] = "--enable-manpages, --disable-manpages, libxslt-native xmlto-native"
31 27
32ALLOW_EMPTY_${PN}-drivers = "1" 28ALLOW_EMPTY_${PN}-drivers = "1"
33PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau ${PN}-omap \ 29PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau ${PN}-omap \