summaryrefslogtreecommitdiff
path: root/packages/dri
diff options
context:
space:
mode:
Diffstat (limited to 'packages/dri')
-rw-r--r--packages/dri/drm-kernel_cvs.bb29
-rw-r--r--packages/dri/drm_cvs.bb23
2 files changed, 52 insertions, 0 deletions
diff --git a/packages/dri/drm-kernel_cvs.bb b/packages/dri/drm-kernel_cvs.bb
index e69de29bb2..7a1c7befa8 100644
--- a/packages/dri/drm-kernel_cvs.bb
+++ b/packages/dri/drm-kernel_cvs.bb
@@ -0,0 +1,29 @@
+SECTION = "x11/base"
+PR = "r1"
+LICENSE = "MIT"
+
+SRC_URI = "cvs://anoncvs@dri.freedesktop.org/cvs/dri;module=drm;method=pserver"
+
+inherit module-base
+
+PV = "0.0cvs${CVSDATE}"
+S = "${WORKDIR}/drm"
+
+do_compile() {
+ oe_runmake -C linux LINUXDIR="${KERNEL_SOURCE}"
+}
+
+do_install() {
+ install -d ${D}/lib/modules/${KERNEL_VERSION}/drm
+ cd linux
+ for i in *.ko; do install -m 0644 $i ${D}/lib/modules/${KERNEL_VERSION}/drm/; done
+}
+
+python populate_packages_prepend () {
+ root = bb.data.expand('/lib/modules/${KERNEL_VERSION}/drm', d)
+
+ do_split_packages(d, root, '^(.*)\.ko$',
+ output_pattern='drm-module-%s',
+ description='DRM driver module for %s',
+ extra_depends='')
+}
diff --git a/packages/dri/drm_cvs.bb b/packages/dri/drm_cvs.bb
index e69de29bb2..4bf3a38402 100644
--- a/packages/dri/drm_cvs.bb
+++ b/packages/dri/drm_cvs.bb
@@ -0,0 +1,23 @@
+SECTION = "x11/base"
+LICENSE = "MIT"
+SRC_URI = "cvs://anoncvs@dri.freedesktop.org/cvs/dri;module=drm;method=pserver \
+ file://config.patch;patch=1"
+
+PV = "0.0cvs${CVSDATE}"
+PR = "r1"
+
+S = "${WORKDIR}/drm"
+
+do_compile() {
+ oe_runmake -C libdrm
+}
+
+do_stage() {
+ oe_libinstall -a -C libdrm libxf86drm ${STAGING_LIBDIR}
+ for i in xf86drmCompat.h xf86drm.h; do
+ install -m 0644 libdrm/$i ${STAGING_INCDIR}
+ done
+ for i in drm.h; do
+ install -m 0644 shared/$i ${STAGING_INCDIR}
+ done
+}