[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#667572: libdrm: please provide OMAP API on armel and armhf



tags 667572 patch
thanks

Hi,

The attached patch is tested on armhf. It works together
with the 3.3 kernel available from Debian experimental (after
applying small changes to it, so that the KMS API is built)
and the latest xf86-video-omap stable release.

Please upload it sometime soon, so that I can upload a new
version of xf86-video-omap using the DRM API.

-- Sebastian
commit 5b2984f5fc8f268c721ba30cfe1569aeeea4cd2e
Author: Sebastian Reichel <sre@debian.org>
Date:   Sun May 6 00:59:16 2012 +0200

    add omap binding

diff --git a/debian/changelog b/debian/changelog
index a8131f0..7c2d846 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+libdrm (2.4.33-1.1) unstable; urgency=low
+
+  * Add omap binding
+
+ -- Sebastian Reichel <sre@debian.org>  Sun, 06 May 2012 00:55:13 +0200
+
 libdrm (2.4.33-1) unstable; urgency=low
 
   * New upstream release.
diff --git a/debian/control b/debian/control
index 71d057b..2225858 100644
--- a/debian/control
+++ b/debian/control
@@ -101,6 +101,36 @@ Description: Userspace interface to intel-specific kernel DRM services -- debugg
  .
  This package provides the debugging symbols for the libdrm-intel1 package.
 
+Package: libdrm-omap1
+Section: libs
+Architecture: armel armhf
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
+Description: Userspace interface to omap-specific kernel DRM services -- runtime
+ This library implements the userspace interface to the omap-specific kernel
+ DRM services.  DRM stands for "Direct Rendering Manager", which is the
+ kernelspace portion of the "Direct Rendering Infrastructure" (DRI). The DRI is
+ currently used on Linux to provide hardware-accelerated OpenGL drivers.
+
+Package: libdrm-omap1-dbg
+Section: debug
+Priority: extra
+Architecture: armel armhf
+Depends:
+ libdrm-omap1 (= ${binary:Version}),
+ ${misc:Depends},
+Multi-Arch: same
+Description: Userspace interface to omap-specific kernel DRM services -- debugging symbols
+ This library implements the userspace interface to the kernel DRM services.
+ DRM stands for "Direct Rendering Manager", which is the kernelspace portion
+ of the "Direct Rendering Infrastructure" (DRI). The DRI is currently used on
+ Linux to provide hardware-accelerated OpenGL drivers.
+ .
+ This package provides the debugging symbols for the libdrm-omap1 package.
+
 Package: libdrm-nouveau1a
 Section: libs
 Architecture: linux-any
diff --git a/debian/libdrm-omap1.install b/debian/libdrm-omap1.install
new file mode 100644
index 0000000..b775d44
--- /dev/null
+++ b/debian/libdrm-omap1.install
@@ -0,0 +1 @@
+usr/lib/*/libdrm_omap.so.1*
diff --git a/debian/libdrm-omap1.symbols b/debian/libdrm-omap1.symbols
new file mode 100644
index 0000000..5ad0f17
--- /dev/null
+++ b/debian/libdrm-omap1.symbols
@@ -0,0 +1,15 @@
+libdrm_omap.so.1 libdrm-omap1 #MINVER#
+ omap_bo_cpu_fini@Base 2.4.33
+ omap_bo_cpu_prep@Base 2.4.33
+ omap_bo_del@Base 2.4.33
+ omap_bo_from_name@Base 2.4.33
+ omap_bo_get_name@Base 2.4.33
+ omap_bo_handle@Base 2.4.33
+ omap_bo_map@Base 2.4.33
+ omap_bo_new@Base 2.4.33
+ omap_bo_new_tiled@Base 2.4.33
+ omap_bo_size@Base 2.4.33
+ omap_device_del@Base 2.4.33
+ omap_device_new@Base 2.4.33
+ omap_get_param@Base 2.4.33
+ omap_set_param@Base 2.4.33
diff --git a/debian/rules b/debian/rules
index 4c296ea..b3cf2dc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -29,6 +29,18 @@ else
 	RADEON = no
 endif
 
+# Omap is only on arm
+ifneq (,$(filter arm,$(DEB_HOST_ARCH_CPU)))
+ifneq (,$(filter linux,$(DEB_HOST_ARCH_OS)))
+	OMAP = yes
+endif
+endif
+ifeq ($(OMAP), yes)
+	confflags += --enable-omap-experimental-api
+else
+	confflags += --disable-omap-experimental-api
+endif
+
 # Intel is only on x86:
 ifneq (,$(filter amd64 i386,$(DEB_HOST_ARCH_CPU)))
 ifneq (,$(filter linux kfreebsd,$(DEB_HOST_ARCH_OS)))
@@ -69,6 +81,9 @@ endif
 ifeq ($(RADEON), yes)
 	dh_strip -plibdrm-radeon1 --dbg-package=libdrm-radeon1-dbg
 endif
+ifeq ($(OMAP), yes)
+	dh_strip -plibdrm-omap1 --dbg-package=libdrm-omap1-dbg
+endif
 ifeq ($(LIBKMS), yes)
 	dh_strip -p libkms1 --dbg-package=libkms1-dbg
 endif
@@ -85,6 +100,9 @@ endif
 ifeq ($(RADEON), yes)
 	dh_makeshlibs -plibdrm-radeon1 -V'libdrm-radeon1 (>= 2.4.31)' -- -c4
 endif
+ifeq ($(OMAP), yes)
+	dh_makeshlibs -plibdrm-omap1 -V'libdrm-omap1 (>= 2.4.33)' -- -c4
+endif
 ifeq ($(LIBKMS), yes)
 	dh_makeshlibs -plibkms1 -V'libkms1' -- -c4
 endif

Attachment: signature.asc
Description: Digital signature


Reply to: