Skip to contentSkip to conversation

Enric Balletbo i Serra : ti-linuxutils: Fix build problems for kernel up to 3.17

PATCH Arago Project git 1 participant 1 message Oct 8, 2014

lore
Share & tools
lore
#0 lore raw
Module: meta-ti
Branch: master
Commit: a9a74cc33dded238756eb81879d01a6eac64e503
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=a9a74cc33dded238756eb81879d01a6eac64e503
Author: Enric Balletbo i Serra <[email protected]>
Date:   Wed Oct  8 19:47:46 2014 +0000

ti-linuxutils: Fix build problems for kernel up to 3.17

Add to patches to fix the build of cmemk and sdmak kernel modules.

---

 recipes-ti/linuxutils/ti-linuxutils.inc            |    2 +-
 .../linuxutils_2_26-cmemk-fixes.patch              |   59 ++++++++++++++++++++
 .../linuxutils_2_26-sdmak-fixes.patch              |   25 ++++++++
 recipes-ti/linuxutils/ti-linuxutils_2.26.01.02.bb  |    5 +-
 4 files changed, 89 insertions(+), 2 deletions(-)
recipes-ti/linuxutils/ti-linuxutils.inc +1 -1
index dba485b..c8f9320 100644
@@ -15,7 +15,7 @@ require recipes-ti/includes/ti-staging.inc
 PR = "${MACHINE_KERNEL_PR}"
 
 #This is a kernel module, don't set PR directly
-MACHINE_KERNEL_PR_append = "e"
+MACHINE_KERNEL_PR_append = "f"
 
 inherit module
 
recipes-ti/linuxutils/ti-linuxutils/linuxutils_2_26-cmemk-fixes.patch new file +59 -0

59 lines not on this page · raw message

recipes-ti/linuxutils/ti-linuxutils/linuxutils_2_26-sdmak-fixes.patch new file +25 -0
new file mode 100644
index 0000000..5ec85fc
@@ -0,0 +1,25 @@
+Index: linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/sdma/src/module/sdmak.c
+===================================================================
+--- linuxutils_2_26_01_02.orig/packages/ti/sdo/linuxutils/sdma/src/module/sdmak.c
++++ linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/sdma/src/module/sdmak.c
+@@ -44,7 +44,7 @@
+ #include <mach/hardware.h>
+ #include <mach/dma.h>
+ #include <mach/tc.h>
+-#else
++#elif LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0)
+ #include <plat/hardware.h>
+ #include <plat/dma.h>
+ #include <plat/tc.h>
+@@ -97,6 +97,11 @@
+ 
+ #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18) */
+ 
++#ifndef OMAP_DMA_NO_DEVICE
++#include <linux/omap-dma.h>
++#define OMAP_DMA_NO_DEVICE	0
++#endif
++
+ #include "../interface/sdma.h"
+ 
+ struct channel {
recipes-ti/linuxutils/ti-linuxutils_2.26.01.02.bb +4 -1
index 75a32da..1a56d1d 100644
@@ -1,6 +1,9 @@
 require ti-linuxutils.inc
 
-SRC_URI += "file://linuxutils-BKL-fix-2.patch"
+SRC_URI += "file://linuxutils-BKL-fix-2.patch \
+			file://linuxutils_2_26-cmemk-fixes.patch \
+			file://linuxutils_2_26-sdmak-fixes.patch \
+	"
 
 PE = "1"
 PV = "2_26_01_02"