summaryrefslogtreecommitdiffstats
path: root/meta-ti-bsp/recipes-ti/dsplib
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@konsulko.com>2022-02-22 04:13:45 +0000
committerRyan Eatmon <reatmon@ti.com>2022-02-22 12:01:38 -0600
commit20f3191aeb592dd889eeaf96a31526297de95306 (patch)
treeaec879b9855ff8a54df171ee808e30ac26f1c80b /meta-ti-bsp/recipes-ti/dsplib
parentbea4fd2c401af05b866bd6af1c4e501d31b7b420 (diff)
downloadmeta-ti-20f3191aeb592dd889eeaf96a31526297de95306.tar.gz
meta-ti: create a sub-layer meta-ti-bsp from existing content
Extra sub-layers will be created next and relevant content moved across them. Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-bsp/recipes-ti/dsplib')
-rw-r--r--meta-ti-bsp/recipes-ti/dsplib/dsplib-c64xp_git.bb6
-rw-r--r--meta-ti-bsp/recipes-ti/dsplib/dsplib-c66x_git.bb8
-rw-r--r--meta-ti-bsp/recipes-ti/dsplib/dsplib-c674x_git.bb8
-rw-r--r--meta-ti-bsp/recipes-ti/dsplib/dsplib.inc78
4 files changed, 100 insertions, 0 deletions
diff --git a/meta-ti-bsp/recipes-ti/dsplib/dsplib-c64xp_git.bb b/meta-ti-bsp/recipes-ti/dsplib/dsplib-c64xp_git.bb
new file mode 100644
index 00000000..1550a538
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/dsplib/dsplib-c64xp_git.bb
@@ -0,0 +1,6 @@
1include dsplib.inc
2
3MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
4DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
5DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
6DSPLIB_BUILD_TARGET = "c64Px"
diff --git a/meta-ti-bsp/recipes-ti/dsplib/dsplib-c66x_git.bb b/meta-ti-bsp/recipes-ti/dsplib/dsplib-c66x_git.bb
new file mode 100644
index 00000000..b28d8df6
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/dsplib/dsplib-c66x_git.bb
@@ -0,0 +1,8 @@
1include dsplib.inc
2
3MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
4DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
5DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
6DSPLIB_BUILD_TARGET = "c66x"
7
8DEPENDS += "mathlib-c66x"
diff --git a/meta-ti-bsp/recipes-ti/dsplib/dsplib-c674x_git.bb b/meta-ti-bsp/recipes-ti/dsplib/dsplib-c674x_git.bb
new file mode 100644
index 00000000..47974ea1
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/dsplib/dsplib-c674x_git.bb
@@ -0,0 +1,8 @@
1include dsplib.inc
2
3MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
4DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
5DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
6DSPLIB_BUILD_TARGET = "c674x"
7
8DEPENDS += "mathlib-c674x"
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 = "(.*)"