[oe-commits] Koen Kooi : ti-cmemk-module: add tweak to build against post header move kernel

GIT User account git at amethyst.openembedded.net
Thu Dec 11 11:34:29 UTC 2008


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

Author: Koen Kooi <koen at openembedded.org>
Date:   Thu Dec 11 12:31:12 2008 +0100

ti-cmemk-module: add tweak to build against post header move kernel

---

 packages/dsplink/cmemk.inc                        |    7 +++++++
 packages/dsplink/files/cmemk-class-device-27.diff |   11 +++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/packages/dsplink/cmemk.inc b/packages/dsplink/cmemk.inc
index 1b7ea3a..2d9a25a 100644
--- a/packages/dsplink/cmemk.inc
+++ b/packages/dsplink/cmemk.inc
@@ -11,6 +11,7 @@ export DSPLINK="${S}/cetools/packages/dsplink"
 
 PARALLEL_MAKE = ""
 
+SRC_URI += "file://cmemk-class-device-27.diff"
 
 do_compile_append() {
 	echo "MVTOOL_PREFIX=${TARGET_PREFIX}" > ${S}/Rules.make		
@@ -22,6 +23,12 @@ do_compile_append() {
 	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS	
 	cd ${S}/cetools/packages/ti/sdo/linuxutils/cmem
 
+	# This sadly breaks doing -c compile more than once, but I don't have a better solution	
+	if [ $(echo ${KERNEL_VERSION} | cut -c5,6) -gt 26 ] ; then
+		patch -p0 < ${WORKDIR}/cmemk-class-device-27.diff
+	fi
+
+	
 	oe_runmake clean
 	oe_runmake KERNEL_PATH=${STAGING_KERNEL_DIR}   \
            KERNEL_SRC=${STAGING_KERNEL_DIR}    \
diff --git a/packages/dsplink/files/cmemk-class-device-27.diff b/packages/dsplink/files/cmemk-class-device-27.diff
new file mode 100644
index 0000000..1c51323
--- /dev/null
+++ b/packages/dsplink/files/cmemk-class-device-27.diff
@@ -0,0 +1,11 @@
+--- /tmp/cmemk.c	2008-12-11 12:21:22.000000000 +0100
++++ src/module/cmemk.c	2008-12-11 12:22:39.000000000 +0100
+@@ -1710,7 +1710,7 @@
+ #ifdef USE_CLASS_DEVICE
+     class_device_create(cmem_class, NULL, MKDEV(cmem_major, 0), NULL, "cmem");
+ #else
+-    device_create(cmem_class, NULL, MKDEV(cmem_major, 0), "cmem");
++    device_create(cmem_class, NULL, MKDEV(cmem_major, 0), NULL, "cmem");
+ #endif // USE_CLASS_DEVICE
+ #endif // USE_CLASS_SIMPLE
+ #endif // USE_UDEV





More information about the Openembedded-commits mailing list