Skip to contentSkip to conversation

Jacob Stiffler : common-csl-ip-rtos: Add CSL RTOS package.

PATCH Arago Project git 1 participant 1 message Jun 1, 2015

lore
Share & tools
lore
#0 lore raw
Module: meta-ti
Branch: daisy
Commit: 29eeee9ff4d602a65cd92c4aa95900ae3d46ca42
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=29eeee9ff4d602a65cd92c4aa95900ae3d46ca42
Author: Jacob Stiffler <[email protected]>
Date:   Wed May 27 20:10:38 2015 +0000

common-csl-ip-rtos: Add CSL RTOS package.

---

 .../common-csl-ip/common-csl-ip-rtos_git.bb        |   33 ++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)
recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb new file +33 -0
new file mode 100644
index 0000000..5d4a552
@@ -0,0 +1,33 @@
+require common-csl-ip.inc
+
+require recipes-ti/includes/ti-paths.inc
+require recipes-ti/includes/ti-staging.inc
+
+DEPENDS = "ti-xdctools ti-cgt6x-native ti-sysbios"
+
+S = "${WORKDIR}/ti/csl"
+
+export C6X_GEN_INSTALL_PATH="${STAGING_DIR_NATIVE}/usr"
+export XDCCGROOT="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
+export XDCPATH="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages"
+
+do_configure() {
+    sed -i "s/\ \"\.\\\\\\\\\"\ +//" src/Module.xs
+    find -name "*.xs" -exec sed -i "s/ofd6x\.exe/ofd6x/" {} \;
+    find -name "*.xs" -exec sed -i "s/sectti\.exe/sectti/" {} \;
+    find -name "*.xs" -exec sed -i "/\.chm/d" {} \;
+    find -name "*.xs" -exec sed -i "s/pasm\_dos/pasm\_linux/" {} \;
+}
+
+do_compile() {
+    ${XDC_INSTALL_DIR}/xdc .make
+    ${XDC_INSTALL_DIR}/xdc clean
+    ${XDC_INSTALL_DIR}/xdc release
+}
+
+do_install () {
+    install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages
+    find -name "*.tar" -exec tar xf {} -C ${D}${PDK_INSTALL_DIR_RECIPE}/packages \;
+}
+
+FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages"