[meta-ti] [rocko/master][PATCH v3 28/29] ti-ns: Adding support for TI network services

Mahesh Radhakrishnan m-radhakrishnan2 at ti.com
Fri Sep 28 09:26:29 PDT 2018


Signed-off-by: Mahesh Radhakrishnan <m-radhakrishnan2 at ti.com>
---
 recipes-ti/includes/ti-paths.inc  |  2 ++
 recipes-ti/ns/ti-ns.inc           | 21 +++++++++++++++++++++
 recipes-ti/ns/ti-ns_2.40.01.02.bb | 14 ++++++++++++++
 3 files changed, 37 insertions(+)
 create mode 100644 recipes-ti/ns/ti-ns.inc
 create mode 100644 recipes-ti/ns/ti-ns_2.40.01.02.bb

diff --git a/recipes-ti/includes/ti-paths.inc b/recipes-ti/includes/ti-paths.inc
index a401264..ccb4994 100644
--- a/recipes-ti/includes/ti-paths.inc
+++ b/recipes-ti/includes/ti-paths.inc
@@ -34,6 +34,7 @@ export LINK_INSTALL_DIR_RECIPE       = "${installdir}/ti-dsplink-tree"
 export LINUXUTILS_INSTALL_DIR_RECIPE = "${installdir}/ti-linuxutils-tree"
 export LPM_INSTALL_DIR_RECIPE        = "${installdir}/ti-local-power-manager-tree"
 export NDK_INSTALL_DIR_RECIPE        = "${installdir}/ti-ndk-tree"
+export NS_INSTALL_DIR_RECIPE              = "${installdir}/ti-ns-tree"
 export OMX_INSTALL_DIR_RECIPE        = "${installdir}/ti-omx-tree"
 export OSAL_INSTALL_DIR_RECIPE       = "${installdir}/ti-osal-tree"
 export RTFS_INSTALL_DIR_RECIPE       = "${installdir}/ti-rtfs-tree"
@@ -86,6 +87,7 @@ export LINK_INSTALL_DIR       = "${STAGING_DIR_TARGET}${LINK_INSTALL_DIR_RECIPE}
 export LINUXUTILS_INSTALL_DIR = "${STAGING_DIR_TARGET}${LINUXUTILS_INSTALL_DIR_RECIPE}"
 export LPM_INSTALL_DIR        = "${STAGING_DIR_TARGET}${LPM_INSTALL_DIR_RECIPE}"
 export NDK_INSTALL_DIR        = "${STAGING_DIR_TARGET}${NDK_INSTALL_DIR_RECIPE}"
+export NS_INSTALL_DIR         = "${STAGING_DIR_TARGET}${NS_INSTALL_DIR_RECIPE}"
 export OMX_INSTALL_DIR        = "${STAGING_DIR_TARGET}${OMX_INSTALL_DIR_RECIPE}"
 export SYSBIOS_INSTALL_DIR    = "${STAGING_DIR_TARGET}${SYSBIOS_INSTALL_DIR_RECIPE}"
 export SYSLINK_INSTALL_DIR    = "${STAGING_DIR_TARGET}${SYSLINK_INSTALL_DIR_RECIPE}"
diff --git a/recipes-ti/ns/ti-ns.inc b/recipes-ti/ns/ti-ns.inc
new file mode 100644
index 0000000..2a50c56
--- /dev/null
+++ b/recipes-ti/ns/ti-ns.inc
@@ -0,0 +1,21 @@
+SUMMARY = "TI Network Services"
+HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ns/index.html"
+SECTION = "devel"
+LICENSE = "BSD"
+
+require recipes-ti/includes/ti-paths.inc
+
+S = "${WORKDIR}/ns_${PV}"
+
+SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ns/${PV}/exports/ns_${PV}.zip;name=nszip"
+
+do_install() {
+    CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
+    install -d ${D}${NS_INSTALL_DIR_RECIPE}
+    cp ${CP_ARGS} ${S}/* ${D}${NS_INSTALL_DIR_RECIPE}
+}
+
+ALLOW_EMPTY_${PN} = "1"
+FILES_${PN}-dev += "${NS_INSTALL_DIR_RECIPE}"
+
+INSANE_SKIP_${PN}-dev = "arch ldflags staticdev file-rdeps"
diff --git a/recipes-ti/ns/ti-ns_2.40.01.02.bb b/recipes-ti/ns/ti-ns_2.40.01.02.bb
new file mode 100644
index 0000000..6de0020
--- /dev/null
+++ b/recipes-ti/ns/ti-ns_2.40.01.02.bb
@@ -0,0 +1,14 @@
+require ti-ns.inc
+
+PV = "2_40_01_02"
+PR = "r0"
+SRC_URI = "http://software-dl.ti.com/targetcontent/ns/${PV}/exports/ns_${PV}.zip;name=nszip"
+
+LIC_FILES_CHKSUM = "file://manifest_ns_${PV}.html;md5=29e319bb254ad52bdaebf8f6387c2f85"
+
+SRC_URI[nszip.md5sum] = "03146829fc7cf1e7b2acbeb6c1f772e9"
+SRC_URI[nszip.sha256sum] = "e41f254d9db341ad3efea7f6f59df46802769eba3e2f03b6d2a53d186de18687"
+
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+INHIBIT_SYSROOT_STRIP = "1"
-- 
1.9.1



More information about the meta-ti mailing list