[oe-commits] Koen Kooi : omap3 sgx modules: make proc interface patch use proper kernel version macros, courtesy Bin Liu

git version control git at git.openembedded.org
Thu Oct 22 09:30:02 UTC 2009


Module: openembedded.git
Branch: shr/merge
Commit: 213bf9c00e99b81df64d302932944bdbc6f9ed65
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=213bf9c00e99b81df64d302932944bdbc6f9ed65

Author: Koen Kooi <koen at openembedded.org>
Date:   Sun Oct 18 15:30:13 2009 +0200

omap3 sgx modules: make proc interface patch use proper kernel version macros, courtesy Bin Liu

---

 .../omap3-sgx-modules/proc-interface.patch         |   18 ++++++++++--------
 .../omap3-sgx-modules_1.3.13.1607.bb               |    6 +-----
 2 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/recipes/powervr-drivers/omap3-sgx-modules/proc-interface.patch b/recipes/powervr-drivers/omap3-sgx-modules/proc-interface.patch
index 831b3ed..c11a9b7 100644
--- a/recipes/powervr-drivers/omap3-sgx-modules/proc-interface.patch
+++ b/recipes/powervr-drivers/omap3-sgx-modules/proc-interface.patch
@@ -1,20 +1,22 @@
-Index: omap3-sgx-modules-1.3.13.1607/services4/srvkm/env/linux/proc.c
-===================================================================
---- omap3-sgx-modules-1.3.13.1607.orig/services4/srvkm/env/linux/proc.c
-+++ omap3-sgx-modules-1.3.13.1607/services4/srvkm/env/linux/proc.c
-@@ -134,7 +134,6 @@ int CreateProcEntry(const char * name, r
+--- ./GFX_Linux_KM/services4/srvkm/env/linux/proc.c.orig	2009-10-09 13:46:40.000000000 -0500
++++ ./GFX_Linux_KM/services4/srvkm/env/linux/proc.c	2009-10-09 13:48:36.000000000 -0500
+@@ -134,7 +134,9 @@
  
      if (file)
      {
--        file->owner = THIS_MODULE;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
+         file->owner = THIS_MODULE;
++#endif
  		file->read_proc = rhandler;
  		file->write_proc = whandler;
  		file->data = data;
-@@ -165,7 +164,6 @@ int CreateProcReadEntry(const char * nam
+@@ -165,7 +167,9 @@
  
      if (file)
      {
--        file->owner = THIS_MODULE;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
+         file->owner = THIS_MODULE;
++#endif
  
          return 0;
      }
diff --git a/recipes/powervr-drivers/omap3-sgx-modules_1.3.13.1607.bb b/recipes/powervr-drivers/omap3-sgx-modules_1.3.13.1607.bb
index ea57fd2..a0dc97c 100644
--- a/recipes/powervr-drivers/omap3-sgx-modules_1.3.13.1607.bb
+++ b/recipes/powervr-drivers/omap3-sgx-modules_1.3.13.1607.bb
@@ -7,13 +7,9 @@ SRC_URI = "file://omap3-sgx-modules-${PV}.tar.bz2 \
            file://0002-Compile-fixes-for-DSS2.patch;patch=1 \
            file://rotation-dss2.patch;patch=1 \
            file://build_es3.x_sgx.patch;patch=1 \
+           file://proc-interface.patch;patch=1 \
 "
 
-SRC_URI_append_omapzoom2 = " file://proc-interface.patch;patch=1"
-SRC_URI_append_omap3evm = " file://proc-interface.patch;patch=1"
-SRC_URI_append_omap3517-evm = " file://proc-interface.patch;patch=1"
-
-
 PVRBUILD = "release"
 
 MAKE_TARGETS = " BUILD=${PVRBUILD}"





More information about the Openembedded-commits mailing list