summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/drm
diff options
context:
space:
mode:
authorAdrian Dudau <adrian.dudau@enea.com>2014-06-26 14:36:22 +0200
committerAdrian Dudau <adrian.dudau@enea.com>2014-06-26 15:32:53 +0200
commitf4cf9fe05bb3f32fabea4e54dd92d368967a80da (patch)
tree487180fa9866985ea7b28e625651765d86f515c3 /meta/recipes-graphics/drm
downloadpoky-f4cf9fe05bb3f32fabea4e54dd92d368967a80da.tar.gz
initial commit for Enea Linux 4.0
Migrated from the internal git server on the daisy-enea branch Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-graphics/drm')
-rw-r--r--meta/recipes-graphics/drm/libdrm.inc39
-rw-r--r--meta/recipes-graphics/drm/libdrm/GNU_SOURCE_definition.patch30
-rw-r--r--meta/recipes-graphics/drm/libdrm/installtests.patch23
-rw-r--r--meta/recipes-graphics/drm/libdrm_2.4.52.bb8
-rw-r--r--meta/recipes-graphics/drm/libdrm_git.bb12
5 files changed, 112 insertions, 0 deletions
diff --git a/meta/recipes-graphics/drm/libdrm.inc b/meta/recipes-graphics/drm/libdrm.inc
new file mode 100644
index 0000000000..1b2ffeb8e7
--- /dev/null
+++ b/meta/recipes-graphics/drm/libdrm.inc
@@ -0,0 +1,39 @@
1SUMMARY = "Userspace interface to the kernel DRM services"
2DESCRIPTION = "The runtime library for accessing the kernel DRM services. DRM \
3stands for \"Direct Rendering Manager\", which is the kernel portion of the \
4\"Direct Rendering Infrastructure\" (DRI). DRI is required for many hardware \
5accelerated OpenGL drivers."
6HOMEPAGE = "http://dri.freedesktop.org"
7SECTION = "x11/base"
8LICENSE = "MIT"
9LIC_FILES_CHKSUM = "file://xf86drm.c;beginline=9;endline=32;md5=c8a3b961af7667c530816761e949dc71"
10SRC_URI = "http://dri.freedesktop.org/libdrm/libdrm-${PV}.tar.bz2"
11PROVIDES = "drm"
12DEPENDS = "libpthread-stubs udev"
13
14# be aware that libdrm_2.4.44.bb ignores this
15INC_PR = "r4"
16
17#libpciaccess is required starting from libdrm 2.4.26
18DEPENDS += " libpciaccess"
19
20inherit autotools pkgconfig
21
22EXTRA_OECONF += "--disable-cairo-tests \
23 --enable-omap-experimental-api \
24 --enable-install-test-programs \
25 "
26ALLOW_EMPTY_${PN}-drivers = "1"
27PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau ${PN}-omap \
28 ${PN}-intel ${PN}-exynos ${PN}-kms"
29
30RRECOMMENDS_${PN}-drivers = "${PN}-radeon ${PN}-nouveau ${PN}-omap ${PN}-intel \
31 ${PN}-exynos"
32
33FILES_${PN}-tests = "${bindir}/dr* ${bindir}/mode* ${bindir}/*test"
34FILES_${PN}-radeon = "${libdir}/libdrm_radeon.so.*"
35FILES_${PN}-nouveau = "${libdir}/libdrm_nouveau.so.*"
36FILES_${PN}-omap = "${libdir}/libdrm_omap.so.*"
37FILES_${PN}-intel = "${libdir}/libdrm_intel.so.*"
38FILES_${PN}-exynos = "${libdir}/libdrm_exynos.so.*"
39FILES_${PN}-kms = "${libdir}/libkms*.so.*"
diff --git a/meta/recipes-graphics/drm/libdrm/GNU_SOURCE_definition.patch b/meta/recipes-graphics/drm/libdrm/GNU_SOURCE_definition.patch
new file mode 100644
index 0000000000..8eb1d5e1ea
--- /dev/null
+++ b/meta/recipes-graphics/drm/libdrm/GNU_SOURCE_definition.patch
@@ -0,0 +1,30 @@
1uclibc headers need to know if _GNU_SOURCE is defined or not and its defined
2in config.h so include it first to get the definition if its there fixed build
3problems on uclibc
4
5test_decode.c:107:2: error: implicit declaration of function 'open_memstream' [-Werror=implicit-function-declaration]
6
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8Upstream-Status: Pending
9
10Index: libdrm-2.4.30/intel/test_decode.c
11===================================================================
12--- libdrm-2.4.30.orig/intel/test_decode.c 2012-02-03 14:28:46.409355918 -0800
13+++ libdrm-2.4.30/intel/test_decode.c 2012-02-03 14:29:02.357356689 -0800
14@@ -21,6 +21,8 @@
15 * IN THE SOFTWARE.
16 */
17
18+#include "config.h"
19+
20 #include <string.h>
21 #include <stdlib.h>
22 #include <stdio.h>
23@@ -31,7 +33,6 @@
24 #include <sys/mman.h>
25 #include <err.h>
26
27-#include "config.h"
28 #include "intel_bufmgr.h"
29 #include "intel_chipset.h"
30
diff --git a/meta/recipes-graphics/drm/libdrm/installtests.patch b/meta/recipes-graphics/drm/libdrm/installtests.patch
new file mode 100644
index 0000000000..7d443af663
--- /dev/null
+++ b/meta/recipes-graphics/drm/libdrm/installtests.patch
@@ -0,0 +1,23 @@
1tests: also install tests app
2
3Upstream-Status: Inappropriate [configuration]
4
5Signed-off-by: Yu Ke <ke.yu@intel.com>
6
7diff --git a/tests/Makefile.am b/tests/Makefile.am
8index bf1987f..d909e19 100644
9--- a/tests/Makefile.am
10+++ b/tests/Makefile.am
11@@ -6,10 +6,11 @@ AM_CPPFLAGS = \
12
13 LDADD = $(top_builddir)/libdrm.la
14
15-check_PROGRAMS = \
16+bin_PROGRAMS = \
17 dristat \
18 drmstat
19
20+check_PROGRAMS =
21 SUBDIRS = modeprint
22
23 if HAVE_LIBKMS
diff --git a/meta/recipes-graphics/drm/libdrm_2.4.52.bb b/meta/recipes-graphics/drm/libdrm_2.4.52.bb
new file mode 100644
index 0000000000..75b18462b2
--- /dev/null
+++ b/meta/recipes-graphics/drm/libdrm_2.4.52.bb
@@ -0,0 +1,8 @@
1require libdrm.inc
2
3SRC_URI += "file://installtests.patch \
4 file://GNU_SOURCE_definition.patch \
5 "
6SRC_URI[md5sum] = "01b75624a5da3a7543923e54c3547a24"
7SRC_URI[sha256sum] = "fa693c2f1f61befcefbdcc396673e38481110bac9db610afa4b8afb2be0218c1"
8
diff --git a/meta/recipes-graphics/drm/libdrm_git.bb b/meta/recipes-graphics/drm/libdrm_git.bb
new file mode 100644
index 0000000000..d7245ee865
--- /dev/null
+++ b/meta/recipes-graphics/drm/libdrm_git.bb
@@ -0,0 +1,12 @@
1require libdrm.inc
2
3SRC_URI = "git://anongit.freedesktop.org/git/mesa/drm"
4
5S = "${WORKDIR}/git"
6
7DEFAULT_PREFERENCE = "-1"
8
9SRCREV = "e01d68f9f3acfc35fe164283904b5d058c2ab378"
10PV = "2.4.40+git${SRCPV}"
11PR = "${INC_PR}.0"
12