diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 14:36:22 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 15:32:53 +0200 |
commit | f4cf9fe05bb3f32fabea4e54dd92d368967a80da (patch) | |
tree | 487180fa9866985ea7b28e625651765d86f515c3 /meta/recipes-graphics/drm | |
download | poky-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.inc | 39 | ||||
-rw-r--r-- | meta/recipes-graphics/drm/libdrm/GNU_SOURCE_definition.patch | 30 | ||||
-rw-r--r-- | meta/recipes-graphics/drm/libdrm/installtests.patch | 23 | ||||
-rw-r--r-- | meta/recipes-graphics/drm/libdrm_2.4.52.bb | 8 | ||||
-rw-r--r-- | meta/recipes-graphics/drm/libdrm_git.bb | 12 |
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 @@ | |||
1 | SUMMARY = "Userspace interface to the kernel DRM services" | ||
2 | DESCRIPTION = "The runtime library for accessing the kernel DRM services. DRM \ | ||
3 | stands for \"Direct Rendering Manager\", which is the kernel portion of the \ | ||
4 | \"Direct Rendering Infrastructure\" (DRI). DRI is required for many hardware \ | ||
5 | accelerated OpenGL drivers." | ||
6 | HOMEPAGE = "http://dri.freedesktop.org" | ||
7 | SECTION = "x11/base" | ||
8 | LICENSE = "MIT" | ||
9 | LIC_FILES_CHKSUM = "file://xf86drm.c;beginline=9;endline=32;md5=c8a3b961af7667c530816761e949dc71" | ||
10 | SRC_URI = "http://dri.freedesktop.org/libdrm/libdrm-${PV}.tar.bz2" | ||
11 | PROVIDES = "drm" | ||
12 | DEPENDS = "libpthread-stubs udev" | ||
13 | |||
14 | # be aware that libdrm_2.4.44.bb ignores this | ||
15 | INC_PR = "r4" | ||
16 | |||
17 | #libpciaccess is required starting from libdrm 2.4.26 | ||
18 | DEPENDS += " libpciaccess" | ||
19 | |||
20 | inherit autotools pkgconfig | ||
21 | |||
22 | EXTRA_OECONF += "--disable-cairo-tests \ | ||
23 | --enable-omap-experimental-api \ | ||
24 | --enable-install-test-programs \ | ||
25 | " | ||
26 | ALLOW_EMPTY_${PN}-drivers = "1" | ||
27 | PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau ${PN}-omap \ | ||
28 | ${PN}-intel ${PN}-exynos ${PN}-kms" | ||
29 | |||
30 | RRECOMMENDS_${PN}-drivers = "${PN}-radeon ${PN}-nouveau ${PN}-omap ${PN}-intel \ | ||
31 | ${PN}-exynos" | ||
32 | |||
33 | FILES_${PN}-tests = "${bindir}/dr* ${bindir}/mode* ${bindir}/*test" | ||
34 | FILES_${PN}-radeon = "${libdir}/libdrm_radeon.so.*" | ||
35 | FILES_${PN}-nouveau = "${libdir}/libdrm_nouveau.so.*" | ||
36 | FILES_${PN}-omap = "${libdir}/libdrm_omap.so.*" | ||
37 | FILES_${PN}-intel = "${libdir}/libdrm_intel.so.*" | ||
38 | FILES_${PN}-exynos = "${libdir}/libdrm_exynos.so.*" | ||
39 | 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 0000000000..8eb1d5e1ea --- /dev/null +++ b/meta/recipes-graphics/drm/libdrm/GNU_SOURCE_definition.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | uclibc headers need to know if _GNU_SOURCE is defined or not and its defined | ||
2 | in config.h so include it first to get the definition if its there fixed build | ||
3 | problems on uclibc | ||
4 | |||
5 | test_decode.c:107:2: error: implicit declaration of function 'open_memstream' [-Werror=implicit-function-declaration] | ||
6 | |||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Index: 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 @@ | |||
1 | tests: also install tests app | ||
2 | |||
3 | Upstream-Status: Inappropriate [configuration] | ||
4 | |||
5 | Signed-off-by: Yu Ke <ke.yu@intel.com> | ||
6 | |||
7 | diff --git a/tests/Makefile.am b/tests/Makefile.am | ||
8 | index 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 @@ | |||
1 | require libdrm.inc | ||
2 | |||
3 | SRC_URI += "file://installtests.patch \ | ||
4 | file://GNU_SOURCE_definition.patch \ | ||
5 | " | ||
6 | SRC_URI[md5sum] = "01b75624a5da3a7543923e54c3547a24" | ||
7 | SRC_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 @@ | |||
1 | require libdrm.inc | ||
2 | |||
3 | SRC_URI = "git://anongit.freedesktop.org/git/mesa/drm" | ||
4 | |||
5 | S = "${WORKDIR}/git" | ||
6 | |||
7 | DEFAULT_PREFERENCE = "-1" | ||
8 | |||
9 | SRCREV = "e01d68f9f3acfc35fe164283904b5d058c2ab378" | ||
10 | PV = "2.4.40+git${SRCPV}" | ||
11 | PR = "${INC_PR}.0" | ||
12 | |||