summaryrefslogtreecommitdiffstats
path: root/meta-ti-bsp/recipes-ti/dsplib/dsplib.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-ti-bsp/recipes-ti/dsplib/dsplib.inc')
-rw-r--r--meta-ti-bsp/recipes-ti/dsplib/dsplib.inc78
1 files changed, 78 insertions, 0 deletions
diff --git a/meta-ti-bsp/recipes-ti/dsplib/dsplib.inc b/meta-ti-bsp/recipes-ti/dsplib/dsplib.inc
new file mode 100644
index 00000000..85d79ae3
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/dsplib/dsplib.inc
@@ -0,0 +1,78 @@
1SUMMARY = "DSPLIB contains optimized signal processing functions for TI DSPs"
2HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
3LICENSE = "BSD-3-Clause"
4
5require ../includes/ti-paths.inc
6
7PV = "3_4_0_4"
8PR = "r2"
9
10DEPENDS = "ti-cgt6x-native \
11 ti-xdctools-native \
12 ti-sysbios \
13 doxygen-native \
14 zip-native \
15 swtools"
16
17S = "${WORKDIR}/git"
18
19DSPLIB_GIT_BRANCH = "master"
20DSPLIB_GIT_PROTOCOL = "git"
21DSPLIB_GIT_URI = "git://git.ti.com/ep-processor-libraries/dsplib.git"
22DSPLIB_SRCREV = "0390b171042c602e07669fd28a371cc319b90161"
23
24SRC_URI = "${DSPLIB_GIT_URI};protocol=${DSPLIB_GIT_PROTOCOL};branch=${DSPLIB_GIT_BRANCH}"
25SRCREV = "${DSPLIB_SRCREV}"
26
27LIC_FILES_CHKSUM = "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4d51d8af75419781591ace190b"
28
29export DSPLIB_WORK_DIR="${S}"
30export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
31export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
32export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
33export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
34export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
35export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
36export INCDIR="${MATHLIB_INSTALL_DIR}/"
37
38PATH:append = ":${XDC_INSTALL_DIR}"
39
40XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"
41XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_WORK_DIR};"
42
43export XDCPATH
44
45DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
46
47do_compile() {
48 cd ${DSPLIB_WORK_DIR}/ti/dsplib;
49 xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v"
50}
51
52do_install() {
53 install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
54
55 find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
56 cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/. ${D}${DSPLIB_INSTALL_DIR_RECIPE}
57 rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
58}
59
60inherit deploy
61addtask deploy before do_build after do_install
62
63do_deploy() {
64 install -d ${DEPLOYDIR}
65 # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
66 # and place the zip file in ${DEPLOYDIR}
67 mkdir ./${DSPLIB_PACKAGE_NAME}
68 cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/. ./${DSPLIB_PACKAGE_NAME}
69 zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip ./${DSPLIB_PACKAGE_NAME}
70 rm -r ./${DSPLIB_PACKAGE_NAME}
71}
72
73ALLOW_EMPTY:${PN} = "1"
74FILES:${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
75
76INSANE_SKIP:${PN}-dev = "arch"
77COMPATIBLE_HOST ?= "null"
78COMPATIBLE_HOST:ti-soc = "(.*)"