Signed-off-by: Jacob Stiffler <j-stiff...@ti.com>
---
 .../recipes-ti/includes/arago-paths.inc            |  5 ++++
 meta-arago-extras/recipes-ti/libarch/libarch.inc   | 32 ++++++++++++++++++++++
 .../recipes-ti/libarch/libarch_git.bb              | 25 +++++++++++++++++
 3 files changed, 62 insertions(+)
 create mode 100644 meta-arago-extras/recipes-ti/includes/arago-paths.inc
 create mode 100644 meta-arago-extras/recipes-ti/libarch/libarch.inc
 create mode 100644 meta-arago-extras/recipes-ti/libarch/libarch_git.bb

diff --git a/meta-arago-extras/recipes-ti/includes/arago-paths.inc 
b/meta-arago-extras/recipes-ti/includes/arago-paths.inc
new file mode 100644
index 0000000..ae3f304
--- /dev/null
+++ b/meta-arago-extras/recipes-ti/includes/arago-paths.inc
@@ -0,0 +1,5 @@
+require recipes-ti/includes/ti-paths.inc
+
+export LIBARCH_INSTALL_DIR_RECIPE    = "${installdir}/ti-libarch-tree"
+
+export LIBARCH_INSTALL_DIR    = 
"${STAGING_DIR_TARGET}${LIBARCH_INSTALL_DIR_RECIPE}"
diff --git a/meta-arago-extras/recipes-ti/libarch/libarch.inc 
b/meta-arago-extras/recipes-ti/libarch/libarch.inc
new file mode 100644
index 0000000..83e147c
--- /dev/null
+++ b/meta-arago-extras/recipes-ti/libarch/libarch.inc
@@ -0,0 +1,32 @@
+HOMEPAGE = "https://git.ti.com/library-architecture/libarch";
+LICENSE = "BSD-3-Clause"
+
+PV = "1_0_0_0"
+INC_PR = "r0"
+
+require recipes-ti/includes/arago-paths.inc
+require recipes-ti/includes/ti-staging.inc
+
+BRANCH = "master"
+LIC_FILES_CHKSUM = 
"file://docs/LibArch_1.0.0_manifest.html;md5=bb48cacb8827ec8d8e5a94c4f2425ee3"
+SRC_URI = 
"git://git.ti.com/library-architecture/libarch.git;protocol=git;branch=${BRANCH}"
+SRCREV = "c4bc65775bdb6bd8574e43d3cb7148c6bbdc8de6"
+
+COMPATIBLE_MACHINE = "k2hk-evm|am57xx"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+S = "${WORKDIR}/git"
+
+DEPENDS = "common-csl-ip-rtos ti-xdctools ti-sysbios ti-cgt6x-native ti-xdais 
ti-framework-components opencl opencl-monitor"
+
+export CGTROOT = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
+export TI_OCL_CGT_INSTALL = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
+export TI_OCL_INSTALL_DIR = "${STAGING_DIR_TARGET}/usr/share/ti/opencl"
+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}"
+
+TARGET_am57xx-evm = "SOC_AM572x"
+TARGET_k2hk-evm   = "SOC_K2H"
diff --git a/meta-arago-extras/recipes-ti/libarch/libarch_git.bb 
b/meta-arago-extras/recipes-ti/libarch/libarch_git.bb
new file mode 100644
index 0000000..18c998a
--- /dev/null
+++ b/meta-arago-extras/recipes-ti/libarch/libarch_git.bb
@@ -0,0 +1,25 @@
+DESCRIPTION = "TI Library Architecture"
+
+include libarch.inc
+
+PR = "${INC_PR}.0"
+
+do_compile() {
+    make lib TARGET=${TARGET} LIBOS=LIB_OPENCL
+    make docs
+
+    # Delete .obj files before installing
+    rm src/*.obj
+}
+
+do_install() {
+    install -d ${D}${LIBARCH_INSTALL_DIR_RECIPE}
+    cp -r docs lib include src ${D}${LIBARCH_INSTALL_DIR_RECIPE}
+    cp Makefile ${D}${LIBARCH_INSTALL_DIR_RECIPE}
+}
+
+FILES_${PN}-dev += "${LIBARCH_INSTALL_DIR_RECIPE}"
+
+# skip checking binary against ARM architecture
+INSANE_SKIP_${PN}-dev = "arch"
+ALLOW_EMPTY_${PN} = "1"
-- 
1.9.1

_______________________________________________
meta-arago mailing list
meta-arago@arago-project.org
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to