diff options
Diffstat (limited to 'meta/recipes-graphics/drm')
| -rw-r--r-- | meta/recipes-graphics/drm/libdrm.inc | 22 | ||||
| -rw-r--r-- | meta/recipes-graphics/drm/libdrm/GNU_SOURCE_definition.patch | 30 | ||||
| -rw-r--r-- | meta/recipes-graphics/drm/libdrm/installtests.patch | 49 | ||||
| -rw-r--r-- | meta/recipes-graphics/drm/libdrm_2.4.31.bb | 12 | ||||
| -rw-r--r-- | meta/recipes-graphics/drm/libdrm_git.bb | 9 |
5 files changed, 122 insertions, 0 deletions
diff --git a/meta/recipes-graphics/drm/libdrm.inc b/meta/recipes-graphics/drm/libdrm.inc new file mode 100644 index 000000000..20d7f1fc9 --- /dev/null +++ b/meta/recipes-graphics/drm/libdrm.inc @@ -0,0 +1,22 @@ +SUMMARY = "Userspace interface to the kernel DRM services" +DESCRIPTION = "The runtime library for accessing the kernel DRM services. DRM \ +stands for \"Direct Rendering Manager\", which is the kernel portion of the \ +\"Direct Rendering Infrastructure\" (DRI). DRI is required for many hardware \ +accelerated OpenGL drivers." +HOMEPAGE = "http://dri.freedesktop.org" +SECTION = "x11/base" +LICENSE = "MIT" +SRC_URI = "http://dri.freedesktop.org/libdrm/libdrm-${PV}.tar.bz2" +PROVIDES = "drm" +DEPENDS = "libpthread-stubs udev cairo virtual/libx11" + +#libpciaccess is required starting from libdrm 2.4.26 +DEPENDS += " libpciaccess" + +inherit autotools pkgconfig + +PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-kms" +FILES_${PN}-tests = "${bindir}/dr* ${bindir}/mode*" +FILES_${PN}-drivers = "${libdir}/libdrm_*.so.*" +FILES_${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 000000000..8eb1d5e1e --- /dev/null +++ b/meta/recipes-graphics/drm/libdrm/GNU_SOURCE_definition.patch @@ -0,0 +1,30 @@ +uclibc headers need to know if _GNU_SOURCE is defined or not and its defined +in config.h so include it first to get the definition if its there fixed build +problems on uclibc + +test_decode.c:107:2: error: implicit declaration of function 'open_memstream' [-Werror=implicit-function-declaration] + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +Upstream-Status: Pending + +Index: libdrm-2.4.30/intel/test_decode.c +=================================================================== +--- libdrm-2.4.30.orig/intel/test_decode.c 2012-02-03 14:28:46.409355918 -0800 ++++ libdrm-2.4.30/intel/test_decode.c 2012-02-03 14:29:02.357356689 -0800 +@@ -21,6 +21,8 @@ + * IN THE SOFTWARE. + */ + ++#include "config.h" ++ + #include <string.h> + #include <stdlib.h> + #include <stdio.h> +@@ -31,7 +33,6 @@ + #include <sys/mman.h> + #include <err.h> + +-#include "config.h" + #include "intel_bufmgr.h" + #include "intel_chipset.h" + diff --git a/meta/recipes-graphics/drm/libdrm/installtests.patch b/meta/recipes-graphics/drm/libdrm/installtests.patch new file mode 100644 index 000000000..1f39719a0 --- /dev/null +++ b/meta/recipes-graphics/drm/libdrm/installtests.patch @@ -0,0 +1,49 @@ +tests: also install tests app + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Yu Ke <ke.yu@intel.com> + +diff --git a/tests/Makefile.am b/tests/Makefile.am +index bf1987f..d909e19 100644 +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -6,10 +6,11 @@ AM_CPPFLAGS = \ + + LDADD = $(top_builddir)/libdrm.la + +-check_PROGRAMS = \ ++bin_PROGRAMS = \ + dristat \ + drmstat + ++check_PROGRAMS = + SUBDIRS = modeprint + + if HAVE_LIBKMS +diff --git a/tests/modeprint/Makefile.am b/tests/modeprint/Makefile.am +index c4862ac..7db76ea 100644 +--- a/tests/modeprint/Makefile.am ++++ b/tests/modeprint/Makefile.am +@@ -2,7 +2,7 @@ AM_CFLAGS = \ + -I$(top_srcdir)/include/drm \ + -I$(top_srcdir) + +-noinst_PROGRAMS = \ ++bin_PROGRAMS = \ + modeprint + + modeprint_SOURCES = \ +diff --git a/tests/modetest/Makefile.am b/tests/modetest/Makefile.am +index 2191242..1d2c1b0 100644 +--- a/tests/modetest/Makefile.am ++++ b/tests/modetest/Makefile.am +@@ -4,7 +4,7 @@ AM_CFLAGS = \ + -I$(top_srcdir) \ + $(CAIRO_CFLAGS) + +-noinst_PROGRAMS = \ ++bin_PROGRAMS = \ + modetest + + modetest_SOURCES = \ diff --git a/meta/recipes-graphics/drm/libdrm_2.4.31.bb b/meta/recipes-graphics/drm/libdrm_2.4.31.bb new file mode 100644 index 000000000..6aa054292 --- /dev/null +++ b/meta/recipes-graphics/drm/libdrm_2.4.31.bb @@ -0,0 +1,12 @@ +require libdrm.inc + +LIC_FILES_CHKSUM = "file://xf86drm.c;beginline=9;endline=32;md5=c8a3b961af7667c530816761e949dc71" + +PR = "r0" + +SRC_URI += "file://installtests.patch \ + file://GNU_SOURCE_definition.patch \ + " + +SRC_URI[md5sum] = "b8cf744ec113c6028fe0975b1133b649" +SRC_URI[sha256sum] = "8fc7e0e5b2f9bf493447a4ef7adc49174a700824457774cb53c1b8f2da866af4" diff --git a/meta/recipes-graphics/drm/libdrm_git.bb b/meta/recipes-graphics/drm/libdrm_git.bb new file mode 100644 index 000000000..c2f9855d3 --- /dev/null +++ b/meta/recipes-graphics/drm/libdrm_git.bb @@ -0,0 +1,9 @@ +require libdrm.inc + +SRC_URI = "git://anongit.freedesktop.org/git/mesa/drm;protocol=git" + +S = "${WORKDIR}/git" + +SRCREV = "3f3c5be6f908272199ccf53f108b1124bfe0a00e" +PV = "2.4.15+git${SRCPV}" +PR = "r1" |
