diff options
Diffstat (limited to 'meta-ti-bsp/recipes-ti/dsplib/dsplib.inc')
-rw-r--r-- | meta-ti-bsp/recipes-ti/dsplib/dsplib.inc | 78 |
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 @@ | |||
1 | SUMMARY = "DSPLIB contains optimized signal processing functions for TI DSPs" | ||
2 | HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib" | ||
3 | LICENSE = "BSD-3-Clause" | ||
4 | |||
5 | require ../includes/ti-paths.inc | ||
6 | |||
7 | PV = "3_4_0_4" | ||
8 | PR = "r2" | ||
9 | |||
10 | DEPENDS = "ti-cgt6x-native \ | ||
11 | ti-xdctools-native \ | ||
12 | ti-sysbios \ | ||
13 | doxygen-native \ | ||
14 | zip-native \ | ||
15 | swtools" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | DSPLIB_GIT_BRANCH = "master" | ||
20 | DSPLIB_GIT_PROTOCOL = "git" | ||
21 | DSPLIB_GIT_URI = "git://git.ti.com/ep-processor-libraries/dsplib.git" | ||
22 | DSPLIB_SRCREV = "0390b171042c602e07669fd28a371cc319b90161" | ||
23 | |||
24 | SRC_URI = "${DSPLIB_GIT_URI};protocol=${DSPLIB_GIT_PROTOCOL};branch=${DSPLIB_GIT_BRANCH}" | ||
25 | SRCREV = "${DSPLIB_SRCREV}" | ||
26 | |||
27 | LIC_FILES_CHKSUM = "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4d51d8af75419781591ace190b" | ||
28 | |||
29 | export DSPLIB_WORK_DIR="${S}" | ||
30 | export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | ||
31 | export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | ||
32 | export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | ||
33 | export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}" | ||
34 | export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools" | ||
35 | export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld" | ||
36 | export INCDIR="${MATHLIB_INSTALL_DIR}/" | ||
37 | |||
38 | PATH:append = ":${XDC_INSTALL_DIR}" | ||
39 | |||
40 | XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;" | ||
41 | XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_WORK_DIR};" | ||
42 | |||
43 | export XDCPATH | ||
44 | |||
45 | DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}" | ||
46 | |||
47 | do_compile() { | ||
48 | cd ${DSPLIB_WORK_DIR}/ti/dsplib; | ||
49 | xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v" | ||
50 | } | ||
51 | |||
52 | do_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 | |||
60 | inherit deploy | ||
61 | addtask deploy before do_build after do_install | ||
62 | |||
63 | do_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 | |||
73 | ALLOW_EMPTY:${PN} = "1" | ||
74 | FILES:${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}" | ||
75 | |||
76 | INSANE_SKIP:${PN}-dev = "arch" | ||
77 | COMPATIBLE_HOST ?= "null" | ||
78 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||