diff options
author | Jianzhong Xu <xuj@ti.com> | 2018-09-24 20:59:35 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2018-09-25 15:28:46 +0000 |
commit | f746a0e14abe5b546a9078be5076e4092dcfbce9 (patch) | |
tree | 268171dfe4fecd5c8a084ee49c9c9d68c97bf7c1 /recipes-ti | |
parent | 817446ec897cd490262005b7f3804e60b0cd2513 (diff) | |
download | meta-ti-f746a0e14abe5b546a9078be5076e4092dcfbce9.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.bb | 6 | ||||
-rw-r--r-- | recipes-ti/dsplib/dsplib-c66x.inc | 30 | ||||
-rw-r--r-- | recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb | 9 | ||||
-rw-r--r-- | recipes-ti/dsplib/dsplib-c66x_git.bb | 8 | ||||
-rw-r--r-- | recipes-ti/dsplib/dsplib-c674x_git.bb | 8 | ||||
-rw-r--r-- | recipes-ti/dsplib/dsplib.inc | 73 | ||||
-rw-r--r-- | recipes-ti/includes/ti-paths.inc | 6 |
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 @@ | |||
1 | include dsplib.inc | ||
2 | |||
3 | MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages" | ||
4 | DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}" | ||
5 | DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}" | ||
6 | DSPLIB_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 @@ | |||
1 | DESCRIPTION = "DSPLIB contains optimized general-purpose signal-processing routines for TI DSPs" | ||
2 | HOMEPAGE = "http://www.ti.com/tool/sprc265" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD-3-Clause" | ||
5 | |||
6 | require ../includes/ti-paths.inc | ||
7 | require ../includes/ti-staging.inc | ||
8 | require ../includes/ti-unpack.inc | ||
9 | |||
10 | COMPATIBLE_MACHINE = "omap-a15|keystone" | ||
11 | |||
12 | SRC_URI = "http://software-dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=dsplib" | ||
13 | |||
14 | BINFILE = "dsplib_c66x_${PV}_Linux.bin" | ||
15 | TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}" | ||
16 | TI_BIN_UNPK_CMDS = "" | ||
17 | |||
18 | do_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 | |||
24 | ALLOW_EMPTY_${PN} = "1" | ||
25 | FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}" | ||
26 | |||
27 | INHIBIT_PACKAGE_STRIP = "1" | ||
28 | INHIBIT_SYSROOT_STRIP = "1" | ||
29 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
30 | INSANE_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 @@ | |||
1 | require dsplib-c66x.inc | ||
2 | |||
3 | PV = "3_4_0_0" | ||
4 | PR = "r1" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8a628512f47c4bf676a" | ||
7 | |||
8 | SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf" | ||
9 | SRC_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 @@ | |||
1 | include dsplib.inc | ||
2 | |||
3 | MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages" | ||
4 | DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}" | ||
5 | DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}" | ||
6 | DSPLIB_BUILD_TARGET = "c66x" | ||
7 | |||
8 | DEPENDS += "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 @@ | |||
1 | include dsplib.inc | ||
2 | |||
3 | MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages" | ||
4 | DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}" | ||
5 | DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}" | ||
6 | DSPLIB_BUILD_TARGET = "c674x" | ||
7 | |||
8 | DEPENDS += "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 @@ | |||
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_1" | ||
8 | PR = "r0" | ||
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 | SRC_URI = "git://git.ti.com/ep-processor-libraries/dsplib.git;protocol=git;branch=master" | ||
20 | SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1" | ||
21 | |||
22 | LIC_FILES_CHKSUM = "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4d51d8af75419781591ace190b" | ||
23 | |||
24 | export DSPLIB_WORK_DIR="${S}" | ||
25 | export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | ||
26 | export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | ||
27 | export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | ||
28 | export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}" | ||
29 | export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools" | ||
30 | export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld" | ||
31 | export INCDIR="${MATHLIB_INSTALL_DIR}/" | ||
32 | |||
33 | PATH_append = ":${XDC_INSTALL_DIR}" | ||
34 | |||
35 | XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;" | ||
36 | XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_WORK_DIR};" | ||
37 | |||
38 | export XDCPATH | ||
39 | |||
40 | DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}" | ||
41 | |||
42 | do_compile() { | ||
43 | cd ${DSPLIB_WORK_DIR}/ti/dsplib; | ||
44 | xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v" | ||
45 | } | ||
46 | |||
47 | do_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 | |||
56 | inherit deploy | ||
57 | addtask deploy before do_build after do_install | ||
58 | |||
59 | do_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 | |||
70 | ALLOW_EMPTY_${PN} = "1" | ||
71 | FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}" | ||
72 | |||
73 | INSANE_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" | |||
17 | export DSP_BENCHMARK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsp-benchmark-tree" | 17 | export DSP_BENCHMARK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsp-benchmark-tree" |
18 | export DSPLIB_C64P_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c64p-tree" | 18 | export DSPLIB_C64P_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c64p-tree" |
19 | export DSPLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c674x-tree" | 19 | export DSPLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c674x-tree" |
20 | export DSPLIB_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-tree" | 20 | export DSPLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c66x-tree" |
21 | export DVSDK_DEMOS_INSTALL_DIR_RECIPE= "${installdir}/ti-dvsdk-demos-tree" | 21 | export DVSDK_DEMOS_INSTALL_DIR_RECIPE= "${installdir}/ti-dvsdk-demos-tree" |
22 | export DVTB_INSTALL_DIR_RECIPE = "${installdir}/ti-dvtb-tree" | 22 | export DVTB_INSTALL_DIR_RECIPE = "${installdir}/ti-dvtb-tree" |
23 | export EDMA3_LLD_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-tree" | 23 | export EDMA3_LLD_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-tree" |
@@ -49,7 +49,6 @@ export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree" | |||
49 | export M4_TOOLCHAIN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt-arm" | 49 | export M4_TOOLCHAIN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt-arm" |
50 | export GCC_ARM_NONE_TOOLCHAIN_RECIPE = "${installdir}/gcc-arm-none-eabi" | 50 | export GCC_ARM_NONE_TOOLCHAIN_RECIPE = "${installdir}/gcc-arm-none-eabi" |
51 | export TI_CGT_PRU_INSTALL_DIR_RECIPE = "${installdir}/cgt-pru" | 51 | export TI_CGT_PRU_INSTALL_DIR_RECIPE = "${installdir}/cgt-pru" |
52 | export DSPLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c66x-tree" | ||
53 | export MATHLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c66x-tree" | 52 | export MATHLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c66x-tree" |
54 | export MATHLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c674x-tree" | 53 | export MATHLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c674x-tree" |
55 | export IMGLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-imglib-c66x-tree" | 54 | export 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_ | |||
74 | export CODEGEN_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEGEN_INSTALL_DIR_RECIPE}" | 73 | export CODEGEN_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEGEN_INSTALL_DIR_RECIPE}" |
75 | export DMAI_INSTALL_DIR = "${STAGING_DIR_TARGET}${DMAI_INSTALL_DIR_RECIPE}" | 74 | export DMAI_INSTALL_DIR = "${STAGING_DIR_TARGET}${DMAI_INSTALL_DIR_RECIPE}" |
76 | export DSP_BENCHMARK_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSP_BENCHMARK_INSTALL_DIR_RECIPE}" | 75 | export DSP_BENCHMARK_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSP_BENCHMARK_INSTALL_DIR_RECIPE}" |
77 | export DSPLIB_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_INSTALL_DIR_RECIPE}" | ||
78 | export EDMA3_LLD_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_INSTALL_DIR_RECIPE}" | 76 | export EDMA3_LLD_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_INSTALL_DIR_RECIPE}" |
79 | export EDMA3_LLD_SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE}" | 77 | export EDMA3_LLD_SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE}" |
80 | export FASTMATHLIB_C674P_INSTALL_DIR = "${STAGING_DIR_TARGET}${FASTMATHLIB_C674P_INSTALL_DIR_RECIPE}" | 78 | export 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 | |||
100 | export GCC_ARM_NONE_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}" | 98 | export GCC_ARM_NONE_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}" |
101 | export TI_CGT_PRU_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}" | 99 | export TI_CGT_PRU_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}" |
102 | export SWTOOLS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}" | 100 | export SWTOOLS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}" |
101 | export DSPLIB_C64P_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}" | ||
102 | export DSPLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}" | ||
103 | export DSPLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}" | 103 | export DSPLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}" |
104 | export MATHLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}" | 104 | export MATHLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}" |
105 | export MATHLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}" | 105 | export MATHLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}" |