Signed-off-by: Jacob Stiffler <[email protected]>
---
.../recipes-ti/includes/arago-paths.inc | 2 +
meta-arago-extras/recipes-ti/linalg/linalg.inc | 43 ++++++++++++++++++++++
meta-arago-extras/recipes-ti/linalg/linalg_git.bb | 23 ++++++++++++
3 files changed, 68 insertions(+)
create mode 100644 meta-arago-extras/recipes-ti/linalg/linalg.inc
create mode 100644 meta-arago-extras/recipes-ti/linalg/linalg_git.bb
diff --git a/meta-arago-extras/recipes-ti/includes/arago-paths.inc
b/meta-arago-extras/recipes-ti/includes/arago-paths.inc
index ae3f304..6867406 100644
--- a/meta-arago-extras/recipes-ti/includes/arago-paths.inc
+++ b/meta-arago-extras/recipes-ti/includes/arago-paths.inc
@@ -1,5 +1,7 @@
require recipes-ti/includes/ti-paths.inc
export LIBARCH_INSTALL_DIR_RECIPE = "${installdir}/ti-libarch-tree"
+export LINALG_INSTALL_DIR_RECIPE = "${installdir}/ti-linalg-tree"
export LIBARCH_INSTALL_DIR =
"${STAGING_DIR_TARGET}${LIBARCH_INSTALL_DIR_RECIPE}"
+export LINALG_INSTALL_DIR =
"${STAGING_DIR_TARGET}${LINALG_INSTALL_DIR_RECIPE}"
diff --git a/meta-arago-extras/recipes-ti/linalg/linalg.inc
b/meta-arago-extras/recipes-ti/linalg/linalg.inc
new file mode 100644
index 0000000..7c197b6
--- /dev/null
+++ b/meta-arago-extras/recipes-ti/linalg/linalg.inc
@@ -0,0 +1,43 @@
+HOMEPAGE = "git://git.ti.com/dense-linear-algebra-libraries/linalg.git"
+LICENSE = "BSD-3-Clause"
+
+PV = "1_2_0_0"
+INC_PR = "r0"
+
+S = "${WORKDIR}/git"
+
+require recipes-ti/includes/arago-paths.inc
+require recipes-ti/includes/ti-staging.inc
+
+BRANCH = "master"
+SRC_URI =
"git://git.ti.com/dense-linear-algebra-libraries/linalg.git;protocol=git;branch=${BRANCH}"
+LIC_FILES_CHKSUM =
"file://docs/LINALG_1.2.0_manifest.html;md5=f30895e41e5947c3439b1ad4cf4c8555"
+SRCREV = "4de29dac3c6fbd16df1b19876593de0afdbcb30f"
+
+DEPENDS = "common-csl-ip \
+ libarch \
+ ti-xdctools \
+ ti-ipc-rtos \
+ ti-sysbios \
+ ti-cgt6x-native \
+ ti-xdais \
+ ti-framework-components \
+ libulm \
+ openmp-rtos \
+ opencl \
+ clocl-native \
+"
+
+export TI_OCL_INSTALL_DIR = "${STAGING_DIR_TARGET}/usr/share/ti/opencl"
+export CGTROOT = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
+export TI_OCL_CGT_INSTALL = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
+export XDC_DIR = "${XDC_INSTALL_DIR}"
+export BIOS_DIR= "${SYSBIOS_INSTALL_DIR}"
+export XDAIS_DIR = "${XDAIS_INSTALL_DIR}"
+export FC_DIR = "${FC_INSTALL_DIR}"
+export PDK_DIR = "${PDK_INSTALL_DIR}"
+export OMP_DIR ="${OMP_INSTALL_DIR}"
+export LIBARCH_DIR = "${LIBARCH_INSTALL_DIR}"
+export TARGET_ROOTDIR="${STAGING_DIR_TARGET}"
+
+COMPATIBLE_MACHINE = "k2hk-evm"
diff --git a/meta-arago-extras/recipes-ti/linalg/linalg_git.bb
b/meta-arago-extras/recipes-ti/linalg/linalg_git.bb
new file mode 100644
index 0000000..4d7a5a4
--- /dev/null
+++ b/meta-arago-extras/recipes-ti/linalg/linalg_git.bb
@@ -0,0 +1,23 @@
+DESCRIPTION = "TI Linear Algebra Library"
+
+include linalg.inc
+PR = "${INC_PR}.0"
+
+TARGET_k2hk-evm = "SOC_K2H"
+MEM_MODEL_k2hk-evm = "Large"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+do_compile() {
+ make ARMplusDSP MEM_MODEL=${MEM_MODEL} TARGET=${TARGET} LIBOS=LIB_OPENCL
+ make docs
+}
+
+do_install() {
+ make installARMplusDSPlib DESTDIR=${D}${LINALG_INSTALL_DIR_RECIPE}
+}
+
+# to create a package for LINALG
+FILES_${PN}-dev += "${LINALG_INSTALL_DIR_RECIPE}"
+
+INSANE_SKIP_${PN}-dev = "arch staticdev"
+ALLOW_EMPTY_${PN} = "1"
--
1.9.1
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago