summaryrefslogtreecommitdiffstats
path: root/recipes-ti
diff options
context:
space:
mode:
authorJianzhong Xu <xuj@ti.com>2018-09-24 20:59:35 +0000
committerDenys Dmytriyenko <denys@ti.com>2018-09-24 16:34:54 +0000
commit2ac3edb13bcea41ad99bf60aabc6686119f08367 (patch)
treeafaf754a03e2528e7f4ccc4a9d973d695d3d1b49 /recipes-ti
parent708863d503bdd4174ee412f1dd418b1650dad520 (diff)
downloadmeta-ti-2ac3edb13bcea41ad99bf60aabc6686119f08367.tar.gz
dsplib: build DSPLIB C66x/C674x/C64x+ from source
Remove DSPLIB recipe that downloads pre-built DSPLIB from ti.com. Add new recipe to build DSPLIB for C66x, C674x, or C64x+ from source code. Signed-off-by: Jianzhong Xu <xuj@ti.com> Signed-off-by: Jacob Stiffler <j-stiffler@ti.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-ti')
-rw-r--r--recipes-ti/dsplib/dsplib-c64xp_git.bb6
-rw-r--r--recipes-ti/dsplib/dsplib-c66x.inc30
-rw-r--r--recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb9
-rw-r--r--recipes-ti/dsplib/dsplib-c66x_git.bb8
-rw-r--r--recipes-ti/dsplib/dsplib-c674x_git.bb8
-rw-r--r--recipes-ti/dsplib/dsplib.inc73
-rw-r--r--recipes-ti/includes/ti-paths.inc6
7 files changed, 98 insertions, 42 deletions
diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb b/recipes-ti/dsplib/dsplib-c64xp_git.bb
new file mode 100644
index 00000000..1550a538
--- /dev/null
+++ b/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/recipes-ti/dsplib/dsplib-c66x.inc b/recipes-ti/dsplib/dsplib-c66x.inc
deleted file mode 100644
index 7ff99c2e..00000000
--- a/recipes-ti/dsplib/dsplib-c66x.inc
+++ /dev/null
@@ -1,30 +0,0 @@
1DESCRIPTION = "DSPLIB contains optimized general-purpose signal-processing routines for TI DSPs"
2HOMEPAGE = "http://www.ti.com/tool/sprc265"
3SECTION = "devel"
4LICENSE = "BSD-3-Clause"
5
6require ../includes/ti-paths.inc
7require ../includes/ti-staging.inc
8require ../includes/ti-unpack.inc
9
10COMPATIBLE_MACHINE = "omap-a15|keystone"
11
12SRC_URI = "http://software-dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=dsplib"
13
14BINFILE = "dsplib_c66x_${PV}_Linux.bin"
15TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
16TI_BIN_UNPK_CMDS = ""
17
18do_install() {
19 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
20 install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
21 cp ${CP_ARGS} ${S}/* ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
22}
23
24ALLOW_EMPTY_${PN} = "1"
25FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
26
27INHIBIT_PACKAGE_STRIP = "1"
28INHIBIT_SYSROOT_STRIP = "1"
29INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
30INSANE_SKIP_${PN}-dev = "arch"
diff --git a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb b/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
deleted file mode 100644
index f1273f3b..00000000
--- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
+++ /dev/null
@@ -1,9 +0,0 @@
1require dsplib-c66x.inc
2
3PV = "3_4_0_0"
4PR = "r1"
5
6LIC_FILES_CHKSUM = "file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8a628512f47c4bf676a"
7
8SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf"
9SRC_URI[dsplib.sha256sum] = "e88909b6271ce6c4c62e2ab90181b7adb36c7f28f5c52836668eb35888785ce8"
diff --git a/recipes-ti/dsplib/dsplib-c66x_git.bb b/recipes-ti/dsplib/dsplib-c66x_git.bb
new file mode 100644
index 00000000..b28d8df6
--- /dev/null
+++ b/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/recipes-ti/dsplib/dsplib-c674x_git.bb b/recipes-ti/dsplib/dsplib-c674x_git.bb
new file mode 100644
index 00000000..47974ea1
--- /dev/null
+++ b/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/recipes-ti/dsplib/dsplib.inc b/recipes-ti/dsplib/dsplib.inc
new file mode 100644
index 00000000..7180c4af
--- /dev/null
+++ b/recipes-ti/dsplib/dsplib.inc
@@ -0,0 +1,73 @@
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_1"
8PR = "r0"
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
19SRC_URI = "git://git.ti.com/ep-processor-libraries/dsplib.git;protocol=git;branch=master"
20SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"
21
22LIC_FILES_CHKSUM = "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4d51d8af75419781591ace190b"
23
24export DSPLIB_WORK_DIR="${S}"
25export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
26export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
27export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
28export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
29export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
30export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
31export INCDIR="${MATHLIB_INSTALL_DIR}/"
32
33PATH_append = ":${XDC_INSTALL_DIR}"
34
35XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"
36XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_WORK_DIR};"
37
38export XDCPATH
39
40DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
41
42do_compile() {
43 cd ${DSPLIB_WORK_DIR}/ti/dsplib;
44 xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v"
45}
46
47do_install() {
48 install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
49
50 find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
51 mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/* ${D}${DSPLIB_INSTALL_DIR_RECIPE}
52 mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata ${D}${DSPLIB_INSTALL_DIR_RECIPE}
53 rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
54}
55
56inherit deploy
57addtask deploy before do_build after do_install
58
59do_deploy() {
60 install -d ${DEPLOYDIR}
61 # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
62 # and place the zip file in ${DEPLOYDIR}
63 mkdir ./${DSPLIB_PACKAGE_NAME}
64 cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/* ./${DSPLIB_PACKAGE_NAME}
65 cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata ./${DSPLIB_PACKAGE_NAME}
66 zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip ./${DSPLIB_PACKAGE_NAME}
67 rm -r ./${DSPLIB_PACKAGE_NAME}
68}
69
70ALLOW_EMPTY_${PN} = "1"
71FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
72
73INSANE_SKIP_${PN}-dev = "arch"
diff --git a/recipes-ti/includes/ti-paths.inc b/recipes-ti/includes/ti-paths.inc
index 6c2b2001..93494f08 100644
--- a/recipes-ti/includes/ti-paths.inc
+++ b/recipes-ti/includes/ti-paths.inc
@@ -17,7 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE = "${installdir}/ti-dmai-tree"
17export DSP_BENCHMARK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsp-benchmark-tree" 17export DSP_BENCHMARK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsp-benchmark-tree"
18export DSPLIB_C64P_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c64p-tree" 18export DSPLIB_C64P_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c64p-tree"
19export DSPLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c674x-tree" 19export DSPLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c674x-tree"
20export DSPLIB_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-tree" 20export DSPLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c66x-tree"
21export DVSDK_DEMOS_INSTALL_DIR_RECIPE= "${installdir}/ti-dvsdk-demos-tree" 21export DVSDK_DEMOS_INSTALL_DIR_RECIPE= "${installdir}/ti-dvsdk-demos-tree"
22export DVTB_INSTALL_DIR_RECIPE = "${installdir}/ti-dvtb-tree" 22export DVTB_INSTALL_DIR_RECIPE = "${installdir}/ti-dvtb-tree"
23export EDMA3_LLD_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-tree" 23export EDMA3_LLD_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-tree"
@@ -49,7 +49,6 @@ export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree"
49export M4_TOOLCHAIN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt-arm" 49export M4_TOOLCHAIN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt-arm"
50export GCC_ARM_NONE_TOOLCHAIN_RECIPE = "${installdir}/gcc-arm-none-eabi" 50export GCC_ARM_NONE_TOOLCHAIN_RECIPE = "${installdir}/gcc-arm-none-eabi"
51export TI_CGT_PRU_INSTALL_DIR_RECIPE = "${installdir}/cgt-pru" 51export TI_CGT_PRU_INSTALL_DIR_RECIPE = "${installdir}/cgt-pru"
52export DSPLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c66x-tree"
53export MATHLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c66x-tree" 52export MATHLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c66x-tree"
54export MATHLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c674x-tree" 53export MATHLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c674x-tree"
55export IMGLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-imglib-c66x-tree" 54export IMGLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-imglib-c66x-tree"
@@ -74,7 +73,6 @@ export CODEGEN_ARM_INSTALL_DIR= "${STAGING_DIR_TARGET}${CODEGEN_ARM_INSTALL_DIR_
74export CODEGEN_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEGEN_INSTALL_DIR_RECIPE}" 73export CODEGEN_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEGEN_INSTALL_DIR_RECIPE}"
75export DMAI_INSTALL_DIR = "${STAGING_DIR_TARGET}${DMAI_INSTALL_DIR_RECIPE}" 74export DMAI_INSTALL_DIR = "${STAGING_DIR_TARGET}${DMAI_INSTALL_DIR_RECIPE}"
76export DSP_BENCHMARK_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSP_BENCHMARK_INSTALL_DIR_RECIPE}" 75export DSP_BENCHMARK_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSP_BENCHMARK_INSTALL_DIR_RECIPE}"
77export DSPLIB_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_INSTALL_DIR_RECIPE}"
78export EDMA3_LLD_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_INSTALL_DIR_RECIPE}" 76export EDMA3_LLD_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_INSTALL_DIR_RECIPE}"
79export EDMA3_LLD_SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE}" 77export EDMA3_LLD_SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE}"
80export FASTMATHLIB_C674P_INSTALL_DIR = "${STAGING_DIR_TARGET}${FASTMATHLIB_C674P_INSTALL_DIR_RECIPE}" 78export FASTMATHLIB_C674P_INSTALL_DIR = "${STAGING_DIR_TARGET}${FASTMATHLIB_C674P_INSTALL_DIR_RECIPE}"
@@ -100,6 +98,8 @@ export M4_TOOLCHAIN_INSTALL_DIR = "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTAL
100export GCC_ARM_NONE_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}" 98export GCC_ARM_NONE_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
101export TI_CGT_PRU_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}" 99export TI_CGT_PRU_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
102export SWTOOLS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}" 100export SWTOOLS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
101export DSPLIB_C64P_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
102export DSPLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
103export DSPLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}" 103export DSPLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
104export MATHLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}" 104export MATHLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
105export MATHLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}" 105export MATHLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"