omap3-sgx-modules: Fix to build for recent linux-omap kernels
authorSteve Sakoman <steve@sakoman.com>
Thu, 7 Oct 2010 17:09:03 +0000 (10:09 -0700)
committerKoen Kooi <koen@openembedded.org>
Tue, 12 Oct 2010 14:30:14 +0000 (16:30 +0200)
Signed-off-by: Koen Kooi <koen@openembedded.org>
recipes/powervr-drivers/omap3-sgx-modules/0002-Compile-fixes-for-recent-kernels.patch [new file with mode: 0644]
recipes/powervr-drivers/omap3-sgx-modules_1.4.14.2616.bb

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 (file)
index 0000000..1ceba8b
--- /dev/null
@@ -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))
index e6baa04..5c4e15d 100644 (file)
@@ -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"