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

login
register
mail settings
Submitter Siddharth Heroor
Date April 9, 2011, 3:26 a.m.
Message ID <1302319620-18223-3-git-send-email-heroor@gmail.com>
Download mbox | patch
Permalink /patch/2097/
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 libraries for TI816x and TI814x device families.
* Build and stage both Linux and DSP side library files.

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

Patch

diff --git a/recipes/ti/ti-syslink-libs.inc b/recipes/ti/ti-syslink-libs.inc
new file mode 100644
index 0000000..fff36b6
--- /dev/null
+++ b/recipes/ti/ti-syslink-libs.inc
@@ -0,0 +1,45 @@ 
+DESCRIPTION = "SYSLINK Inter-Processor Communications (IPC) libraries 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
+
+S = "${WORKDIR}/syslink_${PV}"
+
+SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/SysLink/${PV}/exports/syslink_${PV}.tar.gz;name=syslinktarball"
+
+DEPENDS = "ti-sysbios ti-xdctools ti-cgt6x 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_compilexdc() {
+    cd ${S}/ti/syslink 
+    ${XDC_INSTALL_DIR}/xdc .make -PR .
+    ${XDC_INSTALL_DIR}/xdc clean -PR .
+    ${XDC_INSTALL_DIR}/xdc .interfaces -PR .
+    ${XDC_INSTALL_DIR}/xdc -PR . 
+}
+
+addtask compilexdc after do_configure before do_compile
+
+do_compile() {
+    cd ${S}/ti/syslink/utils/hlos/usr/Linux
+    oe_runmake
+}
+
+do_install () {
+    # Install/Stage the Source Tree
+    install -d ${D}${SYSLINK_INSTALL_DIR_RECIPE}
+    cp -pPrf ${S}/* ${D}${SYSLINK_INSTALL_DIR_RECIPE}
+}