[oe-commits] Steve Sakoman : omap3-sgx-modules: Fix to build for recent linux-omap kernels

git version control git at git.openembedded.org
Tue Oct 12 14:33:43 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: db4c0d8df9ed828e916e471753d2e041b5e69bbd
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=db4c0d8df9ed828e916e471753d2e041b5e69bbd

Author: Steve Sakoman <steve at sakoman.com>
Date:   Thu Oct  7 10:09:03 2010 -0700

omap3-sgx-modules: Fix to build for recent linux-omap kernels

Signed-off-by: Koen Kooi <koen at openembedded.org>

---

 .../0002-Compile-fixes-for-recent-kernels.patch    |   23 ++++++++++++++++++++
 .../omap3-sgx-modules_1.4.14.2616.bb               |    1 +
 2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/recipes/powervr-drivers/omap3-sgx-modules/0002-Compile-fixes-for-recent-kernels.patch b/recipes/powervr-drivers/omap3-sgx-modules/0002-Compile-fixes-for-recent-kernels.patch
new file mode 100644
index 0000000..1ceba8b
--- /dev/null
+++ b/recipes/powervr-drivers/omap3-sgx-modules/0002-Compile-fixes-for-recent-kernels.patch
@@ -0,0 +1,23 @@
+--- GFX_Linux_KM/services4/system/omap3630/sysutils_linux.c-orig	2010-07-30 07:15:01.000000000 -0700
++++ GFX_Linux_KM/services4/system/omap3630/sysutils_linux.c	2010-10-07 07:49:32.000000000 -0700
+@@ -32,6 +32,12 @@
+ #include <asm/bug.h>
+ #include <linux/platform_device.h>
+ 
++#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,33))
++#include <linux/semaphore.h>
++#include <asm-generic/resource.h>
++#include <plat/omap-pm.h>
++#else
++
+ #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,31))
+ #include <linux/semaphore.h>
+ #include <plat/resource.h>
+@@ -49,6 +55,7 @@
+ #endif
+ #endif
+ #endif
++#endif
+ 
+ #if	(LINUX_VERSION_CODE >  KERNEL_VERSION(2,6,27)) && \
+ 	(LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,29))
diff --git a/recipes/powervr-drivers/omap3-sgx-modules_1.4.14.2616.bb b/recipes/powervr-drivers/omap3-sgx-modules_1.4.14.2616.bb
index e6baa04..5c4e15d 100644
--- a/recipes/powervr-drivers/omap3-sgx-modules_1.4.14.2616.bb
+++ b/recipes/powervr-drivers/omap3-sgx-modules_1.4.14.2616.bb
@@ -13,6 +13,7 @@ IMGPV = "1.4.14.2616"
 BINFILE := "Graphics_SDK_setuplinux_${SGXPV}.bin"
 
 SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/Graphics_SDK_setuplinux_${SGXPV}.bin \
+           file://0002-Compile-fixes-for-recent-kernels.patch \
 "
 
 SRC_URI[md5sum] = "a027002dcd7164df467b1a315788d5fd"





More information about the Openembedded-commits mailing list