Patchwork [PATCHv3,2/5] ti-syslink: Add include file for Syslink Module.

login
register
mail settings
Submitter Siddharth Heroor
Date April 9, 2011, 3:26 a.m.
Message ID <1302319620-18223-2-git-send-email-heroor@gmail.com>
Download mbox | patch
Permalink /patch/2103/
State Under Review, archived
Delegated to: Denys Dmytriyenko
Headers show

Comments

Siddharth Heroor - April 9, 2011, 3:26 a.m.
From: Siddharth Heroor <heroor@ti.com>

* Add Syslink Kernel Module include file for TI816x and TI814x
  device families.

Signed-off-by: Siddharth Heroor <heroor@ti.com>
---
 recipes/ti/ti-syslink-module.inc |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)
 create mode 100644 recipes/ti/ti-syslink-module.inc

Patch

diff --git a/recipes/ti/ti-syslink-module.inc b/recipes/ti/ti-syslink-module.inc
new file mode 100644
index 0000000..10c2d6e
--- /dev/null
+++ b/recipes/ti/ti-syslink-module.inc
@@ -0,0 +1,31 @@ 
+DESCRIPTION = "SYSLINK Inter-Processor Communications (IPC) Kernel module for TI ARM/DSP processors"
+HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/syslink/index.html"
+SECTION = "devel"
+LICENSE = "BSD"
+
+COMPATIBLE_MACHINE = "(ti816x|ti814x)"
+
+require ti-paths.inc
+require ti-staging.inc
+require ti-syslink-common.inc
+
+inherit module
+
+S = "${WORKDIR}/syslink_${PV}/ti/syslink/utils/hlos/knl/Linux"
+
+SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/SysLink/${PV}/exports/syslink_${PV}.tar.gz;name=syslinktarball"
+
+DEPENDS =+ "ti-ipc"
+
+EXTRA_OEMAKE = "ARCH='${TARGET_ARCH}' \
+    CROSS_COMPILE='${TARGET_PREFIX}' \
+    SYSLINK_PLATFORM='${SYSLINKPLATFORM}' \
+    SYSLINK_VARIANT='${SYSLINKVARIANT}' \
+    SYSLINK_LOADER='${SYSLINKLOADER}' \
+    SYSLINK_PKGPATH='${IPC_INSTALL_DIR}/packages' \
+    KDIR='${STAGING_KERNEL_DIR}'"
+
+do_install () {
+    install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp
+    install -m 0755 ${SYSLINK_ROOT}/ti/syslink/bin/${SYSLINKVARIANT}/syslink.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/
+}