All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
@ 2018-09-06 17:46 Jianzhong Xu
  2018-09-11 13:17 ` [EXTERNAL] " Jacob Stiffler
  0 siblings, 1 reply; 19+ messages in thread
From: Jianzhong Xu @ 2018-09-06 17:46 UTC (permalink / raw)
  To: meta-ti

Signed-off-by: Jianzhong Xu <xuj@ti.com>
---
Change from previous version of patch
Corrected typo: MATHLIB_C674INSTALL_XXX should have been MATHLIB_C674_INSTALL_XXX
---
---
 recipes-ti/dsplib/dsplib-c64xp_git.bb    |  9 ++++
 recipes-ti/dsplib/dsplib-c66x.inc        | 30 ------------
 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb |  9 ----
 recipes-ti/dsplib/dsplib-c66x_git.bb     | 10 ++++
 recipes-ti/dsplib/dsplib-c674x_git.bb    |  9 ++++
 recipes-ti/dsplib/dsplib.inc             | 79 ++++++++++++++++++++++++++++++++
 recipes-ti/includes/ti-paths.inc         |  8 +++-
 7 files changed, 114 insertions(+), 40 deletions(-)
 create mode 100644 recipes-ti/dsplib/dsplib-c64xp_git.bb
 delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc
 delete mode 100644 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
 create mode 100644 recipes-ti/dsplib/dsplib-c66x_git.bb
 create mode 100644 recipes-ti/dsplib/dsplib-c674x_git.bb
 create mode 100644 recipes-ti/dsplib/dsplib.inc

diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb b/recipes-ti/dsplib/dsplib-c64xp_git.bb
new file mode 100644
index 0000000..1038d44
--- /dev/null
+++ b/recipes-ti/dsplib/dsplib-c64xp_git.bb
@@ -0,0 +1,9 @@
+MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
+DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
+DSPLIB_BUILD_TARGET = "c64Px"
+
+DEPENDS = ""
+
+include dsplib.inc
+
diff --git a/recipes-ti/dsplib/dsplib-c66x.inc b/recipes-ti/dsplib/dsplib-c66x.inc
deleted file mode 100644
index 7ff99c2..0000000
--- a/recipes-ti/dsplib/dsplib-c66x.inc
+++ /dev/null
@@ -1,30 +0,0 @@
-DESCRIPTION = "DSPLIB contains optimized general-purpose signal-processing routines for TI DSPs"
-HOMEPAGE = "http://www.ti.com/tool/sprc265"
-SECTION = "devel"
-LICENSE = "BSD-3-Clause"
-
-require ../includes/ti-paths.inc
-require ../includes/ti-staging.inc
-require ../includes/ti-unpack.inc
-
-COMPATIBLE_MACHINE = "omap-a15|keystone"
-
-SRC_URI = "http://software-dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=dsplib"
-
-BINFILE = "dsplib_c66x_${PV}_Linux.bin"
-TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
-TI_BIN_UNPK_CMDS = ""
-
-do_install() {
-    CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
-    install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
-    cp ${CP_ARGS} ${S}/* ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
-}
-
-ALLOW_EMPTY_${PN} = "1"
-FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
-
-INHIBIT_PACKAGE_STRIP = "1"
-INHIBIT_SYSROOT_STRIP = "1"
-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
-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 f1273f3..0000000
--- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
+++ /dev/null
@@ -1,9 +0,0 @@
-require dsplib-c66x.inc
-
-PV = "3_4_0_0"
-PR = "r1"
-
-LIC_FILES_CHKSUM = "file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8a628512f47c4bf676a"
-
-SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf"
-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 0000000..cbc25d0
--- /dev/null
+++ b/recipes-ti/dsplib/dsplib-c66x_git.bb
@@ -0,0 +1,10 @@
+MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
+DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
+DSPLIB_BUILD_TARGET = "c66x"
+
+DEPENDS = "mathlib-c66x"
+
+include dsplib.inc
+
+
diff --git a/recipes-ti/dsplib/dsplib-c674x_git.bb b/recipes-ti/dsplib/dsplib-c674x_git.bb
new file mode 100644
index 0000000..07c6892
--- /dev/null
+++ b/recipes-ti/dsplib/dsplib-c674x_git.bb
@@ -0,0 +1,9 @@
+MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
+DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
+DSPLIB_BUILD_TARGET = "c674x"
+
+DEPENDS = "mathlib-c674x"
+
+include dsplib.inc
+
diff --git a/recipes-ti/dsplib/dsplib.inc b/recipes-ti/dsplib/dsplib.inc
new file mode 100644
index 0000000..66fe0fb
--- /dev/null
+++ b/recipes-ti/dsplib/dsplib.inc
@@ -0,0 +1,79 @@
+SUMMARY = "DSPLIB contains optimized signal processing functions for TI DSPs"
+HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
+LICENSE = "BSD-3-Clause"
+
+require ../includes/ti-paths.inc
+
+PV = "3_4_0_1"
+PR = "r0"
+
+COMPATIBLE_MACHINE = "am57xx-evm|keystone|c66x|omapl1"
+
+DEPENDS += "ti-cgt6x-native \
+           ti-xdctools-native \
+           ti-sysbios \
+           doxygen-native \ 
+           zip-native \ 
+           swtools "
+
+S = "${WORKDIR}/git"
+
+SRC_URI = "git://git.ti.com/ep-processor-libraries/dsplib.git;protocol=git;branch=master"
+SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"
+
+LIC_FILES_CHKSUM = "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4d51d8af75419781591ace190b"
+
+export DSPLIB_WORK_DIR="${S}"
+export CGTOOLS_INSTALL_DIR  = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
+export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
+export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
+export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
+export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
+export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
+export INCDIR="${MATHLIB_INSTALL_DIR}/"
+
+PATH_append = ":${XDC_INSTALL_DIR}"
+
+XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"
+XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_WORK_DIR};"
+
+export XDCPATH
+
+DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
+
+do_compile() {
+	cd ${DSPLIB_WORK_DIR}/ti/dsplib;
+	xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v"
+}
+
+do_install() {
+	install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
+
+	find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
+	mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/* ${D}${DSPLIB_INSTALL_DIR_RECIPE}
+	mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata ${D}${DSPLIB_INSTALL_DIR_RECIPE}
+	rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
+}
+
+
+inherit deploy
+addtask deploy before do_build after do_install
+
+do_deploy() {
+	install -d ${DEPLOYDIR}
+	# zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
+	# and place the zip file in ${DEPLOYDIR}
+	mkdir ./${DSPLIB_PACKAGE_NAME}
+	cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/* ./${DSPLIB_PACKAGE_NAME}
+	cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata ./${DSPLIB_PACKAGE_NAME}
+	zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip ./${DSPLIB_PACKAGE_NAME}
+	rm -r ./${DSPLIB_PACKAGE_NAME}
+}
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+ALLOW_EMPTY_${PN} = "1"
+FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
+
+INSANE_SKIP_${PN}-dev = "arch"
+
diff --git a/recipes-ti/includes/ti-paths.inc b/recipes-ti/includes/ti-paths.inc
index 4f99d5e..8740b6a 100644
--- a/recipes-ti/includes/ti-paths.inc
+++ b/recipes-ti/includes/ti-paths.inc
@@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE       = "${installdir}/ti-dmai-tree"
 export DSP_BENCHMARK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsp-benchmark-tree"
 export DSPLIB_C64P_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c64p-tree"
 export DSPLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c674x-tree"
+export DSPLIB_C66_INSTALL_DIR_RECIPE  = "${installdir}/ti-dsplib-c66x-tree"
 export DSPLIB_INSTALL_DIR_RECIPE     = "${installdir}/ti-dsplib-tree"
 export DVSDK_DEMOS_INSTALL_DIR_RECIPE= "${installdir}/ti-dvsdk-demos-tree"
 export DVTB_INSTALL_DIR_RECIPE       = "${installdir}/ti-dvtb-tree"
@@ -39,6 +40,7 @@ export OSAL_INSTALL_DIR_RECIPE       = "${installdir}/ti-osal-tree"
 export RTFS_INSTALL_DIR_RECIPE       = "${installdir}/ti-rtfs-tree"
 export SYSBIOS_INSTALL_DIR_RECIPE    = "${installdir}/ti-sysbios-tree"
 export SYSLINK_INSTALL_DIR_RECIPE    = "${installdir}/ti-syslink-tree"
+export SWTOOLS_INSTALL_DIR_RECIPE    = "${installdir}/ti-swtools-tree"
 export UIA_INSTALL_DIR_RECIPE        = "${installdir}/ti-uia-tree"
 export VICPLIB_INSTALL_DIR_RECIPE    = "${installdir}/ti-vicplib-tree"
 export XDAIS_INSTALL_DIR_RECIPE      = "${installdir}/ti-xdais-tree"
@@ -48,8 +50,8 @@ export OSAL_INSTALL_DIR_RECIPE       = "${installdir}/ti-osal-tree"
 export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    = "${installdir}/ti-cgt-arm"
 export GCC_ARM_NONE_TOOLCHAIN_RECIPE      = "${installdir}/gcc-arm-none-eabi"
 export TI_CGT_PRU_INSTALL_DIR_RECIPE      = "${installdir}/cgt-pru"
-export DSPLIB_C66_INSTALL_DIR_RECIPE      = "${installdir}/ti-dsplib-c66x-tree"
 export MATHLIB_C66_INSTALL_DIR_RECIPE     = "${installdir}/ti-mathlib-c66x-tree"
+export MATHLIB_C674_INSTALL_DIR_RECIPE    = "${installdir}/ti-mathlib-c674x-tree"
 export IMGLIB_C66_INSTALL_DIR_RECIPE      = "${installdir}/ti-imglib-c66x-tree"
 export VLIB_C66_INSTALL_DIR_RECIPE        = "${installdir}/ti-vlib-c66x-tree"
 export CG_XML_INSTALL_DIR_RECIPE     = "${installdir}/ti-cg-xml-tree"
@@ -95,7 +97,11 @@ export OSAL_INSTALL_DIR       = "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}
 export M4_TOOLCHAIN_INSTALL_DIR    = "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
 export GCC_ARM_NONE_TOOLCHAIN      = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
 export TI_CGT_PRU_INSTALL_DIR      = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
+export SWTOOLS_INSTALL_DIR         = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
+export DSPLIB_C64P_INSTALL_DIR     = "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
+export DSPLIB_C674_INSTALL_DIR     = "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
 export DSPLIB_C66_INSTALL_DIR      = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
+export MATHLIB_C674_INSTALL_DIR    = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
 export MATHLIB_C66_INSTALL_DIR     = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
 export IMGLIB_C66_INSTALL_DIR      = "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
 export VLIB_C66_INSTALL_DIR        = "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 19+ messages in thread

* Re: [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
  2018-09-06 17:46 [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB Jianzhong Xu
@ 2018-09-11 13:17 ` Jacob Stiffler
  2018-09-12 19:13   ` Denys Dmytriyenko
  0 siblings, 1 reply; 19+ messages in thread
From: Jacob Stiffler @ 2018-09-11 13:17 UTC (permalink / raw)
  To: Jianzhong Xu, meta-ti

ACK


Denys,

Can you apply these patches to the ti2018.03 branch?


Thank you,

Jake


On 9/6/2018 1:46 PM, Jianzhong Xu wrote:
> Signed-off-by: Jianzhong Xu <xuj@ti.com>
> ---
> Change from previous version of patch
> Corrected typo: MATHLIB_C674INSTALL_XXX should have been MATHLIB_C674_INSTALL_XXX
> ---
> ---
>   recipes-ti/dsplib/dsplib-c64xp_git.bb    |  9 ++++
>   recipes-ti/dsplib/dsplib-c66x.inc        | 30 ------------
>   recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb |  9 ----
>   recipes-ti/dsplib/dsplib-c66x_git.bb     | 10 ++++
>   recipes-ti/dsplib/dsplib-c674x_git.bb    |  9 ++++
>   recipes-ti/dsplib/dsplib.inc             | 79 ++++++++++++++++++++++++++++++++
>   recipes-ti/includes/ti-paths.inc         |  8 +++-
>   7 files changed, 114 insertions(+), 40 deletions(-)
>   create mode 100644 recipes-ti/dsplib/dsplib-c64xp_git.bb
>   delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc
>   delete mode 100644 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
>   create mode 100644 recipes-ti/dsplib/dsplib-c66x_git.bb
>   create mode 100644 recipes-ti/dsplib/dsplib-c674x_git.bb
>   create mode 100644 recipes-ti/dsplib/dsplib.inc
>
> diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> new file mode 100644
> index 0000000..1038d44
> --- /dev/null
> +++ b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> @@ -0,0 +1,9 @@
> +MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
> +DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> +DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
> +DSPLIB_BUILD_TARGET = "c64Px"
> +
> +DEPENDS = ""
> +
> +include dsplib.inc
> +
> diff --git a/recipes-ti/dsplib/dsplib-c66x.inc b/recipes-ti/dsplib/dsplib-c66x.inc
> deleted file mode 100644
> index 7ff99c2..0000000
> --- a/recipes-ti/dsplib/dsplib-c66x.inc
> +++ /dev/null
> @@ -1,30 +0,0 @@
> -DESCRIPTION = "DSPLIB contains optimized general-purpose signal-processing routines for TI DSPs"
> -HOMEPAGE = "http://www.ti.com/tool/sprc265"
> -SECTION = "devel"
> -LICENSE = "BSD-3-Clause"
> -
> -require ../includes/ti-paths.inc
> -require ../includes/ti-staging.inc
> -require ../includes/ti-unpack.inc
> -
> -COMPATIBLE_MACHINE = "omap-a15|keystone"
> -
> -SRC_URI = "http://software-dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=dsplib"
> -
> -BINFILE = "dsplib_c66x_${PV}_Linux.bin"
> -TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
> -TI_BIN_UNPK_CMDS = ""
> -
> -do_install() {
> -    CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
> -    install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> -    cp ${CP_ARGS} ${S}/* ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> -}
> -
> -ALLOW_EMPTY_${PN} = "1"
> -FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> -
> -INHIBIT_PACKAGE_STRIP = "1"
> -INHIBIT_SYSROOT_STRIP = "1"
> -INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> -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 f1273f3..0000000
> --- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> +++ /dev/null
> @@ -1,9 +0,0 @@
> -require dsplib-c66x.inc
> -
> -PV = "3_4_0_0"
> -PR = "r1"
> -
> -LIC_FILES_CHKSUM = "file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8a628512f47c4bf676a"
> -
> -SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf"
> -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 0000000..cbc25d0
> --- /dev/null
> +++ b/recipes-ti/dsplib/dsplib-c66x_git.bb
> @@ -0,0 +1,10 @@
> +MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
> +DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> +DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
> +DSPLIB_BUILD_TARGET = "c66x"
> +
> +DEPENDS = "mathlib-c66x"
> +
> +include dsplib.inc
> +
> +
> diff --git a/recipes-ti/dsplib/dsplib-c674x_git.bb b/recipes-ti/dsplib/dsplib-c674x_git.bb
> new file mode 100644
> index 0000000..07c6892
> --- /dev/null
> +++ b/recipes-ti/dsplib/dsplib-c674x_git.bb
> @@ -0,0 +1,9 @@
> +MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
> +DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> +DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
> +DSPLIB_BUILD_TARGET = "c674x"
> +
> +DEPENDS = "mathlib-c674x"
> +
> +include dsplib.inc
> +
> diff --git a/recipes-ti/dsplib/dsplib.inc b/recipes-ti/dsplib/dsplib.inc
> new file mode 100644
> index 0000000..66fe0fb
> --- /dev/null
> +++ b/recipes-ti/dsplib/dsplib.inc
> @@ -0,0 +1,79 @@
> +SUMMARY = "DSPLIB contains optimized signal processing functions for TI DSPs"
> +HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
> +LICENSE = "BSD-3-Clause"
> +
> +require ../includes/ti-paths.inc
> +
> +PV = "3_4_0_1"
> +PR = "r0"
> +
> +COMPATIBLE_MACHINE = "am57xx-evm|keystone|c66x|omapl1"
> +
> +DEPENDS += "ti-cgt6x-native \
> +           ti-xdctools-native \
> +           ti-sysbios \
> +           doxygen-native \
> +           zip-native \
> +           swtools "
> +
> +S = "${WORKDIR}/git"
> +
> +SRC_URI = "git://git.ti.com/ep-processor-libraries/dsplib.git;protocol=git;branch=master"
> +SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"
> +
> +LIC_FILES_CHKSUM = "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4d51d8af75419781591ace190b"
> +
> +export DSPLIB_WORK_DIR="${S}"
> +export CGTOOLS_INSTALL_DIR  = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
> +export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> +export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> +export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
> +export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
> +export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
> +export INCDIR="${MATHLIB_INSTALL_DIR}/"
> +
> +PATH_append = ":${XDC_INSTALL_DIR}"
> +
> +XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"
> +XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_WORK_DIR};"
> +
> +export XDCPATH
> +
> +DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
> +
> +do_compile() {
> +	cd ${DSPLIB_WORK_DIR}/ti/dsplib;
> +	xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v"
> +}
> +
> +do_install() {
> +	install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> +
> +	find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
> +	mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/* ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> +	mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> +	rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
> +}
> +
> +
> +inherit deploy
> +addtask deploy before do_build after do_install
> +
> +do_deploy() {
> +	install -d ${DEPLOYDIR}
> +	# zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> +	# and place the zip file in ${DEPLOYDIR}
> +	mkdir ./${DSPLIB_PACKAGE_NAME}
> +	cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/* ./${DSPLIB_PACKAGE_NAME}
> +	cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata ./${DSPLIB_PACKAGE_NAME}
> +	zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip ./${DSPLIB_PACKAGE_NAME}
> +	rm -r ./${DSPLIB_PACKAGE_NAME}
> +}
> +
> +PACKAGE_ARCH = "${MACHINE_ARCH}"
> +
> +ALLOW_EMPTY_${PN} = "1"
> +FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
> +
> +INSANE_SKIP_${PN}-dev = "arch"
> +
> diff --git a/recipes-ti/includes/ti-paths.inc b/recipes-ti/includes/ti-paths.inc
> index 4f99d5e..8740b6a 100644
> --- a/recipes-ti/includes/ti-paths.inc
> +++ b/recipes-ti/includes/ti-paths.inc
> @@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE       = "${installdir}/ti-dmai-tree"
>   export DSP_BENCHMARK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsp-benchmark-tree"
>   export DSPLIB_C64P_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c64p-tree"
>   export DSPLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c674x-tree"
> +export DSPLIB_C66_INSTALL_DIR_RECIPE  = "${installdir}/ti-dsplib-c66x-tree"
>   export DSPLIB_INSTALL_DIR_RECIPE     = "${installdir}/ti-dsplib-tree"
>   export DVSDK_DEMOS_INSTALL_DIR_RECIPE= "${installdir}/ti-dvsdk-demos-tree"
>   export DVTB_INSTALL_DIR_RECIPE       = "${installdir}/ti-dvtb-tree"
> @@ -39,6 +40,7 @@ export OSAL_INSTALL_DIR_RECIPE       = "${installdir}/ti-osal-tree"
>   export RTFS_INSTALL_DIR_RECIPE       = "${installdir}/ti-rtfs-tree"
>   export SYSBIOS_INSTALL_DIR_RECIPE    = "${installdir}/ti-sysbios-tree"
>   export SYSLINK_INSTALL_DIR_RECIPE    = "${installdir}/ti-syslink-tree"
> +export SWTOOLS_INSTALL_DIR_RECIPE    = "${installdir}/ti-swtools-tree"
>   export UIA_INSTALL_DIR_RECIPE        = "${installdir}/ti-uia-tree"
>   export VICPLIB_INSTALL_DIR_RECIPE    = "${installdir}/ti-vicplib-tree"
>   export XDAIS_INSTALL_DIR_RECIPE      = "${installdir}/ti-xdais-tree"
> @@ -48,8 +50,8 @@ export OSAL_INSTALL_DIR_RECIPE       = "${installdir}/ti-osal-tree"
>   export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    = "${installdir}/ti-cgt-arm"
>   export GCC_ARM_NONE_TOOLCHAIN_RECIPE      = "${installdir}/gcc-arm-none-eabi"
>   export TI_CGT_PRU_INSTALL_DIR_RECIPE      = "${installdir}/cgt-pru"
> -export DSPLIB_C66_INSTALL_DIR_RECIPE      = "${installdir}/ti-dsplib-c66x-tree"
>   export MATHLIB_C66_INSTALL_DIR_RECIPE     = "${installdir}/ti-mathlib-c66x-tree"
> +export MATHLIB_C674_INSTALL_DIR_RECIPE    = "${installdir}/ti-mathlib-c674x-tree"
>   export IMGLIB_C66_INSTALL_DIR_RECIPE      = "${installdir}/ti-imglib-c66x-tree"
>   export VLIB_C66_INSTALL_DIR_RECIPE        = "${installdir}/ti-vlib-c66x-tree"
>   export CG_XML_INSTALL_DIR_RECIPE     = "${installdir}/ti-cg-xml-tree"
> @@ -95,7 +97,11 @@ export OSAL_INSTALL_DIR       = "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}
>   export M4_TOOLCHAIN_INSTALL_DIR    = "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
>   export GCC_ARM_NONE_TOOLCHAIN      = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
>   export TI_CGT_PRU_INSTALL_DIR      = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
> +export SWTOOLS_INSTALL_DIR         = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
> +export DSPLIB_C64P_INSTALL_DIR     = "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> +export DSPLIB_C674_INSTALL_DIR     = "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
>   export DSPLIB_C66_INSTALL_DIR      = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> +export MATHLIB_C674_INSTALL_DIR    = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
>   export MATHLIB_C66_INSTALL_DIR     = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
>   export IMGLIB_C66_INSTALL_DIR      = "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
>   export VLIB_C66_INSTALL_DIR        = "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
  2018-09-11 13:17 ` [EXTERNAL] " Jacob Stiffler
@ 2018-09-12 19:13   ` Denys Dmytriyenko
  2018-09-12 19:36     ` Jacob Stiffler
  2018-09-12 19:40     ` Xu, Jianzhong
  0 siblings, 2 replies; 19+ messages in thread
From: Denys Dmytriyenko @ 2018-09-12 19:13 UTC (permalink / raw)
  To: Jacob Stiffler; +Cc: meta-ti

Jake,

I'll give it a look - I assume you want the 3 most recent patches, I don't 
think versioning was consistent...

Denys


On Tue, Sep 11, 2018 at 09:17:49AM -0400, Jacob Stiffler wrote:
> ACK
> 
> 
> Denys,
> 
> Can you apply these patches to the ti2018.03 branch?
> 
> 
> Thank you,
> 
> Jake
> 
> 
> On 9/6/2018 1:46 PM, Jianzhong Xu wrote:
> >Signed-off-by: Jianzhong Xu <xuj@ti.com>
> >---
> >Change from previous version of patch
> >Corrected typo: MATHLIB_C674INSTALL_XXX should have been MATHLIB_C674_INSTALL_XXX
> >---
> >---
> >  recipes-ti/dsplib/dsplib-c64xp_git.bb    |  9 ++++
> >  recipes-ti/dsplib/dsplib-c66x.inc        | 30 ------------
> >  recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb |  9 ----
> >  recipes-ti/dsplib/dsplib-c66x_git.bb     | 10 ++++
> >  recipes-ti/dsplib/dsplib-c674x_git.bb    |  9 ++++
> >  recipes-ti/dsplib/dsplib.inc             | 79 ++++++++++++++++++++++++++++++++
> >  recipes-ti/includes/ti-paths.inc         |  8 +++-
> >  7 files changed, 114 insertions(+), 40 deletions(-)
> >  create mode 100644 recipes-ti/dsplib/dsplib-c64xp_git.bb
> >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc
> >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> >  create mode 100644 recipes-ti/dsplib/dsplib-c66x_git.bb
> >  create mode 100644 recipes-ti/dsplib/dsplib-c674x_git.bb
> >  create mode 100644 recipes-ti/dsplib/dsplib.inc
> >
> >diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >new file mode 100644
> >index 0000000..1038d44
> >--- /dev/null
> >+++ b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >@@ -0,0 +1,9 @@
> >+MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
> >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> >+DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
> >+DSPLIB_BUILD_TARGET = "c64Px"
> >+
> >+DEPENDS = ""
> >+
> >+include dsplib.inc
> >+
> >diff --git a/recipes-ti/dsplib/dsplib-c66x.inc b/recipes-ti/dsplib/dsplib-c66x.inc
> >deleted file mode 100644
> >index 7ff99c2..0000000
> >--- a/recipes-ti/dsplib/dsplib-c66x.inc
> >+++ /dev/null
> >@@ -1,30 +0,0 @@
> >-DESCRIPTION = "DSPLIB contains optimized general-purpose signal-processing routines for TI DSPs"
> >-HOMEPAGE = "http://www.ti.com/tool/sprc265"
> >-SECTION = "devel"
> >-LICENSE = "BSD-3-Clause"
> >-
> >-require ../includes/ti-paths.inc
> >-require ../includes/ti-staging.inc
> >-require ../includes/ti-unpack.inc
> >-
> >-COMPATIBLE_MACHINE = "omap-a15|keystone"
> >-
> >-SRC_URI = "http://software-dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=dsplib"
> >-
> >-BINFILE = "dsplib_c66x_${PV}_Linux.bin"
> >-TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
> >-TI_BIN_UNPK_CMDS = ""
> >-
> >-do_install() {
> >-    CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
> >-    install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> >-    cp ${CP_ARGS} ${S}/* ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> >-}
> >-
> >-ALLOW_EMPTY_${PN} = "1"
> >-FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >-
> >-INHIBIT_PACKAGE_STRIP = "1"
> >-INHIBIT_SYSROOT_STRIP = "1"
> >-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> >-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 f1273f3..0000000
> >--- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> >+++ /dev/null
> >@@ -1,9 +0,0 @@
> >-require dsplib-c66x.inc
> >-
> >-PV = "3_4_0_0"
> >-PR = "r1"
> >-
> >-LIC_FILES_CHKSUM = "file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8a628512f47c4bf676a"
> >-
> >-SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf"
> >-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 0000000..cbc25d0
> >--- /dev/null
> >+++ b/recipes-ti/dsplib/dsplib-c66x_git.bb
> >@@ -0,0 +1,10 @@
> >+MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
> >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >+DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
> >+DSPLIB_BUILD_TARGET = "c66x"
> >+
> >+DEPENDS = "mathlib-c66x"
> >+
> >+include dsplib.inc
> >+
> >+
> >diff --git a/recipes-ti/dsplib/dsplib-c674x_git.bb b/recipes-ti/dsplib/dsplib-c674x_git.bb
> >new file mode 100644
> >index 0000000..07c6892
> >--- /dev/null
> >+++ b/recipes-ti/dsplib/dsplib-c674x_git.bb
> >@@ -0,0 +1,9 @@
> >+MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
> >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> >+DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
> >+DSPLIB_BUILD_TARGET = "c674x"
> >+
> >+DEPENDS = "mathlib-c674x"
> >+
> >+include dsplib.inc
> >+
> >diff --git a/recipes-ti/dsplib/dsplib.inc b/recipes-ti/dsplib/dsplib.inc
> >new file mode 100644
> >index 0000000..66fe0fb
> >--- /dev/null
> >+++ b/recipes-ti/dsplib/dsplib.inc
> >@@ -0,0 +1,79 @@
> >+SUMMARY = "DSPLIB contains optimized signal processing functions for TI DSPs"
> >+HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
> >+LICENSE = "BSD-3-Clause"
> >+
> >+require ../includes/ti-paths.inc
> >+
> >+PV = "3_4_0_1"
> >+PR = "r0"
> >+
> >+COMPATIBLE_MACHINE = "am57xx-evm|keystone|c66x|omapl1"
> >+
> >+DEPENDS += "ti-cgt6x-native \
> >+           ti-xdctools-native \
> >+           ti-sysbios \
> >+           doxygen-native \
> >+           zip-native \
> >+           swtools "
> >+
> >+S = "${WORKDIR}/git"
> >+
> >+SRC_URI = "git://git.ti.com/ep-processor-libraries/dsplib.git;protocol=git;branch=master"
> >+SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"
> >+
> >+LIC_FILES_CHKSUM = "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4d51d8af75419781591ace190b"
> >+
> >+export DSPLIB_WORK_DIR="${S}"
> >+export CGTOOLS_INSTALL_DIR  = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
> >+export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> >+export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> >+export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
> >+export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
> >+export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
> >+export INCDIR="${MATHLIB_INSTALL_DIR}/"
> >+
> >+PATH_append = ":${XDC_INSTALL_DIR}"
> >+
> >+XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"
> >+XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_WORK_DIR};"
> >+
> >+export XDCPATH
> >+
> >+DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
> >+
> >+do_compile() {
> >+	cd ${DSPLIB_WORK_DIR}/ti/dsplib;
> >+	xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v"
> >+}
> >+
> >+do_install() {
> >+	install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >+
> >+	find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
> >+	mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/* ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >+	mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >+	rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
> >+}
> >+
> >+
> >+inherit deploy
> >+addtask deploy before do_build after do_install
> >+
> >+do_deploy() {
> >+	install -d ${DEPLOYDIR}
> >+	# zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >+	# and place the zip file in ${DEPLOYDIR}
> >+	mkdir ./${DSPLIB_PACKAGE_NAME}
> >+	cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/* ./${DSPLIB_PACKAGE_NAME}
> >+	cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata ./${DSPLIB_PACKAGE_NAME}
> >+	zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip ./${DSPLIB_PACKAGE_NAME}
> >+	rm -r ./${DSPLIB_PACKAGE_NAME}
> >+}
> >+
> >+PACKAGE_ARCH = "${MACHINE_ARCH}"
> >+
> >+ALLOW_EMPTY_${PN} = "1"
> >+FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
> >+
> >+INSANE_SKIP_${PN}-dev = "arch"
> >+
> >diff --git a/recipes-ti/includes/ti-paths.inc b/recipes-ti/includes/ti-paths.inc
> >index 4f99d5e..8740b6a 100644
> >--- a/recipes-ti/includes/ti-paths.inc
> >+++ b/recipes-ti/includes/ti-paths.inc
> >@@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE       = "${installdir}/ti-dmai-tree"
> >  export DSP_BENCHMARK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsp-benchmark-tree"
> >  export DSPLIB_C64P_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c64p-tree"
> >  export DSPLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c674x-tree"
> >+export DSPLIB_C66_INSTALL_DIR_RECIPE  = "${installdir}/ti-dsplib-c66x-tree"
> >  export DSPLIB_INSTALL_DIR_RECIPE     = "${installdir}/ti-dsplib-tree"
> >  export DVSDK_DEMOS_INSTALL_DIR_RECIPE= "${installdir}/ti-dvsdk-demos-tree"
> >  export DVTB_INSTALL_DIR_RECIPE       = "${installdir}/ti-dvtb-tree"
> >@@ -39,6 +40,7 @@ export OSAL_INSTALL_DIR_RECIPE       = "${installdir}/ti-osal-tree"
> >  export RTFS_INSTALL_DIR_RECIPE       = "${installdir}/ti-rtfs-tree"
> >  export SYSBIOS_INSTALL_DIR_RECIPE    = "${installdir}/ti-sysbios-tree"
> >  export SYSLINK_INSTALL_DIR_RECIPE    = "${installdir}/ti-syslink-tree"
> >+export SWTOOLS_INSTALL_DIR_RECIPE    = "${installdir}/ti-swtools-tree"
> >  export UIA_INSTALL_DIR_RECIPE        = "${installdir}/ti-uia-tree"
> >  export VICPLIB_INSTALL_DIR_RECIPE    = "${installdir}/ti-vicplib-tree"
> >  export XDAIS_INSTALL_DIR_RECIPE      = "${installdir}/ti-xdais-tree"
> >@@ -48,8 +50,8 @@ export OSAL_INSTALL_DIR_RECIPE       = "${installdir}/ti-osal-tree"
> >  export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    = "${installdir}/ti-cgt-arm"
> >  export GCC_ARM_NONE_TOOLCHAIN_RECIPE      = "${installdir}/gcc-arm-none-eabi"
> >  export TI_CGT_PRU_INSTALL_DIR_RECIPE      = "${installdir}/cgt-pru"
> >-export DSPLIB_C66_INSTALL_DIR_RECIPE      = "${installdir}/ti-dsplib-c66x-tree"
> >  export MATHLIB_C66_INSTALL_DIR_RECIPE     = "${installdir}/ti-mathlib-c66x-tree"
> >+export MATHLIB_C674_INSTALL_DIR_RECIPE    = "${installdir}/ti-mathlib-c674x-tree"
> >  export IMGLIB_C66_INSTALL_DIR_RECIPE      = "${installdir}/ti-imglib-c66x-tree"
> >  export VLIB_C66_INSTALL_DIR_RECIPE        = "${installdir}/ti-vlib-c66x-tree"
> >  export CG_XML_INSTALL_DIR_RECIPE     = "${installdir}/ti-cg-xml-tree"
> >@@ -95,7 +97,11 @@ export OSAL_INSTALL_DIR       = "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}
> >  export M4_TOOLCHAIN_INSTALL_DIR    = "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
> >  export GCC_ARM_NONE_TOOLCHAIN      = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
> >  export TI_CGT_PRU_INSTALL_DIR      = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
> >+export SWTOOLS_INSTALL_DIR         = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
> >+export DSPLIB_C64P_INSTALL_DIR     = "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> >+export DSPLIB_C674_INSTALL_DIR     = "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> >  export DSPLIB_C66_INSTALL_DIR      = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >+export MATHLIB_C674_INSTALL_DIR    = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
> >  export MATHLIB_C66_INSTALL_DIR     = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
> >  export IMGLIB_C66_INSTALL_DIR      = "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
> >  export VLIB_C66_INSTALL_DIR        = "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
> 
> -- 
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
  2018-09-12 19:13   ` Denys Dmytriyenko
@ 2018-09-12 19:36     ` Jacob Stiffler
  2018-09-12 19:40     ` Xu, Jianzhong
  1 sibling, 0 replies; 19+ messages in thread
From: Jacob Stiffler @ 2018-09-12 19:36 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: meta-ti



On 9/12/2018 3:13 PM, Denys Dmytriyenko wrote:
> Jake,
>
> I'll give it a look - I assume you want the 3 most recent patches, I don't
> think versioning was consistent...

Yes. I build tested these patches:

http://patchwork.dal.design.ti.com/patch/40449/
http://patchwork.dal.design.ti.com/patch/40450/
http://patchwork.dal.design.ti.com/patch/40555/

>
> Denys
>
>
> On Tue, Sep 11, 2018 at 09:17:49AM -0400, Jacob Stiffler wrote:
>> ACK
>>
>>
>> Denys,
>>
>> Can you apply these patches to the ti2018.03 branch?
>>
>>
>> Thank you,
>>
>> Jake
>>
>>
>> On 9/6/2018 1:46 PM, Jianzhong Xu wrote:
>>> Signed-off-by: Jianzhong Xu <xuj@ti.com>
>>> ---
>>> Change from previous version of patch
>>> Corrected typo: MATHLIB_C674INSTALL_XXX should have been MATHLIB_C674_INSTALL_XXX
>>> ---
>>> ---
>>>   recipes-ti/dsplib/dsplib-c64xp_git.bb    |  9 ++++
>>>   recipes-ti/dsplib/dsplib-c66x.inc        | 30 ------------
>>>   recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb |  9 ----
>>>   recipes-ti/dsplib/dsplib-c66x_git.bb     | 10 ++++
>>>   recipes-ti/dsplib/dsplib-c674x_git.bb    |  9 ++++
>>>   recipes-ti/dsplib/dsplib.inc             | 79 ++++++++++++++++++++++++++++++++
>>>   recipes-ti/includes/ti-paths.inc         |  8 +++-
>>>   7 files changed, 114 insertions(+), 40 deletions(-)
>>>   create mode 100644 recipes-ti/dsplib/dsplib-c64xp_git.bb
>>>   delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc
>>>   delete mode 100644 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
>>>   create mode 100644 recipes-ti/dsplib/dsplib-c66x_git.bb
>>>   create mode 100644 recipes-ti/dsplib/dsplib-c674x_git.bb
>>>   create mode 100644 recipes-ti/dsplib/dsplib.inc
>>>
>>> diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb b/recipes-ti/dsplib/dsplib-c64xp_git.bb
>>> new file mode 100644
>>> index 0000000..1038d44
>>> --- /dev/null
>>> +++ b/recipes-ti/dsplib/dsplib-c64xp_git.bb
>>> @@ -0,0 +1,9 @@
>>> +MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
>>> +DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
>>> +DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
>>> +DSPLIB_BUILD_TARGET = "c64Px"
>>> +
>>> +DEPENDS = ""
>>> +
>>> +include dsplib.inc
>>> +
>>> diff --git a/recipes-ti/dsplib/dsplib-c66x.inc b/recipes-ti/dsplib/dsplib-c66x.inc
>>> deleted file mode 100644
>>> index 7ff99c2..0000000
>>> --- a/recipes-ti/dsplib/dsplib-c66x.inc
>>> +++ /dev/null
>>> @@ -1,30 +0,0 @@
>>> -DESCRIPTION = "DSPLIB contains optimized general-purpose signal-processing routines for TI DSPs"
>>> -HOMEPAGE = "http://www.ti.com/tool/sprc265"
>>> -SECTION = "devel"
>>> -LICENSE = "BSD-3-Clause"
>>> -
>>> -require ../includes/ti-paths.inc
>>> -require ../includes/ti-staging.inc
>>> -require ../includes/ti-unpack.inc
>>> -
>>> -COMPATIBLE_MACHINE = "omap-a15|keystone"
>>> -
>>> -SRC_URI = "http://software-dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=dsplib"
>>> -
>>> -BINFILE = "dsplib_c66x_${PV}_Linux.bin"
>>> -TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
>>> -TI_BIN_UNPK_CMDS = ""
>>> -
>>> -do_install() {
>>> -    CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
>>> -    install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
>>> -    cp ${CP_ARGS} ${S}/* ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
>>> -}
>>> -
>>> -ALLOW_EMPTY_${PN} = "1"
>>> -FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
>>> -
>>> -INHIBIT_PACKAGE_STRIP = "1"
>>> -INHIBIT_SYSROOT_STRIP = "1"
>>> -INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
>>> -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 f1273f3..0000000
>>> --- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
>>> +++ /dev/null
>>> @@ -1,9 +0,0 @@
>>> -require dsplib-c66x.inc
>>> -
>>> -PV = "3_4_0_0"
>>> -PR = "r1"
>>> -
>>> -LIC_FILES_CHKSUM = "file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8a628512f47c4bf676a"
>>> -
>>> -SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf"
>>> -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 0000000..cbc25d0
>>> --- /dev/null
>>> +++ b/recipes-ti/dsplib/dsplib-c66x_git.bb
>>> @@ -0,0 +1,10 @@
>>> +MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
>>> +DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
>>> +DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
>>> +DSPLIB_BUILD_TARGET = "c66x"
>>> +
>>> +DEPENDS = "mathlib-c66x"
>>> +
>>> +include dsplib.inc
>>> +
>>> +
>>> diff --git a/recipes-ti/dsplib/dsplib-c674x_git.bb b/recipes-ti/dsplib/dsplib-c674x_git.bb
>>> new file mode 100644
>>> index 0000000..07c6892
>>> --- /dev/null
>>> +++ b/recipes-ti/dsplib/dsplib-c674x_git.bb
>>> @@ -0,0 +1,9 @@
>>> +MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
>>> +DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
>>> +DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
>>> +DSPLIB_BUILD_TARGET = "c674x"
>>> +
>>> +DEPENDS = "mathlib-c674x"
>>> +
>>> +include dsplib.inc
>>> +
>>> diff --git a/recipes-ti/dsplib/dsplib.inc b/recipes-ti/dsplib/dsplib.inc
>>> new file mode 100644
>>> index 0000000..66fe0fb
>>> --- /dev/null
>>> +++ b/recipes-ti/dsplib/dsplib.inc
>>> @@ -0,0 +1,79 @@
>>> +SUMMARY = "DSPLIB contains optimized signal processing functions for TI DSPs"
>>> +HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
>>> +LICENSE = "BSD-3-Clause"
>>> +
>>> +require ../includes/ti-paths.inc
>>> +
>>> +PV = "3_4_0_1"
>>> +PR = "r0"
>>> +
>>> +COMPATIBLE_MACHINE = "am57xx-evm|keystone|c66x|omapl1"
>>> +
>>> +DEPENDS += "ti-cgt6x-native \
>>> +           ti-xdctools-native \
>>> +           ti-sysbios \
>>> +           doxygen-native \
>>> +           zip-native \
>>> +           swtools "
>>> +
>>> +S = "${WORKDIR}/git"
>>> +
>>> +SRC_URI = "git://git.ti.com/ep-processor-libraries/dsplib.git;protocol=git;branch=master"
>>> +SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"
>>> +
>>> +LIC_FILES_CHKSUM = "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4d51d8af75419781591ace190b"
>>> +
>>> +export DSPLIB_WORK_DIR="${S}"
>>> +export CGTOOLS_INSTALL_DIR  = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
>>> +export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
>>> +export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
>>> +export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
>>> +export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
>>> +export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
>>> +export INCDIR="${MATHLIB_INSTALL_DIR}/"
>>> +
>>> +PATH_append = ":${XDC_INSTALL_DIR}"
>>> +
>>> +XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"
>>> +XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_WORK_DIR};"
>>> +
>>> +export XDCPATH
>>> +
>>> +DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
>>> +
>>> +do_compile() {
>>> +	cd ${DSPLIB_WORK_DIR}/ti/dsplib;
>>> +	xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v"
>>> +}
>>> +
>>> +do_install() {
>>> +	install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>>> +
>>> +	find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
>>> +	mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/* ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>>> +	mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>>> +	rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
>>> +}
>>> +
>>> +
>>> +inherit deploy
>>> +addtask deploy before do_build after do_install
>>> +
>>> +do_deploy() {
>>> +	install -d ${DEPLOYDIR}
>>> +	# zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>>> +	# and place the zip file in ${DEPLOYDIR}
>>> +	mkdir ./${DSPLIB_PACKAGE_NAME}
>>> +	cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/* ./${DSPLIB_PACKAGE_NAME}
>>> +	cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata ./${DSPLIB_PACKAGE_NAME}
>>> +	zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip ./${DSPLIB_PACKAGE_NAME}
>>> +	rm -r ./${DSPLIB_PACKAGE_NAME}
>>> +}
>>> +
>>> +PACKAGE_ARCH = "${MACHINE_ARCH}"
>>> +
>>> +ALLOW_EMPTY_${PN} = "1"
>>> +FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
>>> +
>>> +INSANE_SKIP_${PN}-dev = "arch"
>>> +
>>> diff --git a/recipes-ti/includes/ti-paths.inc b/recipes-ti/includes/ti-paths.inc
>>> index 4f99d5e..8740b6a 100644
>>> --- a/recipes-ti/includes/ti-paths.inc
>>> +++ b/recipes-ti/includes/ti-paths.inc
>>> @@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE       = "${installdir}/ti-dmai-tree"
>>>   export DSP_BENCHMARK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsp-benchmark-tree"
>>>   export DSPLIB_C64P_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c64p-tree"
>>>   export DSPLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c674x-tree"
>>> +export DSPLIB_C66_INSTALL_DIR_RECIPE  = "${installdir}/ti-dsplib-c66x-tree"
>>>   export DSPLIB_INSTALL_DIR_RECIPE     = "${installdir}/ti-dsplib-tree"
>>>   export DVSDK_DEMOS_INSTALL_DIR_RECIPE= "${installdir}/ti-dvsdk-demos-tree"
>>>   export DVTB_INSTALL_DIR_RECIPE       = "${installdir}/ti-dvtb-tree"
>>> @@ -39,6 +40,7 @@ export OSAL_INSTALL_DIR_RECIPE       = "${installdir}/ti-osal-tree"
>>>   export RTFS_INSTALL_DIR_RECIPE       = "${installdir}/ti-rtfs-tree"
>>>   export SYSBIOS_INSTALL_DIR_RECIPE    = "${installdir}/ti-sysbios-tree"
>>>   export SYSLINK_INSTALL_DIR_RECIPE    = "${installdir}/ti-syslink-tree"
>>> +export SWTOOLS_INSTALL_DIR_RECIPE    = "${installdir}/ti-swtools-tree"
>>>   export UIA_INSTALL_DIR_RECIPE        = "${installdir}/ti-uia-tree"
>>>   export VICPLIB_INSTALL_DIR_RECIPE    = "${installdir}/ti-vicplib-tree"
>>>   export XDAIS_INSTALL_DIR_RECIPE      = "${installdir}/ti-xdais-tree"
>>> @@ -48,8 +50,8 @@ export OSAL_INSTALL_DIR_RECIPE       = "${installdir}/ti-osal-tree"
>>>   export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    = "${installdir}/ti-cgt-arm"
>>>   export GCC_ARM_NONE_TOOLCHAIN_RECIPE      = "${installdir}/gcc-arm-none-eabi"
>>>   export TI_CGT_PRU_INSTALL_DIR_RECIPE      = "${installdir}/cgt-pru"
>>> -export DSPLIB_C66_INSTALL_DIR_RECIPE      = "${installdir}/ti-dsplib-c66x-tree"
>>>   export MATHLIB_C66_INSTALL_DIR_RECIPE     = "${installdir}/ti-mathlib-c66x-tree"
>>> +export MATHLIB_C674_INSTALL_DIR_RECIPE    = "${installdir}/ti-mathlib-c674x-tree"
>>>   export IMGLIB_C66_INSTALL_DIR_RECIPE      = "${installdir}/ti-imglib-c66x-tree"
>>>   export VLIB_C66_INSTALL_DIR_RECIPE        = "${installdir}/ti-vlib-c66x-tree"
>>>   export CG_XML_INSTALL_DIR_RECIPE     = "${installdir}/ti-cg-xml-tree"
>>> @@ -95,7 +97,11 @@ export OSAL_INSTALL_DIR       = "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}
>>>   export M4_TOOLCHAIN_INSTALL_DIR    = "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
>>>   export GCC_ARM_NONE_TOOLCHAIN      = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
>>>   export TI_CGT_PRU_INSTALL_DIR      = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
>>> +export SWTOOLS_INSTALL_DIR         = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
>>> +export DSPLIB_C64P_INSTALL_DIR     = "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
>>> +export DSPLIB_C674_INSTALL_DIR     = "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
>>>   export DSPLIB_C66_INSTALL_DIR      = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
>>> +export MATHLIB_C674_INSTALL_DIR    = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
>>>   export MATHLIB_C66_INSTALL_DIR     = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
>>>   export IMGLIB_C66_INSTALL_DIR      = "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
>>>   export VLIB_C66_INSTALL_DIR        = "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
>> -- 
>> _______________________________________________
>> meta-ti mailing list
>> meta-ti@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/meta-ti



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
  2018-09-12 19:13   ` Denys Dmytriyenko
  2018-09-12 19:36     ` Jacob Stiffler
@ 2018-09-12 19:40     ` Xu, Jianzhong
  2018-09-12 20:20       ` Denys Dmytriyenko
  1 sibling, 1 reply; 19+ messages in thread
From: Xu, Jianzhong @ 2018-09-12 19:40 UTC (permalink / raw)
  To: Dmytriyenko, Denys, Stiffler, Jacob; +Cc: meta-ti

[-- Attachment #1: Type: text/plain, Size: 13963 bytes --]

Denys,



You're right. The versioning was inconsistent. Please use [EXTERNAL,3/3,v2] and newer versions of [EXTERNAL,2/3], [EXTERNAL,1/3]. The latter two should have had v2 in it. Please see highlights below.



[EXTERNAL,3/3,v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.<http://patchwork.dal.design.ti.com/patch/40555/>

2018-09-06

Jianzhong Xu<mailto:xuj@ti.com>

New

[EXTERNAL] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.<http://patchwork.dal.design.ti.com/patch/40553/>

2018-09-06

Jianzhong Xu<mailto:xuj@ti.com>

New

[EXTERNAL,3/3] Added DSPLIB recipe to build DSPLIB from source.<http://patchwork.dal.design.ti.com/patch/40451/>

2018-09-04

Jianzhong Xu<mailto:xuj@ti.com>

New

[EXTERNAL,2/3] Added MATHLIB recipe to build MATHLIB from source.<http://patchwork.dal.design.ti.com/patch/40450/>

2018-09-04

Jianzhong Xu<mailto:xuj@ti.com>

New

[EXTERNAL,1/3] Added SWTOOLS which is needed to build processor libs (DSPLIB, MATHLIB, etc) from source.<http://patchwork.dal.design.ti.com/patch/40449/>

2018-09-04

Jianzhong Xu<mailto:xuj@ti.com>

New




Thanks,

Jianzhong



-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, September 12, 2018 3:13 PM
To: Stiffler, Jacob
Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.



Jake,



I'll give it a look - I assume you want the 3 most recent patches, I don't

think versioning was consistent...



Denys





On Tue, Sep 11, 2018 at 09:17:49AM -0400, Jacob Stiffler wrote:

> ACK

>

>

> Denys,

>

> Can you apply these patches to the ti2018.03 branch?

>

>

> Thank you,

>

> Jake

>

>

> On 9/6/2018 1:46 PM, Jianzhong Xu wrote:

> >Signed-off-by: Jianzhong Xu <xuj@ti.com>

> >---

> >Change from previous version of patch

> >Corrected typo: MATHLIB_C674INSTALL_XXX should have been MATHLIB_C674_INSTALL_XXX

> >---

> >---

> >  recipes-ti/dsplib/dsplib-c64xp_git.bb    |  9 ++++

> >  recipes-ti/dsplib/dsplib-c66x.inc        | 30 ------------

> >  recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb |  9 ----

> >  recipes-ti/dsplib/dsplib-c66x_git.bb     | 10 ++++

> >  recipes-ti/dsplib/dsplib-c674x_git.bb    |  9 ++++

> >  recipes-ti/dsplib/dsplib.inc             | 79 ++++++++++++++++++++++++++++++++

> >  recipes-ti/includes/ti-paths.inc         |  8 +++-

> >  7 files changed, 114 insertions(+), 40 deletions(-)

> >  create mode 100644 recipes-ti/dsplib/dsplib-c64xp_git.bb

> >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc

> >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb

> >  create mode 100644 recipes-ti/dsplib/dsplib-c66x_git.bb

> >  create mode 100644 recipes-ti/dsplib/dsplib-c674x_git.bb

> >  create mode 100644 recipes-ti/dsplib/dsplib.inc

> >

> >diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb b/recipes-ti/dsplib/dsplib-c64xp_git.bb

> >new file mode 100644

> >index 0000000..1038d44

> >--- /dev/null

> >+++ b/recipes-ti/dsplib/dsplib-c64xp_git.bb

> >@@ -0,0 +1,9 @@

> >+MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"

> >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"

> >+DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"

> >+DSPLIB_BUILD_TARGET = "c64Px"

> >+

> >+DEPENDS = ""

> >+

> >+include dsplib.inc

> >+

> >diff --git a/recipes-ti/dsplib/dsplib-c66x.inc b/recipes-ti/dsplib/dsplib-c66x.inc

> >deleted file mode 100644

> >index 7ff99c2..0000000

> >--- a/recipes-ti/dsplib/dsplib-c66x.inc

> >+++ /dev/null

> >@@ -1,30 +0,0 @@

> >-DESCRIPTION = "DSPLIB contains optimized general-purpose signal-processing routines for TI DSPs"

> >-HOMEPAGE = "http://www.ti.com/tool/sprc265"

> >-SECTION = "devel"

> >-LICENSE = "BSD-3-Clause"

> >-

> >-require ../includes/ti-paths.inc

> >-require ../includes/ti-staging.inc

> >-require ../includes/ti-unpack.inc

> >-

> >-COMPATIBLE_MACHINE = "omap-a15|keystone"

> >-

> >-SRC_URI = "http://software-dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=dsplib"

> >-

> >-BINFILE = "dsplib_c66x_${PV}_Linux.bin"

> >-TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"

> >-TI_BIN_UNPK_CMDS = ""

> >-

> >-do_install() {

> >-    CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"

> >-    install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}

> >-    cp ${CP_ARGS} ${S}/* ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}

> >-}

> >-

> >-ALLOW_EMPTY_${PN} = "1"

> >-FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"

> >-

> >-INHIBIT_PACKAGE_STRIP = "1"

> >-INHIBIT_SYSROOT_STRIP = "1"

> >-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"

> >-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 f1273f3..0000000

> >--- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb

> >+++ /dev/null

> >@@ -1,9 +0,0 @@

> >-require dsplib-c66x.inc

> >-

> >-PV = "3_4_0_0"

> >-PR = "r1"

> >-

> >-LIC_FILES_CHKSUM = "file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8a628512f47c4bf676a"

> >-

> >-SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf"

> >-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 0000000..cbc25d0

> >--- /dev/null

> >+++ b/recipes-ti/dsplib/dsplib-c66x_git.bb

> >@@ -0,0 +1,10 @@

> >+MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"

> >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"

> >+DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"

> >+DSPLIB_BUILD_TARGET = "c66x"

> >+

> >+DEPENDS = "mathlib-c66x"

> >+

> >+include dsplib.inc

> >+

> >+

> >diff --git a/recipes-ti/dsplib/dsplib-c674x_git.bb b/recipes-ti/dsplib/dsplib-c674x_git.bb

> >new file mode 100644

> >index 0000000..07c6892

> >--- /dev/null

> >+++ b/recipes-ti/dsplib/dsplib-c674x_git.bb

> >@@ -0,0 +1,9 @@

> >+MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"

> >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"

> >+DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"

> >+DSPLIB_BUILD_TARGET = "c674x"

> >+

> >+DEPENDS = "mathlib-c674x"

> >+

> >+include dsplib.inc

> >+

> >diff --git a/recipes-ti/dsplib/dsplib.inc b/recipes-ti/dsplib/dsplib.inc

> >new file mode 100644

> >index 0000000..66fe0fb

> >--- /dev/null

> >+++ b/recipes-ti/dsplib/dsplib.inc

> >@@ -0,0 +1,79 @@

> >+SUMMARY = "DSPLIB contains optimized signal processing functions for TI DSPs"

> >+HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"

> >+LICENSE = "BSD-3-Clause"

> >+

> >+require ../includes/ti-paths.inc

> >+

> >+PV = "3_4_0_1"

> >+PR = "r0"

> >+

> >+COMPATIBLE_MACHINE = "am57xx-evm|keystone|c66x|omapl1"

> >+

> >+DEPENDS += "ti-cgt6x-native \

> >+           ti-xdctools-native \

> >+           ti-sysbios \

> >+           doxygen-native \

> >+           zip-native \

> >+           swtools "

> >+

> >+S = "${WORKDIR}/git"

> >+

> >+SRC_URI = "git://git.ti.com/ep-processor-libraries/dsplib.git;protocol=git;branch=master"

> >+SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"

> >+

> >+LIC_FILES_CHKSUM = "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4d51d8af75419781591ace190b"

> >+

> >+export DSPLIB_WORK_DIR="${S}"

> >+export CGTOOLS_INSTALL_DIR  = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"

> >+export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"

> >+export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"

> >+export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"

> >+export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"

> >+export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"

> >+export INCDIR="${MATHLIB_INSTALL_DIR}/"

> >+

> >+PATH_append = ":${XDC_INSTALL_DIR}"

> >+

> >+XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"

> >+XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_WORK_DIR};"

> >+

> >+export XDCPATH

> >+

> >+DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"

> >+

> >+do_compile() {

> >+       cd ${DSPLIB_WORK_DIR}/ti/dsplib;

> >+       xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v"

> >+}

> >+

> >+do_install() {

> >+       install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}

> >+

> >+       find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;

> >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/* ${D}${DSPLIB_INSTALL_DIR_RECIPE}

> >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata ${D}${DSPLIB_INSTALL_DIR_RECIPE}

> >+       rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib

> >+}

> >+

> >+

> >+inherit deploy

> >+addtask deploy before do_build after do_install

> >+

> >+do_deploy() {

> >+       install -d ${DEPLOYDIR}

> >+       # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}

> >+       # and place the zip file in ${DEPLOYDIR}

> >+       mkdir ./${DSPLIB_PACKAGE_NAME}

> >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/* ./${DSPLIB_PACKAGE_NAME}

> >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata ./${DSPLIB_PACKAGE_NAME}

> >+       zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip ./${DSPLIB_PACKAGE_NAME}

> >+       rm -r ./${DSPLIB_PACKAGE_NAME}

> >+}

> >+

> >+PACKAGE_ARCH = "${MACHINE_ARCH}"

> >+

> >+ALLOW_EMPTY_${PN} = "1"

> >+FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"

> >+

> >+INSANE_SKIP_${PN}-dev = "arch"

> >+

> >diff --git a/recipes-ti/includes/ti-paths.inc b/recipes-ti/includes/ti-paths.inc

> >index 4f99d5e..8740b6a 100644

> >--- a/recipes-ti/includes/ti-paths.inc

> >+++ b/recipes-ti/includes/ti-paths.inc

> >@@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE       = "${installdir}/ti-dmai-tree"

> >  export DSP_BENCHMARK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsp-benchmark-tree"

> >  export DSPLIB_C64P_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c64p-tree"

> >  export DSPLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c674x-tree"

> >+export DSPLIB_C66_INSTALL_DIR_RECIPE  = "${installdir}/ti-dsplib-c66x-tree"

> >  export DSPLIB_INSTALL_DIR_RECIPE     = "${installdir}/ti-dsplib-tree"

> >  export DVSDK_DEMOS_INSTALL_DIR_RECIPE= "${installdir}/ti-dvsdk-demos-tree"

> >  export DVTB_INSTALL_DIR_RECIPE       = "${installdir}/ti-dvtb-tree"

> >@@ -39,6 +40,7 @@ export OSAL_INSTALL_DIR_RECIPE       = "${installdir}/ti-osal-tree"

> >  export RTFS_INSTALL_DIR_RECIPE       = "${installdir}/ti-rtfs-tree"

> >  export SYSBIOS_INSTALL_DIR_RECIPE    = "${installdir}/ti-sysbios-tree"

> >  export SYSLINK_INSTALL_DIR_RECIPE    = "${installdir}/ti-syslink-tree"

> >+export SWTOOLS_INSTALL_DIR_RECIPE    = "${installdir}/ti-swtools-tree"

> >  export UIA_INSTALL_DIR_RECIPE        = "${installdir}/ti-uia-tree"

> >  export VICPLIB_INSTALL_DIR_RECIPE    = "${installdir}/ti-vicplib-tree"

> >  export XDAIS_INSTALL_DIR_RECIPE      = "${installdir}/ti-xdais-tree"

> >@@ -48,8 +50,8 @@ export OSAL_INSTALL_DIR_RECIPE       = "${installdir}/ti-osal-tree"

> >  export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    = "${installdir}/ti-cgt-arm"

> >  export GCC_ARM_NONE_TOOLCHAIN_RECIPE      = "${installdir}/gcc-arm-none-eabi"

> >  export TI_CGT_PRU_INSTALL_DIR_RECIPE      = "${installdir}/cgt-pru"

> >-export DSPLIB_C66_INSTALL_DIR_RECIPE      = "${installdir}/ti-dsplib-c66x-tree"

> >  export MATHLIB_C66_INSTALL_DIR_RECIPE     = "${installdir}/ti-mathlib-c66x-tree"

> >+export MATHLIB_C674_INSTALL_DIR_RECIPE    = "${installdir}/ti-mathlib-c674x-tree"

> >  export IMGLIB_C66_INSTALL_DIR_RECIPE      = "${installdir}/ti-imglib-c66x-tree"

> >  export VLIB_C66_INSTALL_DIR_RECIPE        = "${installdir}/ti-vlib-c66x-tree"

> >  export CG_XML_INSTALL_DIR_RECIPE     = "${installdir}/ti-cg-xml-tree"

> >@@ -95,7 +97,11 @@ export OSAL_INSTALL_DIR       = "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}

> >  export M4_TOOLCHAIN_INSTALL_DIR    = "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"

> >  export GCC_ARM_NONE_TOOLCHAIN      = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"

> >  export TI_CGT_PRU_INSTALL_DIR      = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"

> >+export SWTOOLS_INSTALL_DIR         = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"

> >+export DSPLIB_C64P_INSTALL_DIR     = "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"

> >+export DSPLIB_C674_INSTALL_DIR     = "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"

> >  export DSPLIB_C66_INSTALL_DIR      = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"

> >+export MATHLIB_C674_INSTALL_DIR    = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"

> >  export MATHLIB_C66_INSTALL_DIR     = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"

> >  export IMGLIB_C66_INSTALL_DIR      = "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"

> >  export VLIB_C66_INSTALL_DIR        = "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"

>

> --

> _______________________________________________

> meta-ti mailing list

> meta-ti@yoctoproject.org

> https://lists.yoctoproject.org/listinfo/meta-ti

[-- Attachment #2: Type: text/html, Size: 41527 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
  2018-09-12 19:40     ` Xu, Jianzhong
@ 2018-09-12 20:20       ` Denys Dmytriyenko
  2018-09-12 20:37         ` Dmytriyenko, Denys
  0 siblings, 1 reply; 19+ messages in thread
From: Denys Dmytriyenko @ 2018-09-12 20:20 UTC (permalink / raw)
  To: Xu, Jianzhong; +Cc: meta-ti

Thanks, merged into rocko-next for testing.

There were lots of small non-critical things I had to fix, like whitespaces, 
indentation, etc. But the biggest one is that you have to follow OpenEmbedded 
Commit Message Guidelines:

https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines


On Wed, Sep 12, 2018 at 03:40:42PM -0400, Xu, Jianzhong wrote:
>    Denys,
> 
>     
> 
>    You're right. The versioning was inconsistent. Please use
>    [EXTERNAL,3/3,v2] and newer versions of [EXTERNAL,2/3], [EXTERNAL,1/3].
>    The latter two should have had v2 in it. Please see highlights below.
> 
>     
> 
>    +------------------------------------------------------------------------+
>    |[EXTERNAL,3/3,v2] Added DSPLIB recipe to   |          |            ||   |
>    |build DSPLIB from source. Updated          |2018-09-06|Jianzhong Xu||New|
>    |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
>    |DSPLIB.                                    |          |            ||   |
>    |-------------------------------------------+----------+------------++---|
>    |[EXTERNAL] Added DSPLIB recipe to build    |          |            ||   |
>    |DSPLIB from source. Updated                |2018-09-06|Jianzhong Xu||New|
>    |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
>    |DSPLIB.                                    |          |            ||   |
>    |-------------------------------------------+----------+------------++---|
>    |[EXTERNAL,3/3] Added DSPLIB recipe to build|2018-09-04|Jianzhong Xu||New|
>    |DSPLIB from source.                        |          |            ||   |
>    |-------------------------------------------+----------+------------++---|
>    |[EXTERNAL,2/3] Added MATHLIB recipe to     |2018-09-04|Jianzhong Xu||New|
>    |build MATHLIB from source.                 |          |            ||   |
>    |-------------------------------------------+----------+------------++---|
>    |[EXTERNAL,1/3] Added SWTOOLS which is      |          |            ||   |
>    |needed to build processor libs (DSPLIB,    |2018-09-04|Jianzhong Xu||New|
>    |MATHLIB, etc) from source.                 |          |            ||   |
>    +------------------------------------------------------------------------+
> 
>     
> 
>    Thanks,
> 
>    Jianzhong
> 
>     
> 
>    -----Original Message-----
>    From: Dmytriyenko, Denys
>    Sent: Wednesday, September 12, 2018 3:13 PM
>    To: Stiffler, Jacob
>    Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
>    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to
>    build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
>    DSPLIB.
> 
>     
> 
>    Jake,
> 
>     
> 
>    I'll give it a look - I assume you want the 3 most recent patches, I don't
> 
>    think versioning was consistent...
> 
>     
> 
>    Denys
> 
>     
> 
>     
> 
>    On Tue, Sep 11, 2018 at 09:17:49AM -0400, Jacob Stiffler wrote:
> 
>    > ACK
> 
>    >
> 
>    >
> 
>    > Denys,
> 
>    >
> 
>    > Can you apply these patches to the ti2018.03 branch?
> 
>    >
> 
>    >
> 
>    > Thank you,
> 
>    >
> 
>    > Jake
> 
>    >
> 
>    >
> 
>    > On 9/6/2018 1:46 PM, Jianzhong Xu wrote:
> 
>    > >Signed-off-by: Jianzhong Xu <xuj@ti.com>
> 
>    > >---
> 
>    > >Change from previous version of patch
> 
>    > >Corrected typo: MATHLIB_C674INSTALL_XXX should have been
>    MATHLIB_C674_INSTALL_XXX
> 
>    > >---
> 
>    > >---
> 
>    > >  recipes-ti/dsplib/dsplib-c64xp_git.bb    |  9 ++++
> 
>    > >  recipes-ti/dsplib/dsplib-c66x.inc        | 30 ------------
> 
>    > >  recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb |  9 ----
> 
>    > >  recipes-ti/dsplib/dsplib-c66x_git.bb     | 10 ++++
> 
>    > >  recipes-ti/dsplib/dsplib-c674x_git.bb    |  9 ++++
> 
>    > >  recipes-ti/dsplib/dsplib.inc             | 79
>    ++++++++++++++++++++++++++++++++
> 
>    > >  recipes-ti/includes/ti-paths.inc         |  8 +++-
> 
>    > >  7 files changed, 114 insertions(+), 40 deletions(-)
> 
>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c64xp_git.bb
> 
>    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc
> 
>    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> 
>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c66x_git.bb
> 
>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c674x_git.bb
> 
>    > >  create mode 100644 recipes-ti/dsplib/dsplib.inc
> 
>    > >
> 
>    > >diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb
>    b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> 
>    > >new file mode 100644
> 
>    > >index 0000000..1038d44
> 
>    > >--- /dev/null
> 
>    > >+++ b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> 
>    > >@@ -0,0 +1,9 @@
> 
>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
> 
>    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> 
>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
> 
>    > >+DSPLIB_BUILD_TARGET = "c64Px"
> 
>    > >+
> 
>    > >+DEPENDS = ""
> 
>    > >+
> 
>    > >+include dsplib.inc
> 
>    > >+
> 
>    > >diff --git a/recipes-ti/dsplib/dsplib-c66x.inc
>    b/recipes-ti/dsplib/dsplib-c66x.inc
> 
>    > >deleted file mode 100644
> 
>    > >index 7ff99c2..0000000
> 
>    > >--- a/recipes-ti/dsplib/dsplib-c66x.inc
> 
>    > >+++ /dev/null
> 
>    > >@@ -1,30 +0,0 @@
> 
>    > >-DESCRIPTION = "DSPLIB contains optimized general-purpose
>    signal-processing routines for TI DSPs"
> 
>    > >-HOMEPAGE = "http://www.ti.com/tool/sprc265"
> 
>    > >-SECTION = "devel"
> 
>    > >-LICENSE = "BSD-3-Clause"
> 
>    > >-
> 
>    > >-require ../includes/ti-paths.inc
> 
>    > >-require ../includes/ti-staging.inc
> 
>    > >-require ../includes/ti-unpack.inc
> 
>    > >-
> 
>    > >-COMPATIBLE_MACHINE = "omap-a15|keystone"
> 
>    > >-
> 
>    > >-SRC_URI =
>    "http://software-dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=dsplib"
> 
>    > >-
> 
>    > >-BINFILE = "dsplib_c66x_${PV}_Linux.bin"
> 
>    > >-TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
> 
>    > >-TI_BIN_UNPK_CMDS = ""
> 
>    > >-
> 
>    > >-do_install() {
> 
>    > >-    CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
> 
>    > >-    install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> 
>    > >-    cp ${CP_ARGS} ${S}/* ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> 
>    > >-}
> 
>    > >-
> 
>    > >-ALLOW_EMPTY_${PN} = "1"
> 
>    > >-FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> 
>    > >-
> 
>    > >-INHIBIT_PACKAGE_STRIP = "1"
> 
>    > >-INHIBIT_SYSROOT_STRIP = "1"
> 
>    > >-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> 
>    > >-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 f1273f3..0000000
> 
>    > >--- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> 
>    > >+++ /dev/null
> 
>    > >@@ -1,9 +0,0 @@
> 
>    > >-require dsplib-c66x.inc
> 
>    > >-
> 
>    > >-PV = "3_4_0_0"
> 
>    > >-PR = "r1"
> 
>    > >-
> 
>    > >-LIC_FILES_CHKSUM =
>    "file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8a628512f47c4bf676a"
> 
>    > >-
> 
>    > >-SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf"
> 
>    > >-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 0000000..cbc25d0
> 
>    > >--- /dev/null
> 
>    > >+++ b/recipes-ti/dsplib/dsplib-c66x_git.bb
> 
>    > >@@ -0,0 +1,10 @@
> 
>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
> 
>    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> 
>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
> 
>    > >+DSPLIB_BUILD_TARGET = "c66x"
> 
>    > >+
> 
>    > >+DEPENDS = "mathlib-c66x"
> 
>    > >+
> 
>    > >+include dsplib.inc
> 
>    > >+
> 
>    > >+
> 
>    > >diff --git a/recipes-ti/dsplib/dsplib-c674x_git.bb
>    b/recipes-ti/dsplib/dsplib-c674x_git.bb
> 
>    > >new file mode 100644
> 
>    > >index 0000000..07c6892
> 
>    > >--- /dev/null
> 
>    > >+++ b/recipes-ti/dsplib/dsplib-c674x_git.bb
> 
>    > >@@ -0,0 +1,9 @@
> 
>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
> 
>    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> 
>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
> 
>    > >+DSPLIB_BUILD_TARGET = "c674x"
> 
>    > >+
> 
>    > >+DEPENDS = "mathlib-c674x"
> 
>    > >+
> 
>    > >+include dsplib.inc
> 
>    > >+
> 
>    > >diff --git a/recipes-ti/dsplib/dsplib.inc
>    b/recipes-ti/dsplib/dsplib.inc
> 
>    > >new file mode 100644
> 
>    > >index 0000000..66fe0fb
> 
>    > >--- /dev/null
> 
>    > >+++ b/recipes-ti/dsplib/dsplib.inc
> 
>    > >@@ -0,0 +1,79 @@
> 
>    > >+SUMMARY = "DSPLIB contains optimized signal processing functions for
>    TI DSPs"
> 
>    > >+HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
> 
>    > >+LICENSE = "BSD-3-Clause"
> 
>    > >+
> 
>    > >+require ../includes/ti-paths.inc
> 
>    > >+
> 
>    > >+PV = "3_4_0_1"
> 
>    > >+PR = "r0"
> 
>    > >+
> 
>    > >+COMPATIBLE_MACHINE = "am57xx-evm|keystone|c66x|omapl1"
> 
>    > >+
> 
>    > >+DEPENDS += "ti-cgt6x-native \
> 
>    > >+           ti-xdctools-native \
> 
>    > >+           ti-sysbios \
> 
>    > >+           doxygen-native \
> 
>    > >+           zip-native \
> 
>    > >+           swtools "
> 
>    > >+
> 
>    > >+S = "${WORKDIR}/git"
> 
>    > >+
> 
>    > >+SRC_URI =
>    "git://git.ti.com/ep-processor-libraries/dsplib.git;protocol=git;branch=master"
> 
>    > >+SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"
> 
>    > >+
> 
>    > >+LIC_FILES_CHKSUM =
>    "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4d51d8af75419781591ace190b"
> 
>    > >+
> 
>    > >+export DSPLIB_WORK_DIR="${S}"
> 
>    > >+export CGTOOLS_INSTALL_DIR  =
>    "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
> 
>    > >+export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> 
>    > >+export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> 
>    > >+export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
> 
>    > >+export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
> 
>    > >+export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
> 
>    > >+export INCDIR="${MATHLIB_INSTALL_DIR}/"
> 
>    > >+
> 
>    > >+PATH_append = ":${XDC_INSTALL_DIR}"
> 
>    > >+
> 
>    >
>    >+XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"
> 
>    >
>    >+XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_WORK_DIR};"
> 
>    > >+
> 
>    > >+export XDCPATH
> 
>    > >+
> 
>    > >+DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
> 
>    > >+
> 
>    > >+do_compile() {
> 
>    > >+       cd ${DSPLIB_WORK_DIR}/ti/dsplib;
> 
>    > >+       xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v"
> 
>    > >+}
> 
>    > >+
> 
>    > >+do_install() {
> 
>    > >+       install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> 
>    > >+
> 
>    > >+       find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d
>    ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
> 
>    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/*
>    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> 
>    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata
>    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> 
>    > >+       rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
> 
>    > >+}
> 
>    > >+
> 
>    > >+
> 
>    > >+inherit deploy
> 
>    > >+addtask deploy before do_build after do_install
> 
>    > >+
> 
>    > >+do_deploy() {
> 
>    > >+       install -d ${DEPLOYDIR}
> 
>    > >+       # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> 
>    > >+       # and place the zip file in ${DEPLOYDIR}
> 
>    > >+       mkdir ./${DSPLIB_PACKAGE_NAME}
> 
>    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/*
>    ./${DSPLIB_PACKAGE_NAME}
> 
>    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata
>    ./${DSPLIB_PACKAGE_NAME}
> 
>    > >+       zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip
>    ./${DSPLIB_PACKAGE_NAME}
> 
>    > >+       rm -r ./${DSPLIB_PACKAGE_NAME}
> 
>    > >+}
> 
>    > >+
> 
>    > >+PACKAGE_ARCH = "${MACHINE_ARCH}"
> 
>    > >+
> 
>    > >+ALLOW_EMPTY_${PN} = "1"
> 
>    > >+FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
> 
>    > >+
> 
>    > >+INSANE_SKIP_${PN}-dev = "arch"
> 
>    > >+
> 
>    > >diff --git a/recipes-ti/includes/ti-paths.inc
>    b/recipes-ti/includes/ti-paths.inc
> 
>    > >index 4f99d5e..8740b6a 100644
> 
>    > >--- a/recipes-ti/includes/ti-paths.inc
> 
>    > >+++ b/recipes-ti/includes/ti-paths.inc
> 
>    > >@@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE       =
>    "${installdir}/ti-dmai-tree"
> 
>    > >  export DSP_BENCHMARK_INSTALL_DIR_RECIPE =
>    "${installdir}/ti-dsp-benchmark-tree"
> 
>    > >  export DSPLIB_C64P_INSTALL_DIR_RECIPE =
>    "${installdir}/ti-dsplib-c64p-tree"
> 
>    > >  export DSPLIB_C674_INSTALL_DIR_RECIPE =
>    "${installdir}/ti-dsplib-c674x-tree"
> 
>    > >+export DSPLIB_C66_INSTALL_DIR_RECIPE  =
>    "${installdir}/ti-dsplib-c66x-tree"
> 
>    > >  export DSPLIB_INSTALL_DIR_RECIPE     = "${installdir}/ti-dsplib-tree"
> 
>    > >  export DVSDK_DEMOS_INSTALL_DIR_RECIPE=
>    "${installdir}/ti-dvsdk-demos-tree"
> 
>    > >  export DVTB_INSTALL_DIR_RECIPE       = "${installdir}/ti-dvtb-tree"
> 
>    > >@@ -39,6 +40,7 @@ export OSAL_INSTALL_DIR_RECIPE       =
>    "${installdir}/ti-osal-tree"
> 
>    > >  export RTFS_INSTALL_DIR_RECIPE       = "${installdir}/ti-rtfs-tree"
> 
>    > >  export SYSBIOS_INSTALL_DIR_RECIPE    =
>    "${installdir}/ti-sysbios-tree"
> 
>    > >  export SYSLINK_INSTALL_DIR_RECIPE    =
>    "${installdir}/ti-syslink-tree"
> 
>    > >+export SWTOOLS_INSTALL_DIR_RECIPE    = "${installdir}/ti-swtools-tree"
> 
>    > >  export UIA_INSTALL_DIR_RECIPE        = "${installdir}/ti-uia-tree"
> 
>    > >  export VICPLIB_INSTALL_DIR_RECIPE    =
>    "${installdir}/ti-vicplib-tree"
> 
>    > >  export XDAIS_INSTALL_DIR_RECIPE      = "${installdir}/ti-xdais-tree"
> 
>    > >@@ -48,8 +50,8 @@ export OSAL_INSTALL_DIR_RECIPE       =
>    "${installdir}/ti-osal-tree"
> 
>    > >  export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    =
>    "${installdir}/ti-cgt-arm"
> 
>    > >  export GCC_ARM_NONE_TOOLCHAIN_RECIPE      =
>    "${installdir}/gcc-arm-none-eabi"
> 
>    > >  export TI_CGT_PRU_INSTALL_DIR_RECIPE      = "${installdir}/cgt-pru"
> 
>    > >-export DSPLIB_C66_INSTALL_DIR_RECIPE      =
>    "${installdir}/ti-dsplib-c66x-tree"
> 
>    > >  export MATHLIB_C66_INSTALL_DIR_RECIPE     =
>    "${installdir}/ti-mathlib-c66x-tree"
> 
>    > >+export MATHLIB_C674_INSTALL_DIR_RECIPE    =
>    "${installdir}/ti-mathlib-c674x-tree"
> 
>    > >  export IMGLIB_C66_INSTALL_DIR_RECIPE      =
>    "${installdir}/ti-imglib-c66x-tree"
> 
>    > >  export VLIB_C66_INSTALL_DIR_RECIPE        =
>    "${installdir}/ti-vlib-c66x-tree"
> 
>    > >  export CG_XML_INSTALL_DIR_RECIPE     = "${installdir}/ti-cg-xml-tree"
> 
>    > >@@ -95,7 +97,11 @@ export OSAL_INSTALL_DIR       =
>    "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}
> 
>    > >  export M4_TOOLCHAIN_INSTALL_DIR    =
>    "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
> 
>    > >  export GCC_ARM_NONE_TOOLCHAIN      =
>    "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
> 
>    > >  export TI_CGT_PRU_INSTALL_DIR      =
>    "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
> 
>    > >+export SWTOOLS_INSTALL_DIR         =
>    "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
> 
>    > >+export DSPLIB_C64P_INSTALL_DIR     =
>    "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> 
>    > >+export DSPLIB_C674_INSTALL_DIR     =
>    "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> 
>    > >  export DSPLIB_C66_INSTALL_DIR      =
>    "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> 
>    > >+export MATHLIB_C674_INSTALL_DIR    =
>    "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
> 
>    > >  export MATHLIB_C66_INSTALL_DIR     =
>    "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
> 
>    > >  export IMGLIB_C66_INSTALL_DIR      =
>    "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
> 
>    > >  export VLIB_C66_INSTALL_DIR        =
>    "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
> 
>    >
> 
>    > --
> 
>    > _______________________________________________
> 
>    > meta-ti mailing list
> 
>    > meta-ti@yoctoproject.org
> 
>    > https://lists.yoctoproject.org/listinfo/meta-ti


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
  2018-09-12 20:20       ` Denys Dmytriyenko
@ 2018-09-12 20:37         ` Dmytriyenko, Denys
  2018-09-12 21:06           ` Xu, Jianzhong
  2018-09-12 22:52           ` Denys Dmytriyenko
  0 siblings, 2 replies; 19+ messages in thread
From: Dmytriyenko, Denys @ 2018-09-12 20:37 UTC (permalink / raw)
  To: Dmytriyenko, Denys, Xu, Jianzhong; +Cc: meta-ti

And it crashed and burned right away:

ERROR: Nothing PROVIDES 'dsplib-c66x' (but /OE/arago-rocko-next-build/sources/meta-arago/meta-arago-extras/recipes-apps/video-analytics-demo/qt-opencv-opencl-opengl-multithreaded_git.bb DEPENDS on or otherwise requires it)
dsplib-c66x was skipped: incompatible with machine am57xx-hs-evm (not in COMPATIBLE_MACHINE)
NOTE: Runtime target 'qt-opencv-opencl-opengl-multithreaded-src' is unbuildable, removing...

Jake,

Did you tested it on am57xx-hs-evm?

Denys


> -----Original Message-----
> From: Denys Dmytriyenko [mailto:denys@ti.com]
> Sent: Wednesday, September 12, 2018 4:21 PM
> To: Xu, Jianzhong
> Cc: Stiffler, Jacob; meta-ti@yoctoproject.org
> Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build
> DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
> 
> Thanks, merged into rocko-next for testing.
> 
> There were lots of small non-critical things I had to fix, like whitespaces,
> indentation, etc. But the biggest one is that you have to follow OpenEmbedded
> Commit Message Guidelines:
> 
> https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
> 
> 
> On Wed, Sep 12, 2018 at 03:40:42PM -0400, Xu, Jianzhong wrote:
> >    Denys,
> >
> >
> >
> >    You're right. The versioning was inconsistent. Please use
> >    [EXTERNAL,3/3,v2] and newer versions of [EXTERNAL,2/3], [EXTERNAL,1/3].
> >    The latter two should have had v2 in it. Please see highlights below.
> >
> >
> >
> >    +------------------------------------------------------------------------+
> >    |[EXTERNAL,3/3,v2] Added DSPLIB recipe to   |          |            ||   |
> >    |build DSPLIB from source. Updated          |2018-09-06|Jianzhong Xu||New|
> >    |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
> >    |DSPLIB.                                    |          |            ||   |
> >    |-------------------------------------------+----------+------------++---|
> >    |[EXTERNAL] Added DSPLIB recipe to build    |          |            ||   |
> >    |DSPLIB from source. Updated                |2018-09-06|Jianzhong Xu||New|
> >    |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
> >    |DSPLIB.                                    |          |            ||   |
> >    |-------------------------------------------+----------+------------++---|
> >    |[EXTERNAL,3/3] Added DSPLIB recipe to build|2018-09-04|Jianzhong
> Xu||New|
> >    |DSPLIB from source.                        |          |            ||   |
> >    |-------------------------------------------+----------+------------++---|
> >    |[EXTERNAL,2/3] Added MATHLIB recipe to     |2018-09-04|Jianzhong
> Xu||New|
> >    |build MATHLIB from source.                 |          |            ||   |
> >    |-------------------------------------------+----------+------------++---|
> >    |[EXTERNAL,1/3] Added SWTOOLS which is      |          |            ||   |
> >    |needed to build processor libs (DSPLIB,    |2018-09-04|Jianzhong Xu||New|
> >    |MATHLIB, etc) from source.                 |          |            ||   |
> >    +------------------------------------------------------------------------+
> >
> >
> >
> >    Thanks,
> >
> >    Jianzhong
> >
> >
> >
> >    -----Original Message-----
> >    From: Dmytriyenko, Denys
> >    Sent: Wednesday, September 12, 2018 3:13 PM
> >    To: Stiffler, Jacob
> >    Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
> >    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to
> >    build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
> >    DSPLIB.
> >
> >
> >
> >    Jake,
> >
> >
> >
> >    I'll give it a look - I assume you want the 3 most recent patches, I don't
> >
> >    think versioning was consistent...
> >
> >
> >
> >    Denys
> >
> >
> >
> >
> >
> >    On Tue, Sep 11, 2018 at 09:17:49AM -0400, Jacob Stiffler wrote:
> >
> >    > ACK
> >
> >    >
> >
> >    >
> >
> >    > Denys,
> >
> >    >
> >
> >    > Can you apply these patches to the ti2018.03 branch?
> >
> >    >
> >
> >    >
> >
> >    > Thank you,
> >
> >    >
> >
> >    > Jake
> >
> >    >
> >
> >    >
> >
> >    > On 9/6/2018 1:46 PM, Jianzhong Xu wrote:
> >
> >    > >Signed-off-by: Jianzhong Xu <xuj@ti.com>
> >
> >    > >---
> >
> >    > >Change from previous version of patch
> >
> >    > >Corrected typo: MATHLIB_C674INSTALL_XXX should have been
> >    MATHLIB_C674_INSTALL_XXX
> >
> >    > >---
> >
> >    > >---
> >
> >    > >  recipes-ti/dsplib/dsplib-c64xp_git.bb    |  9 ++++
> >
> >    > >  recipes-ti/dsplib/dsplib-c66x.inc        | 30 ------------
> >
> >    > >  recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb |  9 ----
> >
> >    > >  recipes-ti/dsplib/dsplib-c66x_git.bb     | 10 ++++
> >
> >    > >  recipes-ti/dsplib/dsplib-c674x_git.bb    |  9 ++++
> >
> >    > >  recipes-ti/dsplib/dsplib.inc             | 79
> >    ++++++++++++++++++++++++++++++++
> >
> >    > >  recipes-ti/includes/ti-paths.inc         |  8 +++-
> >
> >    > >  7 files changed, 114 insertions(+), 40 deletions(-)
> >
> >    > >  create mode 100644 recipes-ti/dsplib/dsplib-c64xp_git.bb
> >
> >    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc
> >
> >    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> >
> >    > >  create mode 100644 recipes-ti/dsplib/dsplib-c66x_git.bb
> >
> >    > >  create mode 100644 recipes-ti/dsplib/dsplib-c674x_git.bb
> >
> >    > >  create mode 100644 recipes-ti/dsplib/dsplib.inc
> >
> >    > >
> >
> >    > >diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >    b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >
> >    > >new file mode 100644
> >
> >    > >index 0000000..1038d44
> >
> >    > >--- /dev/null
> >
> >    > >+++ b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >
> >    > >@@ -0,0 +1,9 @@
> >
> >    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
> >
> >    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> >
> >    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
> >
> >    > >+DSPLIB_BUILD_TARGET = "c64Px"
> >
> >    > >+
> >
> >    > >+DEPENDS = ""
> >
> >    > >+
> >
> >    > >+include dsplib.inc
> >
> >    > >+
> >
> >    > >diff --git a/recipes-ti/dsplib/dsplib-c66x.inc
> >    b/recipes-ti/dsplib/dsplib-c66x.inc
> >
> >    > >deleted file mode 100644
> >
> >    > >index 7ff99c2..0000000
> >
> >    > >--- a/recipes-ti/dsplib/dsplib-c66x.inc
> >
> >    > >+++ /dev/null
> >
> >    > >@@ -1,30 +0,0 @@
> >
> >    > >-DESCRIPTION = "DSPLIB contains optimized general-purpose
> >    signal-processing routines for TI DSPs"
> >
> >    > >-HOMEPAGE = "http://www.ti.com/tool/sprc265"
> >
> >    > >-SECTION = "devel"
> >
> >    > >-LICENSE = "BSD-3-Clause"
> >
> >    > >-
> >
> >    > >-require ../includes/ti-paths.inc
> >
> >    > >-require ../includes/ti-staging.inc
> >
> >    > >-require ../includes/ti-unpack.inc
> >
> >    > >-
> >
> >    > >-COMPATIBLE_MACHINE = "omap-a15|keystone"
> >
> >    > >-
> >
> >    > >-SRC_URI =
> >    "http://software-
> dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=d
> splib"
> >
> >    > >-
> >
> >    > >-BINFILE = "dsplib_c66x_${PV}_Linux.bin"
> >
> >    > >-TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
> >
> >    > >-TI_BIN_UNPK_CMDS = ""
> >
> >    > >-
> >
> >    > >-do_install() {
> >
> >    > >-    CP_ARGS="-Prf --preserve=mode,timestamps --no-
> preserve=ownership"
> >
> >    > >-    install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> >
> >    > >-    cp ${CP_ARGS} ${S}/* ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> >
> >    > >-}
> >
> >    > >-
> >
> >    > >-ALLOW_EMPTY_${PN} = "1"
> >
> >    > >-FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >
> >    > >-
> >
> >    > >-INHIBIT_PACKAGE_STRIP = "1"
> >
> >    > >-INHIBIT_SYSROOT_STRIP = "1"
> >
> >    > >-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> >
> >    > >-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 f1273f3..0000000
> >
> >    > >--- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> >
> >    > >+++ /dev/null
> >
> >    > >@@ -1,9 +0,0 @@
> >
> >    > >-require dsplib-c66x.inc
> >
> >    > >-
> >
> >    > >-PV = "3_4_0_0"
> >
> >    > >-PR = "r1"
> >
> >    > >-
> >
> >    > >-LIC_FILES_CHKSUM =
> >
> "file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8
> a628512f47c4bf676a"
> >
> >    > >-
> >
> >    > >-SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf"
> >
> >    > >-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 0000000..cbc25d0
> >
> >    > >--- /dev/null
> >
> >    > >+++ b/recipes-ti/dsplib/dsplib-c66x_git.bb
> >
> >    > >@@ -0,0 +1,10 @@
> >
> >    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
> >
> >    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >
> >    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
> >
> >    > >+DSPLIB_BUILD_TARGET = "c66x"
> >
> >    > >+
> >
> >    > >+DEPENDS = "mathlib-c66x"
> >
> >    > >+
> >
> >    > >+include dsplib.inc
> >
> >    > >+
> >
> >    > >+
> >
> >    > >diff --git a/recipes-ti/dsplib/dsplib-c674x_git.bb
> >    b/recipes-ti/dsplib/dsplib-c674x_git.bb
> >
> >    > >new file mode 100644
> >
> >    > >index 0000000..07c6892
> >
> >    > >--- /dev/null
> >
> >    > >+++ b/recipes-ti/dsplib/dsplib-c674x_git.bb
> >
> >    > >@@ -0,0 +1,9 @@
> >
> >    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
> >
> >    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> >
> >    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
> >
> >    > >+DSPLIB_BUILD_TARGET = "c674x"
> >
> >    > >+
> >
> >    > >+DEPENDS = "mathlib-c674x"
> >
> >    > >+
> >
> >    > >+include dsplib.inc
> >
> >    > >+
> >
> >    > >diff --git a/recipes-ti/dsplib/dsplib.inc
> >    b/recipes-ti/dsplib/dsplib.inc
> >
> >    > >new file mode 100644
> >
> >    > >index 0000000..66fe0fb
> >
> >    > >--- /dev/null
> >
> >    > >+++ b/recipes-ti/dsplib/dsplib.inc
> >
> >    > >@@ -0,0 +1,79 @@
> >
> >    > >+SUMMARY = "DSPLIB contains optimized signal processing functions for
> >    TI DSPs"
> >
> >    > >+HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
> >
> >    > >+LICENSE = "BSD-3-Clause"
> >
> >    > >+
> >
> >    > >+require ../includes/ti-paths.inc
> >
> >    > >+
> >
> >    > >+PV = "3_4_0_1"
> >
> >    > >+PR = "r0"
> >
> >    > >+
> >
> >    > >+COMPATIBLE_MACHINE = "am57xx-evm|keystone|c66x|omapl1"
> >
> >    > >+
> >
> >    > >+DEPENDS += "ti-cgt6x-native \
> >
> >    > >+           ti-xdctools-native \
> >
> >    > >+           ti-sysbios \
> >
> >    > >+           doxygen-native \
> >
> >    > >+           zip-native \
> >
> >    > >+           swtools "
> >
> >    > >+
> >
> >    > >+S = "${WORKDIR}/git"
> >
> >    > >+
> >
> >    > >+SRC_URI =
> >    "git://git.ti.com/ep-processor-
> libraries/dsplib.git;protocol=git;branch=master"
> >
> >    > >+SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"
> >
> >    > >+
> >
> >    > >+LIC_FILES_CHKSUM =
> >
> "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4
> d51d8af75419781591ace190b"
> >
> >    > >+
> >
> >    > >+export DSPLIB_WORK_DIR="${S}"
> >
> >    > >+export CGTOOLS_INSTALL_DIR  =
> >    "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
> >
> >    > >+export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> >
> >    > >+export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> >
> >    > >+export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
> >
> >    > >+export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
> >
> >    > >+export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
> >
> >    > >+export INCDIR="${MATHLIB_INSTALL_DIR}/"
> >
> >    > >+
> >
> >    > >+PATH_append = ":${XDC_INSTALL_DIR}"
> >
> >    > >+
> >
> >    >
> >
> >+XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBI
> OS_INSTALL_DIR}/packages;"
> >
> >    >
> >
> >+XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_
> WORK_DIR};"
> >
> >    > >+
> >
> >    > >+export XDCPATH
> >
> >    > >+
> >
> >    > >+DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
> >
> >    > >+
> >
> >    > >+do_compile() {
> >
> >    > >+       cd ${DSPLIB_WORK_DIR}/ti/dsplib;
> >
> >    > >+       xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-
> v"
> >
> >    > >+}
> >
> >    > >+
> >
> >    > >+do_install() {
> >
> >    > >+       install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >
> >    > >+
> >
> >    > >+       find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d
> >    ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
> >
> >    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/*
> >    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >
> >    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata
> >    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >
> >    > >+       rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
> >
> >    > >+}
> >
> >    > >+
> >
> >    > >+
> >
> >    > >+inherit deploy
> >
> >    > >+addtask deploy before do_build after do_install
> >
> >    > >+
> >
> >    > >+do_deploy() {
> >
> >    > >+       install -d ${DEPLOYDIR}
> >
> >    > >+       # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >
> >    > >+       # and place the zip file in ${DEPLOYDIR}
> >
> >    > >+       mkdir ./${DSPLIB_PACKAGE_NAME}
> >
> >    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/*
> >    ./${DSPLIB_PACKAGE_NAME}
> >
> >    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata
> >    ./${DSPLIB_PACKAGE_NAME}
> >
> >    > >+       zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip
> >    ./${DSPLIB_PACKAGE_NAME}
> >
> >    > >+       rm -r ./${DSPLIB_PACKAGE_NAME}
> >
> >    > >+}
> >
> >    > >+
> >
> >    > >+PACKAGE_ARCH = "${MACHINE_ARCH}"
> >
> >    > >+
> >
> >    > >+ALLOW_EMPTY_${PN} = "1"
> >
> >    > >+FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
> >
> >    > >+
> >
> >    > >+INSANE_SKIP_${PN}-dev = "arch"
> >
> >    > >+
> >
> >    > >diff --git a/recipes-ti/includes/ti-paths.inc
> >    b/recipes-ti/includes/ti-paths.inc
> >
> >    > >index 4f99d5e..8740b6a 100644
> >
> >    > >--- a/recipes-ti/includes/ti-paths.inc
> >
> >    > >+++ b/recipes-ti/includes/ti-paths.inc
> >
> >    > >@@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE       =
> >    "${installdir}/ti-dmai-tree"
> >
> >    > >  export DSP_BENCHMARK_INSTALL_DIR_RECIPE =
> >    "${installdir}/ti-dsp-benchmark-tree"
> >
> >    > >  export DSPLIB_C64P_INSTALL_DIR_RECIPE =
> >    "${installdir}/ti-dsplib-c64p-tree"
> >
> >    > >  export DSPLIB_C674_INSTALL_DIR_RECIPE =
> >    "${installdir}/ti-dsplib-c674x-tree"
> >
> >    > >+export DSPLIB_C66_INSTALL_DIR_RECIPE  =
> >    "${installdir}/ti-dsplib-c66x-tree"
> >
> >    > >  export DSPLIB_INSTALL_DIR_RECIPE     = "${installdir}/ti-dsplib-tree"
> >
> >    > >  export DVSDK_DEMOS_INSTALL_DIR_RECIPE=
> >    "${installdir}/ti-dvsdk-demos-tree"
> >
> >    > >  export DVTB_INSTALL_DIR_RECIPE       = "${installdir}/ti-dvtb-tree"
> >
> >    > >@@ -39,6 +40,7 @@ export OSAL_INSTALL_DIR_RECIPE       =
> >    "${installdir}/ti-osal-tree"
> >
> >    > >  export RTFS_INSTALL_DIR_RECIPE       = "${installdir}/ti-rtfs-tree"
> >
> >    > >  export SYSBIOS_INSTALL_DIR_RECIPE    =
> >    "${installdir}/ti-sysbios-tree"
> >
> >    > >  export SYSLINK_INSTALL_DIR_RECIPE    =
> >    "${installdir}/ti-syslink-tree"
> >
> >    > >+export SWTOOLS_INSTALL_DIR_RECIPE    = "${installdir}/ti-swtools-tree"
> >
> >    > >  export UIA_INSTALL_DIR_RECIPE        = "${installdir}/ti-uia-tree"
> >
> >    > >  export VICPLIB_INSTALL_DIR_RECIPE    =
> >    "${installdir}/ti-vicplib-tree"
> >
> >    > >  export XDAIS_INSTALL_DIR_RECIPE      = "${installdir}/ti-xdais-tree"
> >
> >    > >@@ -48,8 +50,8 @@ export OSAL_INSTALL_DIR_RECIPE       =
> >    "${installdir}/ti-osal-tree"
> >
> >    > >  export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    =
> >    "${installdir}/ti-cgt-arm"
> >
> >    > >  export GCC_ARM_NONE_TOOLCHAIN_RECIPE      =
> >    "${installdir}/gcc-arm-none-eabi"
> >
> >    > >  export TI_CGT_PRU_INSTALL_DIR_RECIPE      = "${installdir}/cgt-pru"
> >
> >    > >-export DSPLIB_C66_INSTALL_DIR_RECIPE      =
> >    "${installdir}/ti-dsplib-c66x-tree"
> >
> >    > >  export MATHLIB_C66_INSTALL_DIR_RECIPE     =
> >    "${installdir}/ti-mathlib-c66x-tree"
> >
> >    > >+export MATHLIB_C674_INSTALL_DIR_RECIPE    =
> >    "${installdir}/ti-mathlib-c674x-tree"
> >
> >    > >  export IMGLIB_C66_INSTALL_DIR_RECIPE      =
> >    "${installdir}/ti-imglib-c66x-tree"
> >
> >    > >  export VLIB_C66_INSTALL_DIR_RECIPE        =
> >    "${installdir}/ti-vlib-c66x-tree"
> >
> >    > >  export CG_XML_INSTALL_DIR_RECIPE     = "${installdir}/ti-cg-xml-tree"
> >
> >    > >@@ -95,7 +97,11 @@ export OSAL_INSTALL_DIR       =
> >    "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}
> >
> >    > >  export M4_TOOLCHAIN_INSTALL_DIR    =
> >    "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
> >
> >    > >  export GCC_ARM_NONE_TOOLCHAIN      =
> >    "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
> >
> >    > >  export TI_CGT_PRU_INSTALL_DIR      =
> >    "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
> >
> >    > >+export SWTOOLS_INSTALL_DIR         =
> >    "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
> >
> >    > >+export DSPLIB_C64P_INSTALL_DIR     =
> >    "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> >
> >    > >+export DSPLIB_C674_INSTALL_DIR     =
> >    "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> >
> >    > >  export DSPLIB_C66_INSTALL_DIR      =
> >    "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >
> >    > >+export MATHLIB_C674_INSTALL_DIR    =
> >    "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
> >
> >    > >  export MATHLIB_C66_INSTALL_DIR     =
> >    "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
> >
> >    > >  export IMGLIB_C66_INSTALL_DIR      =
> >    "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
> >
> >    > >  export VLIB_C66_INSTALL_DIR        =
> >    "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
> >
> >    >
> >
> >    > --
> >
> >    > _______________________________________________
> >
> >    > meta-ti mailing list
> >
> >    > meta-ti@yoctoproject.org
> >
> >    > https://lists.yoctoproject.org/listinfo/meta-ti


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
  2018-09-12 20:37         ` Dmytriyenko, Denys
@ 2018-09-12 21:06           ` Xu, Jianzhong
  2018-09-12 22:52           ` Denys Dmytriyenko
  1 sibling, 0 replies; 19+ messages in thread
From: Xu, Jianzhong @ 2018-09-12 21:06 UTC (permalink / raw)
  To: Dmytriyenko, Denys; +Cc: meta-ti

Denys,

Please try c667x-evm.

Thanks,
Jianzhong

-----Original Message-----
From: Dmytriyenko, Denys 
Sent: Wednesday, September 12, 2018 4:38 PM
To: Dmytriyenko, Denys; Xu, Jianzhong
Cc: Stiffler, Jacob; meta-ti@yoctoproject.org
Subject: RE: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.

And it crashed and burned right away:

ERROR: Nothing PROVIDES 'dsplib-c66x' (but /OE/arago-rocko-next-build/sources/meta-arago/meta-arago-extras/recipes-apps/video-analytics-demo/qt-opencv-opencl-opengl-multithreaded_git.bb DEPENDS on or otherwise requires it)
dsplib-c66x was skipped: incompatible with machine am57xx-hs-evm (not in COMPATIBLE_MACHINE)
NOTE: Runtime target 'qt-opencv-opencl-opengl-multithreaded-src' is unbuildable, removing...

Jake,

Did you tested it on am57xx-hs-evm?

Denys


> -----Original Message-----
> From: Denys Dmytriyenko [mailto:denys@ti.com]
> Sent: Wednesday, September 12, 2018 4:21 PM
> To: Xu, Jianzhong
> Cc: Stiffler, Jacob; meta-ti@yoctoproject.org
> Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build
> DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
> 
> Thanks, merged into rocko-next for testing.
> 
> There were lots of small non-critical things I had to fix, like whitespaces,
> indentation, etc. But the biggest one is that you have to follow OpenEmbedded
> Commit Message Guidelines:
> 
> https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
> 
> 
> On Wed, Sep 12, 2018 at 03:40:42PM -0400, Xu, Jianzhong wrote:
> >    Denys,
> >
> >
> >
> >    You're right. The versioning was inconsistent. Please use
> >    [EXTERNAL,3/3,v2] and newer versions of [EXTERNAL,2/3], [EXTERNAL,1/3].
> >    The latter two should have had v2 in it. Please see highlights below.
> >
> >
> >
> >    +------------------------------------------------------------------------+
> >    |[EXTERNAL,3/3,v2] Added DSPLIB recipe to   |          |            ||   |
> >    |build DSPLIB from source. Updated          |2018-09-06|Jianzhong Xu||New|
> >    |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
> >    |DSPLIB.                                    |          |            ||   |
> >    |-------------------------------------------+----------+------------++---|
> >    |[EXTERNAL] Added DSPLIB recipe to build    |          |            ||   |
> >    |DSPLIB from source. Updated                |2018-09-06|Jianzhong Xu||New|
> >    |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
> >    |DSPLIB.                                    |          |            ||   |
> >    |-------------------------------------------+----------+------------++---|
> >    |[EXTERNAL,3/3] Added DSPLIB recipe to build|2018-09-04|Jianzhong
> Xu||New|
> >    |DSPLIB from source.                        |          |            ||   |
> >    |-------------------------------------------+----------+------------++---|
> >    |[EXTERNAL,2/3] Added MATHLIB recipe to     |2018-09-04|Jianzhong
> Xu||New|
> >    |build MATHLIB from source.                 |          |            ||   |
> >    |-------------------------------------------+----------+------------++---|
> >    |[EXTERNAL,1/3] Added SWTOOLS which is      |          |            ||   |
> >    |needed to build processor libs (DSPLIB,    |2018-09-04|Jianzhong Xu||New|
> >    |MATHLIB, etc) from source.                 |          |            ||   |
> >    +------------------------------------------------------------------------+
> >
> >
> >
> >    Thanks,
> >
> >    Jianzhong
> >
> >
> >
> >    -----Original Message-----
> >    From: Dmytriyenko, Denys
> >    Sent: Wednesday, September 12, 2018 3:13 PM
> >    To: Stiffler, Jacob
> >    Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
> >    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to
> >    build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
> >    DSPLIB.
> >
> >
> >
> >    Jake,
> >
> >
> >
> >    I'll give it a look - I assume you want the 3 most recent patches, I don't
> >
> >    think versioning was consistent...
> >
> >
> >
> >    Denys
> >
> >
> >
> >
> >
> >    On Tue, Sep 11, 2018 at 09:17:49AM -0400, Jacob Stiffler wrote:
> >
> >    > ACK
> >
> >    >
> >
> >    >
> >
> >    > Denys,
> >
> >    >
> >
> >    > Can you apply these patches to the ti2018.03 branch?
> >
> >    >
> >
> >    >
> >
> >    > Thank you,
> >
> >    >
> >
> >    > Jake
> >
> >    >
> >
> >    >
> >
> >    > On 9/6/2018 1:46 PM, Jianzhong Xu wrote:
> >
> >    > >Signed-off-by: Jianzhong Xu <xuj@ti.com>
> >
> >    > >---
> >
> >    > >Change from previous version of patch
> >
> >    > >Corrected typo: MATHLIB_C674INSTALL_XXX should have been
> >    MATHLIB_C674_INSTALL_XXX
> >
> >    > >---
> >
> >    > >---
> >
> >    > >  recipes-ti/dsplib/dsplib-c64xp_git.bb    |  9 ++++
> >
> >    > >  recipes-ti/dsplib/dsplib-c66x.inc        | 30 ------------
> >
> >    > >  recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb |  9 ----
> >
> >    > >  recipes-ti/dsplib/dsplib-c66x_git.bb     | 10 ++++
> >
> >    > >  recipes-ti/dsplib/dsplib-c674x_git.bb    |  9 ++++
> >
> >    > >  recipes-ti/dsplib/dsplib.inc             | 79
> >    ++++++++++++++++++++++++++++++++
> >
> >    > >  recipes-ti/includes/ti-paths.inc         |  8 +++-
> >
> >    > >  7 files changed, 114 insertions(+), 40 deletions(-)
> >
> >    > >  create mode 100644 recipes-ti/dsplib/dsplib-c64xp_git.bb
> >
> >    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc
> >
> >    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> >
> >    > >  create mode 100644 recipes-ti/dsplib/dsplib-c66x_git.bb
> >
> >    > >  create mode 100644 recipes-ti/dsplib/dsplib-c674x_git.bb
> >
> >    > >  create mode 100644 recipes-ti/dsplib/dsplib.inc
> >
> >    > >
> >
> >    > >diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >    b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >
> >    > >new file mode 100644
> >
> >    > >index 0000000..1038d44
> >
> >    > >--- /dev/null
> >
> >    > >+++ b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >
> >    > >@@ -0,0 +1,9 @@
> >
> >    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
> >
> >    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> >
> >    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
> >
> >    > >+DSPLIB_BUILD_TARGET = "c64Px"
> >
> >    > >+
> >
> >    > >+DEPENDS = ""
> >
> >    > >+
> >
> >    > >+include dsplib.inc
> >
> >    > >+
> >
> >    > >diff --git a/recipes-ti/dsplib/dsplib-c66x.inc
> >    b/recipes-ti/dsplib/dsplib-c66x.inc
> >
> >    > >deleted file mode 100644
> >
> >    > >index 7ff99c2..0000000
> >
> >    > >--- a/recipes-ti/dsplib/dsplib-c66x.inc
> >
> >    > >+++ /dev/null
> >
> >    > >@@ -1,30 +0,0 @@
> >
> >    > >-DESCRIPTION = "DSPLIB contains optimized general-purpose
> >    signal-processing routines for TI DSPs"
> >
> >    > >-HOMEPAGE = "http://www.ti.com/tool/sprc265"
> >
> >    > >-SECTION = "devel"
> >
> >    > >-LICENSE = "BSD-3-Clause"
> >
> >    > >-
> >
> >    > >-require ../includes/ti-paths.inc
> >
> >    > >-require ../includes/ti-staging.inc
> >
> >    > >-require ../includes/ti-unpack.inc
> >
> >    > >-
> >
> >    > >-COMPATIBLE_MACHINE = "omap-a15|keystone"
> >
> >    > >-
> >
> >    > >-SRC_URI =
> >    "http://software-
> dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=d
> splib"
> >
> >    > >-
> >
> >    > >-BINFILE = "dsplib_c66x_${PV}_Linux.bin"
> >
> >    > >-TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
> >
> >    > >-TI_BIN_UNPK_CMDS = ""
> >
> >    > >-
> >
> >    > >-do_install() {
> >
> >    > >-    CP_ARGS="-Prf --preserve=mode,timestamps --no-
> preserve=ownership"
> >
> >    > >-    install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> >
> >    > >-    cp ${CP_ARGS} ${S}/* ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> >
> >    > >-}
> >
> >    > >-
> >
> >    > >-ALLOW_EMPTY_${PN} = "1"
> >
> >    > >-FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >
> >    > >-
> >
> >    > >-INHIBIT_PACKAGE_STRIP = "1"
> >
> >    > >-INHIBIT_SYSROOT_STRIP = "1"
> >
> >    > >-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> >
> >    > >-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 f1273f3..0000000
> >
> >    > >--- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> >
> >    > >+++ /dev/null
> >
> >    > >@@ -1,9 +0,0 @@
> >
> >    > >-require dsplib-c66x.inc
> >
> >    > >-
> >
> >    > >-PV = "3_4_0_0"
> >
> >    > >-PR = "r1"
> >
> >    > >-
> >
> >    > >-LIC_FILES_CHKSUM =
> >
> "file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8
> a628512f47c4bf676a"
> >
> >    > >-
> >
> >    > >-SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf"
> >
> >    > >-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 0000000..cbc25d0
> >
> >    > >--- /dev/null
> >
> >    > >+++ b/recipes-ti/dsplib/dsplib-c66x_git.bb
> >
> >    > >@@ -0,0 +1,10 @@
> >
> >    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
> >
> >    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >
> >    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
> >
> >    > >+DSPLIB_BUILD_TARGET = "c66x"
> >
> >    > >+
> >
> >    > >+DEPENDS = "mathlib-c66x"
> >
> >    > >+
> >
> >    > >+include dsplib.inc
> >
> >    > >+
> >
> >    > >+
> >
> >    > >diff --git a/recipes-ti/dsplib/dsplib-c674x_git.bb
> >    b/recipes-ti/dsplib/dsplib-c674x_git.bb
> >
> >    > >new file mode 100644
> >
> >    > >index 0000000..07c6892
> >
> >    > >--- /dev/null
> >
> >    > >+++ b/recipes-ti/dsplib/dsplib-c674x_git.bb
> >
> >    > >@@ -0,0 +1,9 @@
> >
> >    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
> >
> >    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> >
> >    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
> >
> >    > >+DSPLIB_BUILD_TARGET = "c674x"
> >
> >    > >+
> >
> >    > >+DEPENDS = "mathlib-c674x"
> >
> >    > >+
> >
> >    > >+include dsplib.inc
> >
> >    > >+
> >
> >    > >diff --git a/recipes-ti/dsplib/dsplib.inc
> >    b/recipes-ti/dsplib/dsplib.inc
> >
> >    > >new file mode 100644
> >
> >    > >index 0000000..66fe0fb
> >
> >    > >--- /dev/null
> >
> >    > >+++ b/recipes-ti/dsplib/dsplib.inc
> >
> >    > >@@ -0,0 +1,79 @@
> >
> >    > >+SUMMARY = "DSPLIB contains optimized signal processing functions for
> >    TI DSPs"
> >
> >    > >+HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
> >
> >    > >+LICENSE = "BSD-3-Clause"
> >
> >    > >+
> >
> >    > >+require ../includes/ti-paths.inc
> >
> >    > >+
> >
> >    > >+PV = "3_4_0_1"
> >
> >    > >+PR = "r0"
> >
> >    > >+
> >
> >    > >+COMPATIBLE_MACHINE = "am57xx-evm|keystone|c66x|omapl1"
> >
> >    > >+
> >
> >    > >+DEPENDS += "ti-cgt6x-native \
> >
> >    > >+           ti-xdctools-native \
> >
> >    > >+           ti-sysbios \
> >
> >    > >+           doxygen-native \
> >
> >    > >+           zip-native \
> >
> >    > >+           swtools "
> >
> >    > >+
> >
> >    > >+S = "${WORKDIR}/git"
> >
> >    > >+
> >
> >    > >+SRC_URI =
> >    "git://git.ti.com/ep-processor-
> libraries/dsplib.git;protocol=git;branch=master"
> >
> >    > >+SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"
> >
> >    > >+
> >
> >    > >+LIC_FILES_CHKSUM =
> >
> "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4
> d51d8af75419781591ace190b"
> >
> >    > >+
> >
> >    > >+export DSPLIB_WORK_DIR="${S}"
> >
> >    > >+export CGTOOLS_INSTALL_DIR  =
> >    "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
> >
> >    > >+export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> >
> >    > >+export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> >
> >    > >+export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
> >
> >    > >+export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
> >
> >    > >+export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
> >
> >    > >+export INCDIR="${MATHLIB_INSTALL_DIR}/"
> >
> >    > >+
> >
> >    > >+PATH_append = ":${XDC_INSTALL_DIR}"
> >
> >    > >+
> >
> >    >
> >
> >+XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBI
> OS_INSTALL_DIR}/packages;"
> >
> >    >
> >
> >+XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_
> WORK_DIR};"
> >
> >    > >+
> >
> >    > >+export XDCPATH
> >
> >    > >+
> >
> >    > >+DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
> >
> >    > >+
> >
> >    > >+do_compile() {
> >
> >    > >+       cd ${DSPLIB_WORK_DIR}/ti/dsplib;
> >
> >    > >+       xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-
> v"
> >
> >    > >+}
> >
> >    > >+
> >
> >    > >+do_install() {
> >
> >    > >+       install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >
> >    > >+
> >
> >    > >+       find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d
> >    ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
> >
> >    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/*
> >    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >
> >    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata
> >    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >
> >    > >+       rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
> >
> >    > >+}
> >
> >    > >+
> >
> >    > >+
> >
> >    > >+inherit deploy
> >
> >    > >+addtask deploy before do_build after do_install
> >
> >    > >+
> >
> >    > >+do_deploy() {
> >
> >    > >+       install -d ${DEPLOYDIR}
> >
> >    > >+       # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >
> >    > >+       # and place the zip file in ${DEPLOYDIR}
> >
> >    > >+       mkdir ./${DSPLIB_PACKAGE_NAME}
> >
> >    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/*
> >    ./${DSPLIB_PACKAGE_NAME}
> >
> >    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata
> >    ./${DSPLIB_PACKAGE_NAME}
> >
> >    > >+       zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip
> >    ./${DSPLIB_PACKAGE_NAME}
> >
> >    > >+       rm -r ./${DSPLIB_PACKAGE_NAME}
> >
> >    > >+}
> >
> >    > >+
> >
> >    > >+PACKAGE_ARCH = "${MACHINE_ARCH}"
> >
> >    > >+
> >
> >    > >+ALLOW_EMPTY_${PN} = "1"
> >
> >    > >+FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
> >
> >    > >+
> >
> >    > >+INSANE_SKIP_${PN}-dev = "arch"
> >
> >    > >+
> >
> >    > >diff --git a/recipes-ti/includes/ti-paths.inc
> >    b/recipes-ti/includes/ti-paths.inc
> >
> >    > >index 4f99d5e..8740b6a 100644
> >
> >    > >--- a/recipes-ti/includes/ti-paths.inc
> >
> >    > >+++ b/recipes-ti/includes/ti-paths.inc
> >
> >    > >@@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE       =
> >    "${installdir}/ti-dmai-tree"
> >
> >    > >  export DSP_BENCHMARK_INSTALL_DIR_RECIPE =
> >    "${installdir}/ti-dsp-benchmark-tree"
> >
> >    > >  export DSPLIB_C64P_INSTALL_DIR_RECIPE =
> >    "${installdir}/ti-dsplib-c64p-tree"
> >
> >    > >  export DSPLIB_C674_INSTALL_DIR_RECIPE =
> >    "${installdir}/ti-dsplib-c674x-tree"
> >
> >    > >+export DSPLIB_C66_INSTALL_DIR_RECIPE  =
> >    "${installdir}/ti-dsplib-c66x-tree"
> >
> >    > >  export DSPLIB_INSTALL_DIR_RECIPE     = "${installdir}/ti-dsplib-tree"
> >
> >    > >  export DVSDK_DEMOS_INSTALL_DIR_RECIPE=
> >    "${installdir}/ti-dvsdk-demos-tree"
> >
> >    > >  export DVTB_INSTALL_DIR_RECIPE       = "${installdir}/ti-dvtb-tree"
> >
> >    > >@@ -39,6 +40,7 @@ export OSAL_INSTALL_DIR_RECIPE       =
> >    "${installdir}/ti-osal-tree"
> >
> >    > >  export RTFS_INSTALL_DIR_RECIPE       = "${installdir}/ti-rtfs-tree"
> >
> >    > >  export SYSBIOS_INSTALL_DIR_RECIPE    =
> >    "${installdir}/ti-sysbios-tree"
> >
> >    > >  export SYSLINK_INSTALL_DIR_RECIPE    =
> >    "${installdir}/ti-syslink-tree"
> >
> >    > >+export SWTOOLS_INSTALL_DIR_RECIPE    = "${installdir}/ti-swtools-tree"
> >
> >    > >  export UIA_INSTALL_DIR_RECIPE        = "${installdir}/ti-uia-tree"
> >
> >    > >  export VICPLIB_INSTALL_DIR_RECIPE    =
> >    "${installdir}/ti-vicplib-tree"
> >
> >    > >  export XDAIS_INSTALL_DIR_RECIPE      = "${installdir}/ti-xdais-tree"
> >
> >    > >@@ -48,8 +50,8 @@ export OSAL_INSTALL_DIR_RECIPE       =
> >    "${installdir}/ti-osal-tree"
> >
> >    > >  export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    =
> >    "${installdir}/ti-cgt-arm"
> >
> >    > >  export GCC_ARM_NONE_TOOLCHAIN_RECIPE      =
> >    "${installdir}/gcc-arm-none-eabi"
> >
> >    > >  export TI_CGT_PRU_INSTALL_DIR_RECIPE      = "${installdir}/cgt-pru"
> >
> >    > >-export DSPLIB_C66_INSTALL_DIR_RECIPE      =
> >    "${installdir}/ti-dsplib-c66x-tree"
> >
> >    > >  export MATHLIB_C66_INSTALL_DIR_RECIPE     =
> >    "${installdir}/ti-mathlib-c66x-tree"
> >
> >    > >+export MATHLIB_C674_INSTALL_DIR_RECIPE    =
> >    "${installdir}/ti-mathlib-c674x-tree"
> >
> >    > >  export IMGLIB_C66_INSTALL_DIR_RECIPE      =
> >    "${installdir}/ti-imglib-c66x-tree"
> >
> >    > >  export VLIB_C66_INSTALL_DIR_RECIPE        =
> >    "${installdir}/ti-vlib-c66x-tree"
> >
> >    > >  export CG_XML_INSTALL_DIR_RECIPE     = "${installdir}/ti-cg-xml-tree"
> >
> >    > >@@ -95,7 +97,11 @@ export OSAL_INSTALL_DIR       =
> >    "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}
> >
> >    > >  export M4_TOOLCHAIN_INSTALL_DIR    =
> >    "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
> >
> >    > >  export GCC_ARM_NONE_TOOLCHAIN      =
> >    "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
> >
> >    > >  export TI_CGT_PRU_INSTALL_DIR      =
> >    "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
> >
> >    > >+export SWTOOLS_INSTALL_DIR         =
> >    "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
> >
> >    > >+export DSPLIB_C64P_INSTALL_DIR     =
> >    "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> >
> >    > >+export DSPLIB_C674_INSTALL_DIR     =
> >    "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> >
> >    > >  export DSPLIB_C66_INSTALL_DIR      =
> >    "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >
> >    > >+export MATHLIB_C674_INSTALL_DIR    =
> >    "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
> >
> >    > >  export MATHLIB_C66_INSTALL_DIR     =
> >    "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
> >
> >    > >  export IMGLIB_C66_INSTALL_DIR      =
> >    "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
> >
> >    > >  export VLIB_C66_INSTALL_DIR        =
> >    "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
> >
> >    >
> >
> >    > --
> >
> >    > _______________________________________________
> >
> >    > meta-ti mailing list
> >
> >    > meta-ti@yoctoproject.org
> >
> >    > https://lists.yoctoproject.org/listinfo/meta-ti


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
  2018-09-12 20:37         ` Dmytriyenko, Denys
  2018-09-12 21:06           ` Xu, Jianzhong
@ 2018-09-12 22:52           ` Denys Dmytriyenko
  2018-09-13 11:26             ` Jacob Stiffler
  1 sibling, 1 reply; 19+ messages in thread
From: Denys Dmytriyenko @ 2018-09-12 22:52 UTC (permalink / raw)
  To: Xu, Jianzhong; +Cc: meta-ti

Same for dra7xx-evm...


On Wed, Sep 12, 2018 at 04:37:48PM -0400, Dmytriyenko, Denys wrote:
> And it crashed and burned right away:
> 
> ERROR: Nothing PROVIDES 'dsplib-c66x' (but /OE/arago-rocko-next-build/sources/meta-arago/meta-arago-extras/recipes-apps/video-analytics-demo/qt-opencv-opencl-opengl-multithreaded_git.bb DEPENDS on or otherwise requires it)
> dsplib-c66x was skipped: incompatible with machine am57xx-hs-evm (not in COMPATIBLE_MACHINE)
> NOTE: Runtime target 'qt-opencv-opencl-opengl-multithreaded-src' is unbuildable, removing...
> 
> Jake,
> 
> Did you tested it on am57xx-hs-evm?
> 
> Denys
> 
> 
> > -----Original Message-----
> > From: Denys Dmytriyenko [mailto:denys@ti.com]
> > Sent: Wednesday, September 12, 2018 4:21 PM
> > To: Xu, Jianzhong
> > Cc: Stiffler, Jacob; meta-ti@yoctoproject.org
> > Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build
> > DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
> > 
> > Thanks, merged into rocko-next for testing.
> > 
> > There were lots of small non-critical things I had to fix, like whitespaces,
> > indentation, etc. But the biggest one is that you have to follow OpenEmbedded
> > Commit Message Guidelines:
> > 
> > https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
> > 
> > 
> > On Wed, Sep 12, 2018 at 03:40:42PM -0400, Xu, Jianzhong wrote:
> > >    Denys,
> > >
> > >
> > >
> > >    You're right. The versioning was inconsistent. Please use
> > >    [EXTERNAL,3/3,v2] and newer versions of [EXTERNAL,2/3], [EXTERNAL,1/3].
> > >    The latter two should have had v2 in it. Please see highlights below.
> > >
> > >
> > >
> > >    +------------------------------------------------------------------------+
> > >    |[EXTERNAL,3/3,v2] Added DSPLIB recipe to   |          |            ||   |
> > >    |build DSPLIB from source. Updated          |2018-09-06|Jianzhong Xu||New|
> > >    |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
> > >    |DSPLIB.                                    |          |            ||   |
> > >    |-------------------------------------------+----------+------------++---|
> > >    |[EXTERNAL] Added DSPLIB recipe to build    |          |            ||   |
> > >    |DSPLIB from source. Updated                |2018-09-06|Jianzhong Xu||New|
> > >    |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
> > >    |DSPLIB.                                    |          |            ||   |
> > >    |-------------------------------------------+----------+------------++---|
> > >    |[EXTERNAL,3/3] Added DSPLIB recipe to build|2018-09-04|Jianzhong
> > Xu||New|
> > >    |DSPLIB from source.                        |          |            ||   |
> > >    |-------------------------------------------+----------+------------++---|
> > >    |[EXTERNAL,2/3] Added MATHLIB recipe to     |2018-09-04|Jianzhong
> > Xu||New|
> > >    |build MATHLIB from source.                 |          |            ||   |
> > >    |-------------------------------------------+----------+------------++---|
> > >    |[EXTERNAL,1/3] Added SWTOOLS which is      |          |            ||   |
> > >    |needed to build processor libs (DSPLIB,    |2018-09-04|Jianzhong Xu||New|
> > >    |MATHLIB, etc) from source.                 |          |            ||   |
> > >    +------------------------------------------------------------------------+
> > >
> > >
> > >
> > >    Thanks,
> > >
> > >    Jianzhong
> > >
> > >
> > >
> > >    -----Original Message-----
> > >    From: Dmytriyenko, Denys
> > >    Sent: Wednesday, September 12, 2018 3:13 PM
> > >    To: Stiffler, Jacob
> > >    Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
> > >    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to
> > >    build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
> > >    DSPLIB.
> > >
> > >
> > >
> > >    Jake,
> > >
> > >
> > >
> > >    I'll give it a look - I assume you want the 3 most recent patches, I don't
> > >
> > >    think versioning was consistent...
> > >
> > >
> > >
> > >    Denys
> > >
> > >
> > >
> > >
> > >
> > >    On Tue, Sep 11, 2018 at 09:17:49AM -0400, Jacob Stiffler wrote:
> > >
> > >    > ACK
> > >
> > >    >
> > >
> > >    >
> > >
> > >    > Denys,
> > >
> > >    >
> > >
> > >    > Can you apply these patches to the ti2018.03 branch?
> > >
> > >    >
> > >
> > >    >
> > >
> > >    > Thank you,
> > >
> > >    >
> > >
> > >    > Jake
> > >
> > >    >
> > >
> > >    >
> > >
> > >    > On 9/6/2018 1:46 PM, Jianzhong Xu wrote:
> > >
> > >    > >Signed-off-by: Jianzhong Xu <xuj@ti.com>
> > >
> > >    > >---
> > >
> > >    > >Change from previous version of patch
> > >
> > >    > >Corrected typo: MATHLIB_C674INSTALL_XXX should have been
> > >    MATHLIB_C674_INSTALL_XXX
> > >
> > >    > >---
> > >
> > >    > >---
> > >
> > >    > >  recipes-ti/dsplib/dsplib-c64xp_git.bb    |  9 ++++
> > >
> > >    > >  recipes-ti/dsplib/dsplib-c66x.inc        | 30 ------------
> > >
> > >    > >  recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb |  9 ----
> > >
> > >    > >  recipes-ti/dsplib/dsplib-c66x_git.bb     | 10 ++++
> > >
> > >    > >  recipes-ti/dsplib/dsplib-c674x_git.bb    |  9 ++++
> > >
> > >    > >  recipes-ti/dsplib/dsplib.inc             | 79
> > >    ++++++++++++++++++++++++++++++++
> > >
> > >    > >  recipes-ti/includes/ti-paths.inc         |  8 +++-
> > >
> > >    > >  7 files changed, 114 insertions(+), 40 deletions(-)
> > >
> > >    > >  create mode 100644 recipes-ti/dsplib/dsplib-c64xp_git.bb
> > >
> > >    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc
> > >
> > >    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> > >
> > >    > >  create mode 100644 recipes-ti/dsplib/dsplib-c66x_git.bb
> > >
> > >    > >  create mode 100644 recipes-ti/dsplib/dsplib-c674x_git.bb
> > >
> > >    > >  create mode 100644 recipes-ti/dsplib/dsplib.inc
> > >
> > >    > >
> > >
> > >    > >diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb
> > >    b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> > >
> > >    > >new file mode 100644
> > >
> > >    > >index 0000000..1038d44
> > >
> > >    > >--- /dev/null
> > >
> > >    > >+++ b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> > >
> > >    > >@@ -0,0 +1,9 @@
> > >
> > >    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
> > >
> > >    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> > >
> > >    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
> > >
> > >    > >+DSPLIB_BUILD_TARGET = "c64Px"
> > >
> > >    > >+
> > >
> > >    > >+DEPENDS = ""
> > >
> > >    > >+
> > >
> > >    > >+include dsplib.inc
> > >
> > >    > >+
> > >
> > >    > >diff --git a/recipes-ti/dsplib/dsplib-c66x.inc
> > >    b/recipes-ti/dsplib/dsplib-c66x.inc
> > >
> > >    > >deleted file mode 100644
> > >
> > >    > >index 7ff99c2..0000000
> > >
> > >    > >--- a/recipes-ti/dsplib/dsplib-c66x.inc
> > >
> > >    > >+++ /dev/null
> > >
> > >    > >@@ -1,30 +0,0 @@
> > >
> > >    > >-DESCRIPTION = "DSPLIB contains optimized general-purpose
> > >    signal-processing routines for TI DSPs"
> > >
> > >    > >-HOMEPAGE = "http://www.ti.com/tool/sprc265"
> > >
> > >    > >-SECTION = "devel"
> > >
> > >    > >-LICENSE = "BSD-3-Clause"
> > >
> > >    > >-
> > >
> > >    > >-require ../includes/ti-paths.inc
> > >
> > >    > >-require ../includes/ti-staging.inc
> > >
> > >    > >-require ../includes/ti-unpack.inc
> > >
> > >    > >-
> > >
> > >    > >-COMPATIBLE_MACHINE = "omap-a15|keystone"
> > >
> > >    > >-
> > >
> > >    > >-SRC_URI =
> > >    "http://software-
> > dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=d
> > splib"
> > >
> > >    > >-
> > >
> > >    > >-BINFILE = "dsplib_c66x_${PV}_Linux.bin"
> > >
> > >    > >-TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
> > >
> > >    > >-TI_BIN_UNPK_CMDS = ""
> > >
> > >    > >-
> > >
> > >    > >-do_install() {
> > >
> > >    > >-    CP_ARGS="-Prf --preserve=mode,timestamps --no-
> > preserve=ownership"
> > >
> > >    > >-    install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> > >
> > >    > >-    cp ${CP_ARGS} ${S}/* ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> > >
> > >    > >-}
> > >
> > >    > >-
> > >
> > >    > >-ALLOW_EMPTY_${PN} = "1"
> > >
> > >    > >-FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> > >
> > >    > >-
> > >
> > >    > >-INHIBIT_PACKAGE_STRIP = "1"
> > >
> > >    > >-INHIBIT_SYSROOT_STRIP = "1"
> > >
> > >    > >-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> > >
> > >    > >-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 f1273f3..0000000
> > >
> > >    > >--- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> > >
> > >    > >+++ /dev/null
> > >
> > >    > >@@ -1,9 +0,0 @@
> > >
> > >    > >-require dsplib-c66x.inc
> > >
> > >    > >-
> > >
> > >    > >-PV = "3_4_0_0"
> > >
> > >    > >-PR = "r1"
> > >
> > >    > >-
> > >
> > >    > >-LIC_FILES_CHKSUM =
> > >
> > "file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8
> > a628512f47c4bf676a"
> > >
> > >    > >-
> > >
> > >    > >-SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf"
> > >
> > >    > >-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 0000000..cbc25d0
> > >
> > >    > >--- /dev/null
> > >
> > >    > >+++ b/recipes-ti/dsplib/dsplib-c66x_git.bb
> > >
> > >    > >@@ -0,0 +1,10 @@
> > >
> > >    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
> > >
> > >    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> > >
> > >    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
> > >
> > >    > >+DSPLIB_BUILD_TARGET = "c66x"
> > >
> > >    > >+
> > >
> > >    > >+DEPENDS = "mathlib-c66x"
> > >
> > >    > >+
> > >
> > >    > >+include dsplib.inc
> > >
> > >    > >+
> > >
> > >    > >+
> > >
> > >    > >diff --git a/recipes-ti/dsplib/dsplib-c674x_git.bb
> > >    b/recipes-ti/dsplib/dsplib-c674x_git.bb
> > >
> > >    > >new file mode 100644
> > >
> > >    > >index 0000000..07c6892
> > >
> > >    > >--- /dev/null
> > >
> > >    > >+++ b/recipes-ti/dsplib/dsplib-c674x_git.bb
> > >
> > >    > >@@ -0,0 +1,9 @@
> > >
> > >    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
> > >
> > >    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> > >
> > >    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
> > >
> > >    > >+DSPLIB_BUILD_TARGET = "c674x"
> > >
> > >    > >+
> > >
> > >    > >+DEPENDS = "mathlib-c674x"
> > >
> > >    > >+
> > >
> > >    > >+include dsplib.inc
> > >
> > >    > >+
> > >
> > >    > >diff --git a/recipes-ti/dsplib/dsplib.inc
> > >    b/recipes-ti/dsplib/dsplib.inc
> > >
> > >    > >new file mode 100644
> > >
> > >    > >index 0000000..66fe0fb
> > >
> > >    > >--- /dev/null
> > >
> > >    > >+++ b/recipes-ti/dsplib/dsplib.inc
> > >
> > >    > >@@ -0,0 +1,79 @@
> > >
> > >    > >+SUMMARY = "DSPLIB contains optimized signal processing functions for
> > >    TI DSPs"
> > >
> > >    > >+HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
> > >
> > >    > >+LICENSE = "BSD-3-Clause"
> > >
> > >    > >+
> > >
> > >    > >+require ../includes/ti-paths.inc
> > >
> > >    > >+
> > >
> > >    > >+PV = "3_4_0_1"
> > >
> > >    > >+PR = "r0"
> > >
> > >    > >+
> > >
> > >    > >+COMPATIBLE_MACHINE = "am57xx-evm|keystone|c66x|omapl1"
> > >
> > >    > >+
> > >
> > >    > >+DEPENDS += "ti-cgt6x-native \
> > >
> > >    > >+           ti-xdctools-native \
> > >
> > >    > >+           ti-sysbios \
> > >
> > >    > >+           doxygen-native \
> > >
> > >    > >+           zip-native \
> > >
> > >    > >+           swtools "
> > >
> > >    > >+
> > >
> > >    > >+S = "${WORKDIR}/git"
> > >
> > >    > >+
> > >
> > >    > >+SRC_URI =
> > >    "git://git.ti.com/ep-processor-
> > libraries/dsplib.git;protocol=git;branch=master"
> > >
> > >    > >+SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"
> > >
> > >    > >+
> > >
> > >    > >+LIC_FILES_CHKSUM =
> > >
> > "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4
> > d51d8af75419781591ace190b"
> > >
> > >    > >+
> > >
> > >    > >+export DSPLIB_WORK_DIR="${S}"
> > >
> > >    > >+export CGTOOLS_INSTALL_DIR  =
> > >    "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
> > >
> > >    > >+export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> > >
> > >    > >+export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> > >
> > >    > >+export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
> > >
> > >    > >+export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
> > >
> > >    > >+export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
> > >
> > >    > >+export INCDIR="${MATHLIB_INSTALL_DIR}/"
> > >
> > >    > >+
> > >
> > >    > >+PATH_append = ":${XDC_INSTALL_DIR}"
> > >
> > >    > >+
> > >
> > >    >
> > >
> > >+XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBI
> > OS_INSTALL_DIR}/packages;"
> > >
> > >    >
> > >
> > >+XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_
> > WORK_DIR};"
> > >
> > >    > >+
> > >
> > >    > >+export XDCPATH
> > >
> > >    > >+
> > >
> > >    > >+DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
> > >
> > >    > >+
> > >
> > >    > >+do_compile() {
> > >
> > >    > >+       cd ${DSPLIB_WORK_DIR}/ti/dsplib;
> > >
> > >    > >+       xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-
> > v"
> > >
> > >    > >+}
> > >
> > >    > >+
> > >
> > >    > >+do_install() {
> > >
> > >    > >+       install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> > >
> > >    > >+
> > >
> > >    > >+       find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d
> > >    ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
> > >
> > >    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/*
> > >    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> > >
> > >    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata
> > >    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> > >
> > >    > >+       rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
> > >
> > >    > >+}
> > >
> > >    > >+
> > >
> > >    > >+
> > >
> > >    > >+inherit deploy
> > >
> > >    > >+addtask deploy before do_build after do_install
> > >
> > >    > >+
> > >
> > >    > >+do_deploy() {
> > >
> > >    > >+       install -d ${DEPLOYDIR}
> > >
> > >    > >+       # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> > >
> > >    > >+       # and place the zip file in ${DEPLOYDIR}
> > >
> > >    > >+       mkdir ./${DSPLIB_PACKAGE_NAME}
> > >
> > >    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/*
> > >    ./${DSPLIB_PACKAGE_NAME}
> > >
> > >    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata
> > >    ./${DSPLIB_PACKAGE_NAME}
> > >
> > >    > >+       zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip
> > >    ./${DSPLIB_PACKAGE_NAME}
> > >
> > >    > >+       rm -r ./${DSPLIB_PACKAGE_NAME}
> > >
> > >    > >+}
> > >
> > >    > >+
> > >
> > >    > >+PACKAGE_ARCH = "${MACHINE_ARCH}"
> > >
> > >    > >+
> > >
> > >    > >+ALLOW_EMPTY_${PN} = "1"
> > >
> > >    > >+FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
> > >
> > >    > >+
> > >
> > >    > >+INSANE_SKIP_${PN}-dev = "arch"
> > >
> > >    > >+
> > >
> > >    > >diff --git a/recipes-ti/includes/ti-paths.inc
> > >    b/recipes-ti/includes/ti-paths.inc
> > >
> > >    > >index 4f99d5e..8740b6a 100644
> > >
> > >    > >--- a/recipes-ti/includes/ti-paths.inc
> > >
> > >    > >+++ b/recipes-ti/includes/ti-paths.inc
> > >
> > >    > >@@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE       =
> > >    "${installdir}/ti-dmai-tree"
> > >
> > >    > >  export DSP_BENCHMARK_INSTALL_DIR_RECIPE =
> > >    "${installdir}/ti-dsp-benchmark-tree"
> > >
> > >    > >  export DSPLIB_C64P_INSTALL_DIR_RECIPE =
> > >    "${installdir}/ti-dsplib-c64p-tree"
> > >
> > >    > >  export DSPLIB_C674_INSTALL_DIR_RECIPE =
> > >    "${installdir}/ti-dsplib-c674x-tree"
> > >
> > >    > >+export DSPLIB_C66_INSTALL_DIR_RECIPE  =
> > >    "${installdir}/ti-dsplib-c66x-tree"
> > >
> > >    > >  export DSPLIB_INSTALL_DIR_RECIPE     = "${installdir}/ti-dsplib-tree"
> > >
> > >    > >  export DVSDK_DEMOS_INSTALL_DIR_RECIPE=
> > >    "${installdir}/ti-dvsdk-demos-tree"
> > >
> > >    > >  export DVTB_INSTALL_DIR_RECIPE       = "${installdir}/ti-dvtb-tree"
> > >
> > >    > >@@ -39,6 +40,7 @@ export OSAL_INSTALL_DIR_RECIPE       =
> > >    "${installdir}/ti-osal-tree"
> > >
> > >    > >  export RTFS_INSTALL_DIR_RECIPE       = "${installdir}/ti-rtfs-tree"
> > >
> > >    > >  export SYSBIOS_INSTALL_DIR_RECIPE    =
> > >    "${installdir}/ti-sysbios-tree"
> > >
> > >    > >  export SYSLINK_INSTALL_DIR_RECIPE    =
> > >    "${installdir}/ti-syslink-tree"
> > >
> > >    > >+export SWTOOLS_INSTALL_DIR_RECIPE    = "${installdir}/ti-swtools-tree"
> > >
> > >    > >  export UIA_INSTALL_DIR_RECIPE        = "${installdir}/ti-uia-tree"
> > >
> > >    > >  export VICPLIB_INSTALL_DIR_RECIPE    =
> > >    "${installdir}/ti-vicplib-tree"
> > >
> > >    > >  export XDAIS_INSTALL_DIR_RECIPE      = "${installdir}/ti-xdais-tree"
> > >
> > >    > >@@ -48,8 +50,8 @@ export OSAL_INSTALL_DIR_RECIPE       =
> > >    "${installdir}/ti-osal-tree"
> > >
> > >    > >  export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    =
> > >    "${installdir}/ti-cgt-arm"
> > >
> > >    > >  export GCC_ARM_NONE_TOOLCHAIN_RECIPE      =
> > >    "${installdir}/gcc-arm-none-eabi"
> > >
> > >    > >  export TI_CGT_PRU_INSTALL_DIR_RECIPE      = "${installdir}/cgt-pru"
> > >
> > >    > >-export DSPLIB_C66_INSTALL_DIR_RECIPE      =
> > >    "${installdir}/ti-dsplib-c66x-tree"
> > >
> > >    > >  export MATHLIB_C66_INSTALL_DIR_RECIPE     =
> > >    "${installdir}/ti-mathlib-c66x-tree"
> > >
> > >    > >+export MATHLIB_C674_INSTALL_DIR_RECIPE    =
> > >    "${installdir}/ti-mathlib-c674x-tree"
> > >
> > >    > >  export IMGLIB_C66_INSTALL_DIR_RECIPE      =
> > >    "${installdir}/ti-imglib-c66x-tree"
> > >
> > >    > >  export VLIB_C66_INSTALL_DIR_RECIPE        =
> > >    "${installdir}/ti-vlib-c66x-tree"
> > >
> > >    > >  export CG_XML_INSTALL_DIR_RECIPE     = "${installdir}/ti-cg-xml-tree"
> > >
> > >    > >@@ -95,7 +97,11 @@ export OSAL_INSTALL_DIR       =
> > >    "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}
> > >
> > >    > >  export M4_TOOLCHAIN_INSTALL_DIR    =
> > >    "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
> > >
> > >    > >  export GCC_ARM_NONE_TOOLCHAIN      =
> > >    "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
> > >
> > >    > >  export TI_CGT_PRU_INSTALL_DIR      =
> > >    "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
> > >
> > >    > >+export SWTOOLS_INSTALL_DIR         =
> > >    "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
> > >
> > >    > >+export DSPLIB_C64P_INSTALL_DIR     =
> > >    "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> > >
> > >    > >+export DSPLIB_C674_INSTALL_DIR     =
> > >    "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> > >
> > >    > >  export DSPLIB_C66_INSTALL_DIR      =
> > >    "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> > >
> > >    > >+export MATHLIB_C674_INSTALL_DIR    =
> > >    "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
> > >
> > >    > >  export MATHLIB_C66_INSTALL_DIR     =
> > >    "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
> > >
> > >    > >  export IMGLIB_C66_INSTALL_DIR      =
> > >    "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
> > >
> > >    > >  export VLIB_C66_INSTALL_DIR        =
> > >    "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
> > >
> > >    >
> > >
> > >    > --
> > >
> > >    > _______________________________________________
> > >
> > >    > meta-ti mailing list
> > >
> > >    > meta-ti@yoctoproject.org
> > >
> > >    > https://lists.yoctoproject.org/listinfo/meta-ti


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
  2018-09-12 22:52           ` Denys Dmytriyenko
@ 2018-09-13 11:26             ` Jacob Stiffler
  2018-09-13 15:24               ` Xu, Jianzhong
  2018-09-13 15:26               ` Denys Dmytriyenko
  0 siblings, 2 replies; 19+ messages in thread
From: Jacob Stiffler @ 2018-09-13 11:26 UTC (permalink / raw)
  To: Denys Dmytriyenko, Xu, Jianzhong; +Cc: meta-ti



On 9/12/2018 6:52 PM, Denys Dmytriyenko wrote:
> Same for dra7xx-evm...
>
>
> On Wed, Sep 12, 2018 at 04:37:48PM -0400, Dmytriyenko, Denys wrote:
>> And it crashed and burned right away:
>>
>> ERROR: Nothing PROVIDES 'dsplib-c66x' (but /OE/arago-rocko-next-build/sources/meta-arago/meta-arago-extras/recipes-apps/video-analytics-demo/qt-opencv-opencl-opengl-multithreaded_git.bb DEPENDS on or otherwise requires it)
>> dsplib-c66x was skipped: incompatible with machine am57xx-hs-evm (not in COMPATIBLE_MACHINE)
>> NOTE: Runtime target 'qt-opencv-opencl-opengl-multithreaded-src' is unbuildable, removing...
>>
>> Jake,
>>
>> Did you tested it on am57xx-hs-evm?

I had only built for am57xx-evm as there are no machine overrides in 
these recipes because they are DSP architecture-specific.

Looks like we should change "COMPATIBLE_MACHINE" to, at the very least, 
include what was there before (omap-a15|keystone). But as these are 
specific to the DSP architecture, should COMPATIBLE_MACHINE even be 
necessary?

>> Denys
>>
>>
>>> -----Original Message-----
>>> From: Denys Dmytriyenko [mailto:denys@ti.com]
>>> Sent: Wednesday, September 12, 2018 4:21 PM
>>> To: Xu, Jianzhong
>>> Cc: Stiffler, Jacob; meta-ti@yoctoproject.org
>>> Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build
>>> DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
>>>
>>> Thanks, merged into rocko-next for testing.
>>>
>>> There were lots of small non-critical things I had to fix, like whitespaces,
>>> indentation, etc. But the biggest one is that you have to follow OpenEmbedded
>>> Commit Message Guidelines:
>>>
>>> https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
>>>
>>>
>>> On Wed, Sep 12, 2018 at 03:40:42PM -0400, Xu, Jianzhong wrote:
>>>>     Denys,
>>>>
>>>>
>>>>
>>>>     You're right. The versioning was inconsistent. Please use
>>>>     [EXTERNAL,3/3,v2] and newer versions of [EXTERNAL,2/3], [EXTERNAL,1/3].
>>>>     The latter two should have had v2 in it. Please see highlights below.
>>>>
>>>>
>>>>
>>>>     +------------------------------------------------------------------------+
>>>>     |[EXTERNAL,3/3,v2] Added DSPLIB recipe to   |          |            ||   |
>>>>     |build DSPLIB from source. Updated          |2018-09-06|Jianzhong Xu||New|
>>>>     |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
>>>>     |DSPLIB.                                    |          |            ||   |
>>>>     |-------------------------------------------+----------+------------++---|
>>>>     |[EXTERNAL] Added DSPLIB recipe to build    |          |            ||   |
>>>>     |DSPLIB from source. Updated                |2018-09-06|Jianzhong Xu||New|
>>>>     |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
>>>>     |DSPLIB.                                    |          |            ||   |
>>>>     |-------------------------------------------+----------+------------++---|
>>>>     |[EXTERNAL,3/3] Added DSPLIB recipe to build|2018-09-04|Jianzhong
>>> Xu||New|
>>>>     |DSPLIB from source.                        |          |            ||   |
>>>>     |-------------------------------------------+----------+------------++---|
>>>>     |[EXTERNAL,2/3] Added MATHLIB recipe to     |2018-09-04|Jianzhong
>>> Xu||New|
>>>>     |build MATHLIB from source.                 |          |            ||   |
>>>>     |-------------------------------------------+----------+------------++---|
>>>>     |[EXTERNAL,1/3] Added SWTOOLS which is      |          |            ||   |
>>>>     |needed to build processor libs (DSPLIB,    |2018-09-04|Jianzhong Xu||New|
>>>>     |MATHLIB, etc) from source.                 |          |            ||   |
>>>>     +------------------------------------------------------------------------+
>>>>
>>>>
>>>>
>>>>     Thanks,
>>>>
>>>>     Jianzhong
>>>>
>>>>
>>>>
>>>>     -----Original Message-----
>>>>     From: Dmytriyenko, Denys
>>>>     Sent: Wednesday, September 12, 2018 3:13 PM
>>>>     To: Stiffler, Jacob
>>>>     Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
>>>>     Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to
>>>>     build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
>>>>     DSPLIB.
>>>>
>>>>
>>>>
>>>>     Jake,
>>>>
>>>>
>>>>
>>>>     I'll give it a look - I assume you want the 3 most recent patches, I don't
>>>>
>>>>     think versioning was consistent...
>>>>
>>>>
>>>>
>>>>     Denys
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>     On Tue, Sep 11, 2018 at 09:17:49AM -0400, Jacob Stiffler wrote:
>>>>
>>>>     > ACK
>>>>
>>>>     >
>>>>
>>>>     >
>>>>
>>>>     > Denys,
>>>>
>>>>     >
>>>>
>>>>     > Can you apply these patches to the ti2018.03 branch?
>>>>
>>>>     >
>>>>
>>>>     >
>>>>
>>>>     > Thank you,
>>>>
>>>>     >
>>>>
>>>>     > Jake
>>>>
>>>>     >
>>>>
>>>>     >
>>>>
>>>>     > On 9/6/2018 1:46 PM, Jianzhong Xu wrote:
>>>>
>>>>     > >Signed-off-by: Jianzhong Xu <xuj@ti.com>
>>>>
>>>>     > >---
>>>>
>>>>     > >Change from previous version of patch
>>>>
>>>>     > >Corrected typo: MATHLIB_C674INSTALL_XXX should have been
>>>>     MATHLIB_C674_INSTALL_XXX
>>>>
>>>>     > >---
>>>>
>>>>     > >---
>>>>
>>>>     > >  recipes-ti/dsplib/dsplib-c64xp_git.bb    |  9 ++++
>>>>
>>>>     > >  recipes-ti/dsplib/dsplib-c66x.inc        | 30 ------------
>>>>
>>>>     > >  recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb |  9 ----
>>>>
>>>>     > >  recipes-ti/dsplib/dsplib-c66x_git.bb     | 10 ++++
>>>>
>>>>     > >  recipes-ti/dsplib/dsplib-c674x_git.bb    |  9 ++++
>>>>
>>>>     > >  recipes-ti/dsplib/dsplib.inc             | 79
>>>>     ++++++++++++++++++++++++++++++++
>>>>
>>>>     > >  recipes-ti/includes/ti-paths.inc         |  8 +++-
>>>>
>>>>     > >  7 files changed, 114 insertions(+), 40 deletions(-)
>>>>
>>>>     > >  create mode 100644 recipes-ti/dsplib/dsplib-c64xp_git.bb
>>>>
>>>>     > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc
>>>>
>>>>     > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
>>>>
>>>>     > >  create mode 100644 recipes-ti/dsplib/dsplib-c66x_git.bb
>>>>
>>>>     > >  create mode 100644 recipes-ti/dsplib/dsplib-c674x_git.bb
>>>>
>>>>     > >  create mode 100644 recipes-ti/dsplib/dsplib.inc
>>>>
>>>>     > >
>>>>
>>>>     > >diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb
>>>>     b/recipes-ti/dsplib/dsplib-c64xp_git.bb
>>>>
>>>>     > >new file mode 100644
>>>>
>>>>     > >index 0000000..1038d44
>>>>
>>>>     > >--- /dev/null
>>>>
>>>>     > >+++ b/recipes-ti/dsplib/dsplib-c64xp_git.bb
>>>>
>>>>     > >@@ -0,0 +1,9 @@
>>>>
>>>>     > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
>>>>
>>>>     > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
>>>>
>>>>     > >+DSPLIB_BUILD_TARGET = "c64Px"
>>>>
>>>>     > >+
>>>>
>>>>     > >+DEPENDS = ""
>>>>
>>>>     > >+
>>>>
>>>>     > >+include dsplib.inc
>>>>
>>>>     > >+
>>>>
>>>>     > >diff --git a/recipes-ti/dsplib/dsplib-c66x.inc
>>>>     b/recipes-ti/dsplib/dsplib-c66x.inc
>>>>
>>>>     > >deleted file mode 100644
>>>>
>>>>     > >index 7ff99c2..0000000
>>>>
>>>>     > >--- a/recipes-ti/dsplib/dsplib-c66x.inc
>>>>
>>>>     > >+++ /dev/null
>>>>
>>>>     > >@@ -1,30 +0,0 @@
>>>>
>>>>     > >-DESCRIPTION = "DSPLIB contains optimized general-purpose
>>>>     signal-processing routines for TI DSPs"
>>>>
>>>>     > >-HOMEPAGE = "http://www.ti.com/tool/sprc265"
>>>>
>>>>     > >-SECTION = "devel"
>>>>
>>>>     > >-LICENSE = "BSD-3-Clause"
>>>>
>>>>     > >-
>>>>
>>>>     > >-require ../includes/ti-paths.inc
>>>>
>>>>     > >-require ../includes/ti-staging.inc
>>>>
>>>>     > >-require ../includes/ti-unpack.inc
>>>>
>>>>     > >-
>>>>
>>>>     > >-COMPATIBLE_MACHINE = "omap-a15|keystone"
>>>>
>>>>     > >-
>>>>
>>>>     > >-SRC_URI =
>>>>     "http://software-
>>> dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=d
>>> splib"
>>>>     > >-
>>>>
>>>>     > >-BINFILE = "dsplib_c66x_${PV}_Linux.bin"
>>>>
>>>>     > >-TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
>>>>
>>>>     > >-TI_BIN_UNPK_CMDS = ""
>>>>
>>>>     > >-
>>>>
>>>>     > >-do_install() {
>>>>
>>>>     > >-    CP_ARGS="-Prf --preserve=mode,timestamps --no-
>>> preserve=ownership"
>>>>     > >-    install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
>>>>
>>>>     > >-    cp ${CP_ARGS} ${S}/* ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
>>>>
>>>>     > >-}
>>>>
>>>>     > >-
>>>>
>>>>     > >-ALLOW_EMPTY_${PN} = "1"
>>>>
>>>>     > >-FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >-
>>>>
>>>>     > >-INHIBIT_PACKAGE_STRIP = "1"
>>>>
>>>>     > >-INHIBIT_SYSROOT_STRIP = "1"
>>>>
>>>>     > >-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
>>>>
>>>>     > >-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 f1273f3..0000000
>>>>
>>>>     > >--- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
>>>>
>>>>     > >+++ /dev/null
>>>>
>>>>     > >@@ -1,9 +0,0 @@
>>>>
>>>>     > >-require dsplib-c66x.inc
>>>>
>>>>     > >-
>>>>
>>>>     > >-PV = "3_4_0_0"
>>>>
>>>>     > >-PR = "r1"
>>>>
>>>>     > >-
>>>>
>>>>     > >-LIC_FILES_CHKSUM =
>>>>
>>> "file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8
>>> a628512f47c4bf676a"
>>>>     > >-
>>>>
>>>>     > >-SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf"
>>>>
>>>>     > >-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 0000000..cbc25d0
>>>>
>>>>     > >--- /dev/null
>>>>
>>>>     > >+++ b/recipes-ti/dsplib/dsplib-c66x_git.bb
>>>>
>>>>     > >@@ -0,0 +1,10 @@
>>>>
>>>>     > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
>>>>
>>>>     > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
>>>>
>>>>     > >+DSPLIB_BUILD_TARGET = "c66x"
>>>>
>>>>     > >+
>>>>
>>>>     > >+DEPENDS = "mathlib-c66x"
>>>>
>>>>     > >+
>>>>
>>>>     > >+include dsplib.inc
>>>>
>>>>     > >+
>>>>
>>>>     > >+
>>>>
>>>>     > >diff --git a/recipes-ti/dsplib/dsplib-c674x_git.bb
>>>>     b/recipes-ti/dsplib/dsplib-c674x_git.bb
>>>>
>>>>     > >new file mode 100644
>>>>
>>>>     > >index 0000000..07c6892
>>>>
>>>>     > >--- /dev/null
>>>>
>>>>     > >+++ b/recipes-ti/dsplib/dsplib-c674x_git.bb
>>>>
>>>>     > >@@ -0,0 +1,9 @@
>>>>
>>>>     > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
>>>>
>>>>     > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
>>>>
>>>>     > >+DSPLIB_BUILD_TARGET = "c674x"
>>>>
>>>>     > >+
>>>>
>>>>     > >+DEPENDS = "mathlib-c674x"
>>>>
>>>>     > >+
>>>>
>>>>     > >+include dsplib.inc
>>>>
>>>>     > >+
>>>>
>>>>     > >diff --git a/recipes-ti/dsplib/dsplib.inc
>>>>     b/recipes-ti/dsplib/dsplib.inc
>>>>
>>>>     > >new file mode 100644
>>>>
>>>>     > >index 0000000..66fe0fb
>>>>
>>>>     > >--- /dev/null
>>>>
>>>>     > >+++ b/recipes-ti/dsplib/dsplib.inc
>>>>
>>>>     > >@@ -0,0 +1,79 @@
>>>>
>>>>     > >+SUMMARY = "DSPLIB contains optimized signal processing functions for
>>>>     TI DSPs"
>>>>
>>>>     > >+HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
>>>>
>>>>     > >+LICENSE = "BSD-3-Clause"
>>>>
>>>>     > >+
>>>>
>>>>     > >+require ../includes/ti-paths.inc
>>>>
>>>>     > >+
>>>>
>>>>     > >+PV = "3_4_0_1"
>>>>
>>>>     > >+PR = "r0"
>>>>
>>>>     > >+
>>>>
>>>>     > >+COMPATIBLE_MACHINE = "am57xx-evm|keystone|c66x|omapl1"
>>>>
>>>>     > >+
>>>>
>>>>     > >+DEPENDS += "ti-cgt6x-native \
>>>>
>>>>     > >+           ti-xdctools-native \
>>>>
>>>>     > >+           ti-sysbios \
>>>>
>>>>     > >+           doxygen-native \
>>>>
>>>>     > >+           zip-native \
>>>>
>>>>     > >+           swtools "
>>>>
>>>>     > >+
>>>>
>>>>     > >+S = "${WORKDIR}/git"
>>>>
>>>>     > >+
>>>>
>>>>     > >+SRC_URI =
>>>>     "git://git.ti.com/ep-processor-
>>> libraries/dsplib.git;protocol=git;branch=master"
>>>>     > >+SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"
>>>>
>>>>     > >+
>>>>
>>>>     > >+LIC_FILES_CHKSUM =
>>>>
>>> "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4
>>> d51d8af75419781591ace190b"
>>>>     > >+
>>>>
>>>>     > >+export DSPLIB_WORK_DIR="${S}"
>>>>
>>>>     > >+export CGTOOLS_INSTALL_DIR  =
>>>>     "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
>>>>
>>>>     > >+export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
>>>>
>>>>     > >+export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
>>>>
>>>>     > >+export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
>>>>
>>>>     > >+export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
>>>>
>>>>     > >+export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
>>>>
>>>>     > >+export INCDIR="${MATHLIB_INSTALL_DIR}/"
>>>>
>>>>     > >+
>>>>
>>>>     > >+PATH_append = ":${XDC_INSTALL_DIR}"
>>>>
>>>>     > >+
>>>>
>>>>     >
>>>>
>>>> +XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBI
>>> OS_INSTALL_DIR}/packages;"
>>>>     >
>>>>
>>>> +XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_
>>> WORK_DIR};"
>>>>     > >+
>>>>
>>>>     > >+export XDCPATH
>>>>
>>>>     > >+
>>>>
>>>>     > >+DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
>>>>
>>>>     > >+
>>>>
>>>>     > >+do_compile() {
>>>>
>>>>     > >+       cd ${DSPLIB_WORK_DIR}/ti/dsplib;
>>>>
>>>>     > >+       xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-
>>> v"
>>>>     > >+}
>>>>
>>>>     > >+
>>>>
>>>>     > >+do_install() {
>>>>
>>>>     > >+       install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>>>>
>>>>     > >+
>>>>
>>>>     > >+       find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d
>>>>     ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
>>>>
>>>>     > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/*
>>>>     ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>>>>
>>>>     > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata
>>>>     ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>>>>
>>>>     > >+       rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
>>>>
>>>>     > >+}
>>>>
>>>>     > >+
>>>>
>>>>     > >+
>>>>
>>>>     > >+inherit deploy
>>>>
>>>>     > >+addtask deploy before do_build after do_install
>>>>
>>>>     > >+
>>>>
>>>>     > >+do_deploy() {
>>>>
>>>>     > >+       install -d ${DEPLOYDIR}
>>>>
>>>>     > >+       # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>>>>
>>>>     > >+       # and place the zip file in ${DEPLOYDIR}
>>>>
>>>>     > >+       mkdir ./${DSPLIB_PACKAGE_NAME}
>>>>
>>>>     > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/*
>>>>     ./${DSPLIB_PACKAGE_NAME}
>>>>
>>>>     > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata
>>>>     ./${DSPLIB_PACKAGE_NAME}
>>>>
>>>>     > >+       zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip
>>>>     ./${DSPLIB_PACKAGE_NAME}
>>>>
>>>>     > >+       rm -r ./${DSPLIB_PACKAGE_NAME}
>>>>
>>>>     > >+}
>>>>
>>>>     > >+
>>>>
>>>>     > >+PACKAGE_ARCH = "${MACHINE_ARCH}"
>>>>
>>>>     > >+
>>>>
>>>>     > >+ALLOW_EMPTY_${PN} = "1"
>>>>
>>>>     > >+FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >+
>>>>
>>>>     > >+INSANE_SKIP_${PN}-dev = "arch"
>>>>
>>>>     > >+
>>>>
>>>>     > >diff --git a/recipes-ti/includes/ti-paths.inc
>>>>     b/recipes-ti/includes/ti-paths.inc
>>>>
>>>>     > >index 4f99d5e..8740b6a 100644
>>>>
>>>>     > >--- a/recipes-ti/includes/ti-paths.inc
>>>>
>>>>     > >+++ b/recipes-ti/includes/ti-paths.inc
>>>>
>>>>     > >@@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE       =
>>>>     "${installdir}/ti-dmai-tree"
>>>>
>>>>     > >  export DSP_BENCHMARK_INSTALL_DIR_RECIPE =
>>>>     "${installdir}/ti-dsp-benchmark-tree"
>>>>
>>>>     > >  export DSPLIB_C64P_INSTALL_DIR_RECIPE =
>>>>     "${installdir}/ti-dsplib-c64p-tree"
>>>>
>>>>     > >  export DSPLIB_C674_INSTALL_DIR_RECIPE =
>>>>     "${installdir}/ti-dsplib-c674x-tree"
>>>>
>>>>     > >+export DSPLIB_C66_INSTALL_DIR_RECIPE  =
>>>>     "${installdir}/ti-dsplib-c66x-tree"
>>>>
>>>>     > >  export DSPLIB_INSTALL_DIR_RECIPE     = "${installdir}/ti-dsplib-tree"
>>>>
>>>>     > >  export DVSDK_DEMOS_INSTALL_DIR_RECIPE=
>>>>     "${installdir}/ti-dvsdk-demos-tree"
>>>>
>>>>     > >  export DVTB_INSTALL_DIR_RECIPE       = "${installdir}/ti-dvtb-tree"
>>>>
>>>>     > >@@ -39,6 +40,7 @@ export OSAL_INSTALL_DIR_RECIPE       =
>>>>     "${installdir}/ti-osal-tree"
>>>>
>>>>     > >  export RTFS_INSTALL_DIR_RECIPE       = "${installdir}/ti-rtfs-tree"
>>>>
>>>>     > >  export SYSBIOS_INSTALL_DIR_RECIPE    =
>>>>     "${installdir}/ti-sysbios-tree"
>>>>
>>>>     > >  export SYSLINK_INSTALL_DIR_RECIPE    =
>>>>     "${installdir}/ti-syslink-tree"
>>>>
>>>>     > >+export SWTOOLS_INSTALL_DIR_RECIPE    = "${installdir}/ti-swtools-tree"
>>>>
>>>>     > >  export UIA_INSTALL_DIR_RECIPE        = "${installdir}/ti-uia-tree"
>>>>
>>>>     > >  export VICPLIB_INSTALL_DIR_RECIPE    =
>>>>     "${installdir}/ti-vicplib-tree"
>>>>
>>>>     > >  export XDAIS_INSTALL_DIR_RECIPE      = "${installdir}/ti-xdais-tree"
>>>>
>>>>     > >@@ -48,8 +50,8 @@ export OSAL_INSTALL_DIR_RECIPE       =
>>>>     "${installdir}/ti-osal-tree"
>>>>
>>>>     > >  export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    =
>>>>     "${installdir}/ti-cgt-arm"
>>>>
>>>>     > >  export GCC_ARM_NONE_TOOLCHAIN_RECIPE      =
>>>>     "${installdir}/gcc-arm-none-eabi"
>>>>
>>>>     > >  export TI_CGT_PRU_INSTALL_DIR_RECIPE      = "${installdir}/cgt-pru"
>>>>
>>>>     > >-export DSPLIB_C66_INSTALL_DIR_RECIPE      =
>>>>     "${installdir}/ti-dsplib-c66x-tree"
>>>>
>>>>     > >  export MATHLIB_C66_INSTALL_DIR_RECIPE     =
>>>>     "${installdir}/ti-mathlib-c66x-tree"
>>>>
>>>>     > >+export MATHLIB_C674_INSTALL_DIR_RECIPE    =
>>>>     "${installdir}/ti-mathlib-c674x-tree"
>>>>
>>>>     > >  export IMGLIB_C66_INSTALL_DIR_RECIPE      =
>>>>     "${installdir}/ti-imglib-c66x-tree"
>>>>
>>>>     > >  export VLIB_C66_INSTALL_DIR_RECIPE        =
>>>>     "${installdir}/ti-vlib-c66x-tree"
>>>>
>>>>     > >  export CG_XML_INSTALL_DIR_RECIPE     = "${installdir}/ti-cg-xml-tree"
>>>>
>>>>     > >@@ -95,7 +97,11 @@ export OSAL_INSTALL_DIR       =
>>>>     "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}
>>>>
>>>>     > >  export M4_TOOLCHAIN_INSTALL_DIR    =
>>>>     "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >  export GCC_ARM_NONE_TOOLCHAIN      =
>>>>     "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
>>>>
>>>>     > >  export TI_CGT_PRU_INSTALL_DIR      =
>>>>     "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >+export SWTOOLS_INSTALL_DIR         =
>>>>     "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >+export DSPLIB_C64P_INSTALL_DIR     =
>>>>     "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >+export DSPLIB_C674_INSTALL_DIR     =
>>>>     "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >  export DSPLIB_C66_INSTALL_DIR      =
>>>>     "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >+export MATHLIB_C674_INSTALL_DIR    =
>>>>     "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >  export MATHLIB_C66_INSTALL_DIR     =
>>>>     "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >  export IMGLIB_C66_INSTALL_DIR      =
>>>>     "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >  export VLIB_C66_INSTALL_DIR        =
>>>>     "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
>>>>
>>>>     >
>>>>
>>>>     > --
>>>>
>>>>     > _______________________________________________
>>>>
>>>>     > meta-ti mailing list
>>>>
>>>>     > meta-ti@yoctoproject.org
>>>>
>>>>     > https://lists.yoctoproject.org/listinfo/meta-ti



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
  2018-09-13 11:26             ` Jacob Stiffler
@ 2018-09-13 15:24               ` Xu, Jianzhong
  2018-09-13 15:25                 ` Denys Dmytriyenko
  2018-09-13 15:26               ` Denys Dmytriyenko
  1 sibling, 1 reply; 19+ messages in thread
From: Xu, Jianzhong @ 2018-09-13 15:24 UTC (permalink / raw)
  To: Stiffler, Jacob, Dmytriyenko, Denys; +Cc: meta-ti

Hi Denys,

Have you tried am57xx-evm or c667x-evm? 

Thanks,
Jianzhong

-----Original Message-----
From: Stiffler, Jacob 
Sent: Thursday, September 13, 2018 7:26 AM
To: Dmytriyenko, Denys; Xu, Jianzhong
Cc: meta-ti@yoctoproject.org
Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.



On 9/12/2018 6:52 PM, Denys Dmytriyenko wrote:
> Same for dra7xx-evm...
>
>
> On Wed, Sep 12, 2018 at 04:37:48PM -0400, Dmytriyenko, Denys wrote:
>> And it crashed and burned right away:
>>
>> ERROR: Nothing PROVIDES 'dsplib-c66x' (but /OE/arago-rocko-next-build/sources/meta-arago/meta-arago-extras/recipes-apps/video-analytics-demo/qt-opencv-opencl-opengl-multithreaded_git.bb DEPENDS on or otherwise requires it)
>> dsplib-c66x was skipped: incompatible with machine am57xx-hs-evm (not in COMPATIBLE_MACHINE)
>> NOTE: Runtime target 'qt-opencv-opencl-opengl-multithreaded-src' is unbuildable, removing...
>>
>> Jake,
>>
>> Did you tested it on am57xx-hs-evm?

I had only built for am57xx-evm as there are no machine overrides in 
these recipes because they are DSP architecture-specific.

Looks like we should change "COMPATIBLE_MACHINE" to, at the very least, 
include what was there before (omap-a15|keystone). But as these are 
specific to the DSP architecture, should COMPATIBLE_MACHINE even be 
necessary?

>> Denys
>>
>>
>>> -----Original Message-----
>>> From: Denys Dmytriyenko [mailto:denys@ti.com]
>>> Sent: Wednesday, September 12, 2018 4:21 PM
>>> To: Xu, Jianzhong
>>> Cc: Stiffler, Jacob; meta-ti@yoctoproject.org
>>> Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build
>>> DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
>>>
>>> Thanks, merged into rocko-next for testing.
>>>
>>> There were lots of small non-critical things I had to fix, like whitespaces,
>>> indentation, etc. But the biggest one is that you have to follow OpenEmbedded
>>> Commit Message Guidelines:
>>>
>>> https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
>>>
>>>
>>> On Wed, Sep 12, 2018 at 03:40:42PM -0400, Xu, Jianzhong wrote:
>>>>     Denys,
>>>>
>>>>
>>>>
>>>>     You're right. The versioning was inconsistent. Please use
>>>>     [EXTERNAL,3/3,v2] and newer versions of [EXTERNAL,2/3], [EXTERNAL,1/3].
>>>>     The latter two should have had v2 in it. Please see highlights below.
>>>>
>>>>
>>>>
>>>>     +------------------------------------------------------------------------+
>>>>     |[EXTERNAL,3/3,v2] Added DSPLIB recipe to   |          |            ||   |
>>>>     |build DSPLIB from source. Updated          |2018-09-06|Jianzhong Xu||New|
>>>>     |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
>>>>     |DSPLIB.                                    |          |            ||   |
>>>>     |-------------------------------------------+----------+------------++---|
>>>>     |[EXTERNAL] Added DSPLIB recipe to build    |          |            ||   |
>>>>     |DSPLIB from source. Updated                |2018-09-06|Jianzhong Xu||New|
>>>>     |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
>>>>     |DSPLIB.                                    |          |            ||   |
>>>>     |-------------------------------------------+----------+------------++---|
>>>>     |[EXTERNAL,3/3] Added DSPLIB recipe to build|2018-09-04|Jianzhong
>>> Xu||New|
>>>>     |DSPLIB from source.                        |          |            ||   |
>>>>     |-------------------------------------------+----------+------------++---|
>>>>     |[EXTERNAL,2/3] Added MATHLIB recipe to     |2018-09-04|Jianzhong
>>> Xu||New|
>>>>     |build MATHLIB from source.                 |          |            ||   |
>>>>     |-------------------------------------------+----------+------------++---|
>>>>     |[EXTERNAL,1/3] Added SWTOOLS which is      |          |            ||   |
>>>>     |needed to build processor libs (DSPLIB,    |2018-09-04|Jianzhong Xu||New|
>>>>     |MATHLIB, etc) from source.                 |          |            ||   |
>>>>     +------------------------------------------------------------------------+
>>>>
>>>>
>>>>
>>>>     Thanks,
>>>>
>>>>     Jianzhong
>>>>
>>>>
>>>>
>>>>     -----Original Message-----
>>>>     From: Dmytriyenko, Denys
>>>>     Sent: Wednesday, September 12, 2018 3:13 PM
>>>>     To: Stiffler, Jacob
>>>>     Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
>>>>     Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to
>>>>     build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
>>>>     DSPLIB.
>>>>
>>>>
>>>>
>>>>     Jake,
>>>>
>>>>
>>>>
>>>>     I'll give it a look - I assume you want the 3 most recent patches, I don't
>>>>
>>>>     think versioning was consistent...
>>>>
>>>>
>>>>
>>>>     Denys
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>     On Tue, Sep 11, 2018 at 09:17:49AM -0400, Jacob Stiffler wrote:
>>>>
>>>>     > ACK
>>>>
>>>>     >
>>>>
>>>>     >
>>>>
>>>>     > Denys,
>>>>
>>>>     >
>>>>
>>>>     > Can you apply these patches to the ti2018.03 branch?
>>>>
>>>>     >
>>>>
>>>>     >
>>>>
>>>>     > Thank you,
>>>>
>>>>     >
>>>>
>>>>     > Jake
>>>>
>>>>     >
>>>>
>>>>     >
>>>>
>>>>     > On 9/6/2018 1:46 PM, Jianzhong Xu wrote:
>>>>
>>>>     > >Signed-off-by: Jianzhong Xu <xuj@ti.com>
>>>>
>>>>     > >---
>>>>
>>>>     > >Change from previous version of patch
>>>>
>>>>     > >Corrected typo: MATHLIB_C674INSTALL_XXX should have been
>>>>     MATHLIB_C674_INSTALL_XXX
>>>>
>>>>     > >---
>>>>
>>>>     > >---
>>>>
>>>>     > >  recipes-ti/dsplib/dsplib-c64xp_git.bb    |  9 ++++
>>>>
>>>>     > >  recipes-ti/dsplib/dsplib-c66x.inc        | 30 ------------
>>>>
>>>>     > >  recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb |  9 ----
>>>>
>>>>     > >  recipes-ti/dsplib/dsplib-c66x_git.bb     | 10 ++++
>>>>
>>>>     > >  recipes-ti/dsplib/dsplib-c674x_git.bb    |  9 ++++
>>>>
>>>>     > >  recipes-ti/dsplib/dsplib.inc             | 79
>>>>     ++++++++++++++++++++++++++++++++
>>>>
>>>>     > >  recipes-ti/includes/ti-paths.inc         |  8 +++-
>>>>
>>>>     > >  7 files changed, 114 insertions(+), 40 deletions(-)
>>>>
>>>>     > >  create mode 100644 recipes-ti/dsplib/dsplib-c64xp_git.bb
>>>>
>>>>     > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc
>>>>
>>>>     > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
>>>>
>>>>     > >  create mode 100644 recipes-ti/dsplib/dsplib-c66x_git.bb
>>>>
>>>>     > >  create mode 100644 recipes-ti/dsplib/dsplib-c674x_git.bb
>>>>
>>>>     > >  create mode 100644 recipes-ti/dsplib/dsplib.inc
>>>>
>>>>     > >
>>>>
>>>>     > >diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb
>>>>     b/recipes-ti/dsplib/dsplib-c64xp_git.bb
>>>>
>>>>     > >new file mode 100644
>>>>
>>>>     > >index 0000000..1038d44
>>>>
>>>>     > >--- /dev/null
>>>>
>>>>     > >+++ b/recipes-ti/dsplib/dsplib-c64xp_git.bb
>>>>
>>>>     > >@@ -0,0 +1,9 @@
>>>>
>>>>     > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
>>>>
>>>>     > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
>>>>
>>>>     > >+DSPLIB_BUILD_TARGET = "c64Px"
>>>>
>>>>     > >+
>>>>
>>>>     > >+DEPENDS = ""
>>>>
>>>>     > >+
>>>>
>>>>     > >+include dsplib.inc
>>>>
>>>>     > >+
>>>>
>>>>     > >diff --git a/recipes-ti/dsplib/dsplib-c66x.inc
>>>>     b/recipes-ti/dsplib/dsplib-c66x.inc
>>>>
>>>>     > >deleted file mode 100644
>>>>
>>>>     > >index 7ff99c2..0000000
>>>>
>>>>     > >--- a/recipes-ti/dsplib/dsplib-c66x.inc
>>>>
>>>>     > >+++ /dev/null
>>>>
>>>>     > >@@ -1,30 +0,0 @@
>>>>
>>>>     > >-DESCRIPTION = "DSPLIB contains optimized general-purpose
>>>>     signal-processing routines for TI DSPs"
>>>>
>>>>     > >-HOMEPAGE = "http://www.ti.com/tool/sprc265"
>>>>
>>>>     > >-SECTION = "devel"
>>>>
>>>>     > >-LICENSE = "BSD-3-Clause"
>>>>
>>>>     > >-
>>>>
>>>>     > >-require ../includes/ti-paths.inc
>>>>
>>>>     > >-require ../includes/ti-staging.inc
>>>>
>>>>     > >-require ../includes/ti-unpack.inc
>>>>
>>>>     > >-
>>>>
>>>>     > >-COMPATIBLE_MACHINE = "omap-a15|keystone"
>>>>
>>>>     > >-
>>>>
>>>>     > >-SRC_URI =
>>>>     "http://software-
>>> dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=d
>>> splib"
>>>>     > >-
>>>>
>>>>     > >-BINFILE = "dsplib_c66x_${PV}_Linux.bin"
>>>>
>>>>     > >-TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
>>>>
>>>>     > >-TI_BIN_UNPK_CMDS = ""
>>>>
>>>>     > >-
>>>>
>>>>     > >-do_install() {
>>>>
>>>>     > >-    CP_ARGS="-Prf --preserve=mode,timestamps --no-
>>> preserve=ownership"
>>>>     > >-    install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
>>>>
>>>>     > >-    cp ${CP_ARGS} ${S}/* ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
>>>>
>>>>     > >-}
>>>>
>>>>     > >-
>>>>
>>>>     > >-ALLOW_EMPTY_${PN} = "1"
>>>>
>>>>     > >-FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >-
>>>>
>>>>     > >-INHIBIT_PACKAGE_STRIP = "1"
>>>>
>>>>     > >-INHIBIT_SYSROOT_STRIP = "1"
>>>>
>>>>     > >-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
>>>>
>>>>     > >-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 f1273f3..0000000
>>>>
>>>>     > >--- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
>>>>
>>>>     > >+++ /dev/null
>>>>
>>>>     > >@@ -1,9 +0,0 @@
>>>>
>>>>     > >-require dsplib-c66x.inc
>>>>
>>>>     > >-
>>>>
>>>>     > >-PV = "3_4_0_0"
>>>>
>>>>     > >-PR = "r1"
>>>>
>>>>     > >-
>>>>
>>>>     > >-LIC_FILES_CHKSUM =
>>>>
>>> "file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8
>>> a628512f47c4bf676a"
>>>>     > >-
>>>>
>>>>     > >-SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf"
>>>>
>>>>     > >-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 0000000..cbc25d0
>>>>
>>>>     > >--- /dev/null
>>>>
>>>>     > >+++ b/recipes-ti/dsplib/dsplib-c66x_git.bb
>>>>
>>>>     > >@@ -0,0 +1,10 @@
>>>>
>>>>     > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
>>>>
>>>>     > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
>>>>
>>>>     > >+DSPLIB_BUILD_TARGET = "c66x"
>>>>
>>>>     > >+
>>>>
>>>>     > >+DEPENDS = "mathlib-c66x"
>>>>
>>>>     > >+
>>>>
>>>>     > >+include dsplib.inc
>>>>
>>>>     > >+
>>>>
>>>>     > >+
>>>>
>>>>     > >diff --git a/recipes-ti/dsplib/dsplib-c674x_git.bb
>>>>     b/recipes-ti/dsplib/dsplib-c674x_git.bb
>>>>
>>>>     > >new file mode 100644
>>>>
>>>>     > >index 0000000..07c6892
>>>>
>>>>     > >--- /dev/null
>>>>
>>>>     > >+++ b/recipes-ti/dsplib/dsplib-c674x_git.bb
>>>>
>>>>     > >@@ -0,0 +1,9 @@
>>>>
>>>>     > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
>>>>
>>>>     > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
>>>>
>>>>     > >+DSPLIB_BUILD_TARGET = "c674x"
>>>>
>>>>     > >+
>>>>
>>>>     > >+DEPENDS = "mathlib-c674x"
>>>>
>>>>     > >+
>>>>
>>>>     > >+include dsplib.inc
>>>>
>>>>     > >+
>>>>
>>>>     > >diff --git a/recipes-ti/dsplib/dsplib.inc
>>>>     b/recipes-ti/dsplib/dsplib.inc
>>>>
>>>>     > >new file mode 100644
>>>>
>>>>     > >index 0000000..66fe0fb
>>>>
>>>>     > >--- /dev/null
>>>>
>>>>     > >+++ b/recipes-ti/dsplib/dsplib.inc
>>>>
>>>>     > >@@ -0,0 +1,79 @@
>>>>
>>>>     > >+SUMMARY = "DSPLIB contains optimized signal processing functions for
>>>>     TI DSPs"
>>>>
>>>>     > >+HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
>>>>
>>>>     > >+LICENSE = "BSD-3-Clause"
>>>>
>>>>     > >+
>>>>
>>>>     > >+require ../includes/ti-paths.inc
>>>>
>>>>     > >+
>>>>
>>>>     > >+PV = "3_4_0_1"
>>>>
>>>>     > >+PR = "r0"
>>>>
>>>>     > >+
>>>>
>>>>     > >+COMPATIBLE_MACHINE = "am57xx-evm|keystone|c66x|omapl1"
>>>>
>>>>     > >+
>>>>
>>>>     > >+DEPENDS += "ti-cgt6x-native \
>>>>
>>>>     > >+           ti-xdctools-native \
>>>>
>>>>     > >+           ti-sysbios \
>>>>
>>>>     > >+           doxygen-native \
>>>>
>>>>     > >+           zip-native \
>>>>
>>>>     > >+           swtools "
>>>>
>>>>     > >+
>>>>
>>>>     > >+S = "${WORKDIR}/git"
>>>>
>>>>     > >+
>>>>
>>>>     > >+SRC_URI =
>>>>     "git://git.ti.com/ep-processor-
>>> libraries/dsplib.git;protocol=git;branch=master"
>>>>     > >+SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"
>>>>
>>>>     > >+
>>>>
>>>>     > >+LIC_FILES_CHKSUM =
>>>>
>>> "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4
>>> d51d8af75419781591ace190b"
>>>>     > >+
>>>>
>>>>     > >+export DSPLIB_WORK_DIR="${S}"
>>>>
>>>>     > >+export CGTOOLS_INSTALL_DIR  =
>>>>     "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
>>>>
>>>>     > >+export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
>>>>
>>>>     > >+export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
>>>>
>>>>     > >+export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
>>>>
>>>>     > >+export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
>>>>
>>>>     > >+export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
>>>>
>>>>     > >+export INCDIR="${MATHLIB_INSTALL_DIR}/"
>>>>
>>>>     > >+
>>>>
>>>>     > >+PATH_append = ":${XDC_INSTALL_DIR}"
>>>>
>>>>     > >+
>>>>
>>>>     >
>>>>
>>>> +XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBI
>>> OS_INSTALL_DIR}/packages;"
>>>>     >
>>>>
>>>> +XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_
>>> WORK_DIR};"
>>>>     > >+
>>>>
>>>>     > >+export XDCPATH
>>>>
>>>>     > >+
>>>>
>>>>     > >+DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
>>>>
>>>>     > >+
>>>>
>>>>     > >+do_compile() {
>>>>
>>>>     > >+       cd ${DSPLIB_WORK_DIR}/ti/dsplib;
>>>>
>>>>     > >+       xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-
>>> v"
>>>>     > >+}
>>>>
>>>>     > >+
>>>>
>>>>     > >+do_install() {
>>>>
>>>>     > >+       install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>>>>
>>>>     > >+
>>>>
>>>>     > >+       find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d
>>>>     ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
>>>>
>>>>     > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/*
>>>>     ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>>>>
>>>>     > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata
>>>>     ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>>>>
>>>>     > >+       rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
>>>>
>>>>     > >+}
>>>>
>>>>     > >+
>>>>
>>>>     > >+
>>>>
>>>>     > >+inherit deploy
>>>>
>>>>     > >+addtask deploy before do_build after do_install
>>>>
>>>>     > >+
>>>>
>>>>     > >+do_deploy() {
>>>>
>>>>     > >+       install -d ${DEPLOYDIR}
>>>>
>>>>     > >+       # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>>>>
>>>>     > >+       # and place the zip file in ${DEPLOYDIR}
>>>>
>>>>     > >+       mkdir ./${DSPLIB_PACKAGE_NAME}
>>>>
>>>>     > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/*
>>>>     ./${DSPLIB_PACKAGE_NAME}
>>>>
>>>>     > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata
>>>>     ./${DSPLIB_PACKAGE_NAME}
>>>>
>>>>     > >+       zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip
>>>>     ./${DSPLIB_PACKAGE_NAME}
>>>>
>>>>     > >+       rm -r ./${DSPLIB_PACKAGE_NAME}
>>>>
>>>>     > >+}
>>>>
>>>>     > >+
>>>>
>>>>     > >+PACKAGE_ARCH = "${MACHINE_ARCH}"
>>>>
>>>>     > >+
>>>>
>>>>     > >+ALLOW_EMPTY_${PN} = "1"
>>>>
>>>>     > >+FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >+
>>>>
>>>>     > >+INSANE_SKIP_${PN}-dev = "arch"
>>>>
>>>>     > >+
>>>>
>>>>     > >diff --git a/recipes-ti/includes/ti-paths.inc
>>>>     b/recipes-ti/includes/ti-paths.inc
>>>>
>>>>     > >index 4f99d5e..8740b6a 100644
>>>>
>>>>     > >--- a/recipes-ti/includes/ti-paths.inc
>>>>
>>>>     > >+++ b/recipes-ti/includes/ti-paths.inc
>>>>
>>>>     > >@@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE       =
>>>>     "${installdir}/ti-dmai-tree"
>>>>
>>>>     > >  export DSP_BENCHMARK_INSTALL_DIR_RECIPE =
>>>>     "${installdir}/ti-dsp-benchmark-tree"
>>>>
>>>>     > >  export DSPLIB_C64P_INSTALL_DIR_RECIPE =
>>>>     "${installdir}/ti-dsplib-c64p-tree"
>>>>
>>>>     > >  export DSPLIB_C674_INSTALL_DIR_RECIPE =
>>>>     "${installdir}/ti-dsplib-c674x-tree"
>>>>
>>>>     > >+export DSPLIB_C66_INSTALL_DIR_RECIPE  =
>>>>     "${installdir}/ti-dsplib-c66x-tree"
>>>>
>>>>     > >  export DSPLIB_INSTALL_DIR_RECIPE     = "${installdir}/ti-dsplib-tree"
>>>>
>>>>     > >  export DVSDK_DEMOS_INSTALL_DIR_RECIPE=
>>>>     "${installdir}/ti-dvsdk-demos-tree"
>>>>
>>>>     > >  export DVTB_INSTALL_DIR_RECIPE       = "${installdir}/ti-dvtb-tree"
>>>>
>>>>     > >@@ -39,6 +40,7 @@ export OSAL_INSTALL_DIR_RECIPE       =
>>>>     "${installdir}/ti-osal-tree"
>>>>
>>>>     > >  export RTFS_INSTALL_DIR_RECIPE       = "${installdir}/ti-rtfs-tree"
>>>>
>>>>     > >  export SYSBIOS_INSTALL_DIR_RECIPE    =
>>>>     "${installdir}/ti-sysbios-tree"
>>>>
>>>>     > >  export SYSLINK_INSTALL_DIR_RECIPE    =
>>>>     "${installdir}/ti-syslink-tree"
>>>>
>>>>     > >+export SWTOOLS_INSTALL_DIR_RECIPE    = "${installdir}/ti-swtools-tree"
>>>>
>>>>     > >  export UIA_INSTALL_DIR_RECIPE        = "${installdir}/ti-uia-tree"
>>>>
>>>>     > >  export VICPLIB_INSTALL_DIR_RECIPE    =
>>>>     "${installdir}/ti-vicplib-tree"
>>>>
>>>>     > >  export XDAIS_INSTALL_DIR_RECIPE      = "${installdir}/ti-xdais-tree"
>>>>
>>>>     > >@@ -48,8 +50,8 @@ export OSAL_INSTALL_DIR_RECIPE       =
>>>>     "${installdir}/ti-osal-tree"
>>>>
>>>>     > >  export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    =
>>>>     "${installdir}/ti-cgt-arm"
>>>>
>>>>     > >  export GCC_ARM_NONE_TOOLCHAIN_RECIPE      =
>>>>     "${installdir}/gcc-arm-none-eabi"
>>>>
>>>>     > >  export TI_CGT_PRU_INSTALL_DIR_RECIPE      = "${installdir}/cgt-pru"
>>>>
>>>>     > >-export DSPLIB_C66_INSTALL_DIR_RECIPE      =
>>>>     "${installdir}/ti-dsplib-c66x-tree"
>>>>
>>>>     > >  export MATHLIB_C66_INSTALL_DIR_RECIPE     =
>>>>     "${installdir}/ti-mathlib-c66x-tree"
>>>>
>>>>     > >+export MATHLIB_C674_INSTALL_DIR_RECIPE    =
>>>>     "${installdir}/ti-mathlib-c674x-tree"
>>>>
>>>>     > >  export IMGLIB_C66_INSTALL_DIR_RECIPE      =
>>>>     "${installdir}/ti-imglib-c66x-tree"
>>>>
>>>>     > >  export VLIB_C66_INSTALL_DIR_RECIPE        =
>>>>     "${installdir}/ti-vlib-c66x-tree"
>>>>
>>>>     > >  export CG_XML_INSTALL_DIR_RECIPE     = "${installdir}/ti-cg-xml-tree"
>>>>
>>>>     > >@@ -95,7 +97,11 @@ export OSAL_INSTALL_DIR       =
>>>>     "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}
>>>>
>>>>     > >  export M4_TOOLCHAIN_INSTALL_DIR    =
>>>>     "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >  export GCC_ARM_NONE_TOOLCHAIN      =
>>>>     "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
>>>>
>>>>     > >  export TI_CGT_PRU_INSTALL_DIR      =
>>>>     "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >+export SWTOOLS_INSTALL_DIR         =
>>>>     "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >+export DSPLIB_C64P_INSTALL_DIR     =
>>>>     "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >+export DSPLIB_C674_INSTALL_DIR     =
>>>>     "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >  export DSPLIB_C66_INSTALL_DIR      =
>>>>     "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >+export MATHLIB_C674_INSTALL_DIR    =
>>>>     "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >  export MATHLIB_C66_INSTALL_DIR     =
>>>>     "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >  export IMGLIB_C66_INSTALL_DIR      =
>>>>     "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
>>>>
>>>>     > >  export VLIB_C66_INSTALL_DIR        =
>>>>     "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
>>>>
>>>>     >
>>>>
>>>>     > --
>>>>
>>>>     > _______________________________________________
>>>>
>>>>     > meta-ti mailing list
>>>>
>>>>     > meta-ti@yoctoproject.org
>>>>
>>>>     > https://lists.yoctoproject.org/listinfo/meta-ti


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
  2018-09-13 15:24               ` Xu, Jianzhong
@ 2018-09-13 15:25                 ` Denys Dmytriyenko
  0 siblings, 0 replies; 19+ messages in thread
From: Denys Dmytriyenko @ 2018-09-13 15:25 UTC (permalink / raw)
  To: Xu, Jianzhong; +Cc: meta-ti

I don't know what you mean by "tried". Yes, am57xx-evm built fine. I don't 
build c6x platforms.


On Thu, Sep 13, 2018 at 11:24:55AM -0400, Xu, Jianzhong wrote:
> Hi Denys,
> 
> Have you tried am57xx-evm or c667x-evm? 
> 
> Thanks,
> Jianzhong
> 
> -----Original Message-----
> From: Stiffler, Jacob 
> Sent: Thursday, September 13, 2018 7:26 AM
> To: Dmytriyenko, Denys; Xu, Jianzhong
> Cc: meta-ti@yoctoproject.org
> Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
> 
> 
> 
> On 9/12/2018 6:52 PM, Denys Dmytriyenko wrote:
> > Same for dra7xx-evm...
> >
> >
> > On Wed, Sep 12, 2018 at 04:37:48PM -0400, Dmytriyenko, Denys wrote:
> >> And it crashed and burned right away:
> >>
> >> ERROR: Nothing PROVIDES 'dsplib-c66x' (but /OE/arago-rocko-next-build/sources/meta-arago/meta-arago-extras/recipes-apps/video-analytics-demo/qt-opencv-opencl-opengl-multithreaded_git.bb DEPENDS on or otherwise requires it)
> >> dsplib-c66x was skipped: incompatible with machine am57xx-hs-evm (not in COMPATIBLE_MACHINE)
> >> NOTE: Runtime target 'qt-opencv-opencl-opengl-multithreaded-src' is unbuildable, removing...
> >>
> >> Jake,
> >>
> >> Did you tested it on am57xx-hs-evm?
> 
> I had only built for am57xx-evm as there are no machine overrides in 
> these recipes because they are DSP architecture-specific.
> 
> Looks like we should change "COMPATIBLE_MACHINE" to, at the very least, 
> include what was there before (omap-a15|keystone). But as these are 
> specific to the DSP architecture, should COMPATIBLE_MACHINE even be 
> necessary?
> 
> >> Denys
> >>
> >>
> >>> -----Original Message-----
> >>> From: Denys Dmytriyenko [mailto:denys@ti.com]
> >>> Sent: Wednesday, September 12, 2018 4:21 PM
> >>> To: Xu, Jianzhong
> >>> Cc: Stiffler, Jacob; meta-ti@yoctoproject.org
> >>> Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build
> >>> DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
> >>>
> >>> Thanks, merged into rocko-next for testing.
> >>>
> >>> There were lots of small non-critical things I had to fix, like whitespaces,
> >>> indentation, etc. But the biggest one is that you have to follow OpenEmbedded
> >>> Commit Message Guidelines:
> >>>
> >>> https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
> >>>
> >>>
> >>> On Wed, Sep 12, 2018 at 03:40:42PM -0400, Xu, Jianzhong wrote:
> >>>>     Denys,
> >>>>
> >>>>
> >>>>
> >>>>     You're right. The versioning was inconsistent. Please use
> >>>>     [EXTERNAL,3/3,v2] and newer versions of [EXTERNAL,2/3], [EXTERNAL,1/3].
> >>>>     The latter two should have had v2 in it. Please see highlights below.
> >>>>
> >>>>
> >>>>
> >>>>     +------------------------------------------------------------------------+
> >>>>     |[EXTERNAL,3/3,v2] Added DSPLIB recipe to   |          |            ||   |
> >>>>     |build DSPLIB from source. Updated          |2018-09-06|Jianzhong Xu||New|
> >>>>     |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
> >>>>     |DSPLIB.                                    |          |            ||   |
> >>>>     |-------------------------------------------+----------+------------++---|
> >>>>     |[EXTERNAL] Added DSPLIB recipe to build    |          |            ||   |
> >>>>     |DSPLIB from source. Updated                |2018-09-06|Jianzhong Xu||New|
> >>>>     |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
> >>>>     |DSPLIB.                                    |          |            ||   |
> >>>>     |-------------------------------------------+----------+------------++---|
> >>>>     |[EXTERNAL,3/3] Added DSPLIB recipe to build|2018-09-04|Jianzhong
> >>> Xu||New|
> >>>>     |DSPLIB from source.                        |          |            ||   |
> >>>>     |-------------------------------------------+----------+------------++---|
> >>>>     |[EXTERNAL,2/3] Added MATHLIB recipe to     |2018-09-04|Jianzhong
> >>> Xu||New|
> >>>>     |build MATHLIB from source.                 |          |            ||   |
> >>>>     |-------------------------------------------+----------+------------++---|
> >>>>     |[EXTERNAL,1/3] Added SWTOOLS which is      |          |            ||   |
> >>>>     |needed to build processor libs (DSPLIB,    |2018-09-04|Jianzhong Xu||New|
> >>>>     |MATHLIB, etc) from source.                 |          |            ||   |
> >>>>     +------------------------------------------------------------------------+
> >>>>
> >>>>
> >>>>
> >>>>     Thanks,
> >>>>
> >>>>     Jianzhong
> >>>>
> >>>>
> >>>>
> >>>>     -----Original Message-----
> >>>>     From: Dmytriyenko, Denys
> >>>>     Sent: Wednesday, September 12, 2018 3:13 PM
> >>>>     To: Stiffler, Jacob
> >>>>     Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
> >>>>     Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to
> >>>>     build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
> >>>>     DSPLIB.
> >>>>
> >>>>
> >>>>
> >>>>     Jake,
> >>>>
> >>>>
> >>>>
> >>>>     I'll give it a look - I assume you want the 3 most recent patches, I don't
> >>>>
> >>>>     think versioning was consistent...
> >>>>
> >>>>
> >>>>
> >>>>     Denys
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>     On Tue, Sep 11, 2018 at 09:17:49AM -0400, Jacob Stiffler wrote:
> >>>>
> >>>>     > ACK
> >>>>
> >>>>     >
> >>>>
> >>>>     >
> >>>>
> >>>>     > Denys,
> >>>>
> >>>>     >
> >>>>
> >>>>     > Can you apply these patches to the ti2018.03 branch?
> >>>>
> >>>>     >
> >>>>
> >>>>     >
> >>>>
> >>>>     > Thank you,
> >>>>
> >>>>     >
> >>>>
> >>>>     > Jake
> >>>>
> >>>>     >
> >>>>
> >>>>     >
> >>>>
> >>>>     > On 9/6/2018 1:46 PM, Jianzhong Xu wrote:
> >>>>
> >>>>     > >Signed-off-by: Jianzhong Xu <xuj@ti.com>
> >>>>
> >>>>     > >---
> >>>>
> >>>>     > >Change from previous version of patch
> >>>>
> >>>>     > >Corrected typo: MATHLIB_C674INSTALL_XXX should have been
> >>>>     MATHLIB_C674_INSTALL_XXX
> >>>>
> >>>>     > >---
> >>>>
> >>>>     > >---
> >>>>
> >>>>     > >  recipes-ti/dsplib/dsplib-c64xp_git.bb    |  9 ++++
> >>>>
> >>>>     > >  recipes-ti/dsplib/dsplib-c66x.inc        | 30 ------------
> >>>>
> >>>>     > >  recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb |  9 ----
> >>>>
> >>>>     > >  recipes-ti/dsplib/dsplib-c66x_git.bb     | 10 ++++
> >>>>
> >>>>     > >  recipes-ti/dsplib/dsplib-c674x_git.bb    |  9 ++++
> >>>>
> >>>>     > >  recipes-ti/dsplib/dsplib.inc             | 79
> >>>>     ++++++++++++++++++++++++++++++++
> >>>>
> >>>>     > >  recipes-ti/includes/ti-paths.inc         |  8 +++-
> >>>>
> >>>>     > >  7 files changed, 114 insertions(+), 40 deletions(-)
> >>>>
> >>>>     > >  create mode 100644 recipes-ti/dsplib/dsplib-c64xp_git.bb
> >>>>
> >>>>     > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc
> >>>>
> >>>>     > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> >>>>
> >>>>     > >  create mode 100644 recipes-ti/dsplib/dsplib-c66x_git.bb
> >>>>
> >>>>     > >  create mode 100644 recipes-ti/dsplib/dsplib-c674x_git.bb
> >>>>
> >>>>     > >  create mode 100644 recipes-ti/dsplib/dsplib.inc
> >>>>
> >>>>     > >
> >>>>
> >>>>     > >diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >>>>     b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >>>>
> >>>>     > >new file mode 100644
> >>>>
> >>>>     > >index 0000000..1038d44
> >>>>
> >>>>     > >--- /dev/null
> >>>>
> >>>>     > >+++ b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >>>>
> >>>>     > >@@ -0,0 +1,9 @@
> >>>>
> >>>>     > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
> >>>>
> >>>>     > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>     > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
> >>>>
> >>>>     > >+DSPLIB_BUILD_TARGET = "c64Px"
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+DEPENDS = ""
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+include dsplib.inc
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >diff --git a/recipes-ti/dsplib/dsplib-c66x.inc
> >>>>     b/recipes-ti/dsplib/dsplib-c66x.inc
> >>>>
> >>>>     > >deleted file mode 100644
> >>>>
> >>>>     > >index 7ff99c2..0000000
> >>>>
> >>>>     > >--- a/recipes-ti/dsplib/dsplib-c66x.inc
> >>>>
> >>>>     > >+++ /dev/null
> >>>>
> >>>>     > >@@ -1,30 +0,0 @@
> >>>>
> >>>>     > >-DESCRIPTION = "DSPLIB contains optimized general-purpose
> >>>>     signal-processing routines for TI DSPs"
> >>>>
> >>>>     > >-HOMEPAGE = "http://www.ti.com/tool/sprc265"
> >>>>
> >>>>     > >-SECTION = "devel"
> >>>>
> >>>>     > >-LICENSE = "BSD-3-Clause"
> >>>>
> >>>>     > >-
> >>>>
> >>>>     > >-require ../includes/ti-paths.inc
> >>>>
> >>>>     > >-require ../includes/ti-staging.inc
> >>>>
> >>>>     > >-require ../includes/ti-unpack.inc
> >>>>
> >>>>     > >-
> >>>>
> >>>>     > >-COMPATIBLE_MACHINE = "omap-a15|keystone"
> >>>>
> >>>>     > >-
> >>>>
> >>>>     > >-SRC_URI =
> >>>>     "http://software-
> >>> dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=d
> >>> splib"
> >>>>     > >-
> >>>>
> >>>>     > >-BINFILE = "dsplib_c66x_${PV}_Linux.bin"
> >>>>
> >>>>     > >-TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
> >>>>
> >>>>     > >-TI_BIN_UNPK_CMDS = ""
> >>>>
> >>>>     > >-
> >>>>
> >>>>     > >-do_install() {
> >>>>
> >>>>     > >-    CP_ARGS="-Prf --preserve=mode,timestamps --no-
> >>> preserve=ownership"
> >>>>     > >-    install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> >>>>
> >>>>     > >-    cp ${CP_ARGS} ${S}/* ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> >>>>
> >>>>     > >-}
> >>>>
> >>>>     > >-
> >>>>
> >>>>     > >-ALLOW_EMPTY_${PN} = "1"
> >>>>
> >>>>     > >-FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>     > >-
> >>>>
> >>>>     > >-INHIBIT_PACKAGE_STRIP = "1"
> >>>>
> >>>>     > >-INHIBIT_SYSROOT_STRIP = "1"
> >>>>
> >>>>     > >-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> >>>>
> >>>>     > >-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 f1273f3..0000000
> >>>>
> >>>>     > >--- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> >>>>
> >>>>     > >+++ /dev/null
> >>>>
> >>>>     > >@@ -1,9 +0,0 @@
> >>>>
> >>>>     > >-require dsplib-c66x.inc
> >>>>
> >>>>     > >-
> >>>>
> >>>>     > >-PV = "3_4_0_0"
> >>>>
> >>>>     > >-PR = "r1"
> >>>>
> >>>>     > >-
> >>>>
> >>>>     > >-LIC_FILES_CHKSUM =
> >>>>
> >>> "file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8
> >>> a628512f47c4bf676a"
> >>>>     > >-
> >>>>
> >>>>     > >-SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf"
> >>>>
> >>>>     > >-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 0000000..cbc25d0
> >>>>
> >>>>     > >--- /dev/null
> >>>>
> >>>>     > >+++ b/recipes-ti/dsplib/dsplib-c66x_git.bb
> >>>>
> >>>>     > >@@ -0,0 +1,10 @@
> >>>>
> >>>>     > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
> >>>>
> >>>>     > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>     > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
> >>>>
> >>>>     > >+DSPLIB_BUILD_TARGET = "c66x"
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+DEPENDS = "mathlib-c66x"
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+include dsplib.inc
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >diff --git a/recipes-ti/dsplib/dsplib-c674x_git.bb
> >>>>     b/recipes-ti/dsplib/dsplib-c674x_git.bb
> >>>>
> >>>>     > >new file mode 100644
> >>>>
> >>>>     > >index 0000000..07c6892
> >>>>
> >>>>     > >--- /dev/null
> >>>>
> >>>>     > >+++ b/recipes-ti/dsplib/dsplib-c674x_git.bb
> >>>>
> >>>>     > >@@ -0,0 +1,9 @@
> >>>>
> >>>>     > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
> >>>>
> >>>>     > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>     > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
> >>>>
> >>>>     > >+DSPLIB_BUILD_TARGET = "c674x"
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+DEPENDS = "mathlib-c674x"
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+include dsplib.inc
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >diff --git a/recipes-ti/dsplib/dsplib.inc
> >>>>     b/recipes-ti/dsplib/dsplib.inc
> >>>>
> >>>>     > >new file mode 100644
> >>>>
> >>>>     > >index 0000000..66fe0fb
> >>>>
> >>>>     > >--- /dev/null
> >>>>
> >>>>     > >+++ b/recipes-ti/dsplib/dsplib.inc
> >>>>
> >>>>     > >@@ -0,0 +1,79 @@
> >>>>
> >>>>     > >+SUMMARY = "DSPLIB contains optimized signal processing functions for
> >>>>     TI DSPs"
> >>>>
> >>>>     > >+HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
> >>>>
> >>>>     > >+LICENSE = "BSD-3-Clause"
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+require ../includes/ti-paths.inc
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+PV = "3_4_0_1"
> >>>>
> >>>>     > >+PR = "r0"
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+COMPATIBLE_MACHINE = "am57xx-evm|keystone|c66x|omapl1"
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+DEPENDS += "ti-cgt6x-native \
> >>>>
> >>>>     > >+           ti-xdctools-native \
> >>>>
> >>>>     > >+           ti-sysbios \
> >>>>
> >>>>     > >+           doxygen-native \
> >>>>
> >>>>     > >+           zip-native \
> >>>>
> >>>>     > >+           swtools "
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+S = "${WORKDIR}/git"
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+SRC_URI =
> >>>>     "git://git.ti.com/ep-processor-
> >>> libraries/dsplib.git;protocol=git;branch=master"
> >>>>     > >+SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+LIC_FILES_CHKSUM =
> >>>>
> >>> "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4
> >>> d51d8af75419781591ace190b"
> >>>>     > >+
> >>>>
> >>>>     > >+export DSPLIB_WORK_DIR="${S}"
> >>>>
> >>>>     > >+export CGTOOLS_INSTALL_DIR  =
> >>>>     "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
> >>>>
> >>>>     > >+export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> >>>>
> >>>>     > >+export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> >>>>
> >>>>     > >+export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
> >>>>
> >>>>     > >+export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
> >>>>
> >>>>     > >+export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
> >>>>
> >>>>     > >+export INCDIR="${MATHLIB_INSTALL_DIR}/"
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+PATH_append = ":${XDC_INSTALL_DIR}"
> >>>>
> >>>>     > >+
> >>>>
> >>>>     >
> >>>>
> >>>> +XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBI
> >>> OS_INSTALL_DIR}/packages;"
> >>>>     >
> >>>>
> >>>> +XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_
> >>> WORK_DIR};"
> >>>>     > >+
> >>>>
> >>>>     > >+export XDCPATH
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+do_compile() {
> >>>>
> >>>>     > >+       cd ${DSPLIB_WORK_DIR}/ti/dsplib;
> >>>>
> >>>>     > >+       xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-
> >>> v"
> >>>>     > >+}
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+do_install() {
> >>>>
> >>>>     > >+       install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+       find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d
> >>>>     ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
> >>>>
> >>>>     > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/*
> >>>>     ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >>>>
> >>>>     > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata
> >>>>     ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >>>>
> >>>>     > >+       rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
> >>>>
> >>>>     > >+}
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+inherit deploy
> >>>>
> >>>>     > >+addtask deploy before do_build after do_install
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+do_deploy() {
> >>>>
> >>>>     > >+       install -d ${DEPLOYDIR}
> >>>>
> >>>>     > >+       # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >>>>
> >>>>     > >+       # and place the zip file in ${DEPLOYDIR}
> >>>>
> >>>>     > >+       mkdir ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>     > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/*
> >>>>     ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>     > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata
> >>>>     ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>     > >+       zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip
> >>>>     ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>     > >+       rm -r ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>     > >+}
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+PACKAGE_ARCH = "${MACHINE_ARCH}"
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+ALLOW_EMPTY_${PN} = "1"
> >>>>
> >>>>     > >+FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >+INSANE_SKIP_${PN}-dev = "arch"
> >>>>
> >>>>     > >+
> >>>>
> >>>>     > >diff --git a/recipes-ti/includes/ti-paths.inc
> >>>>     b/recipes-ti/includes/ti-paths.inc
> >>>>
> >>>>     > >index 4f99d5e..8740b6a 100644
> >>>>
> >>>>     > >--- a/recipes-ti/includes/ti-paths.inc
> >>>>
> >>>>     > >+++ b/recipes-ti/includes/ti-paths.inc
> >>>>
> >>>>     > >@@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE       =
> >>>>     "${installdir}/ti-dmai-tree"
> >>>>
> >>>>     > >  export DSP_BENCHMARK_INSTALL_DIR_RECIPE =
> >>>>     "${installdir}/ti-dsp-benchmark-tree"
> >>>>
> >>>>     > >  export DSPLIB_C64P_INSTALL_DIR_RECIPE =
> >>>>     "${installdir}/ti-dsplib-c64p-tree"
> >>>>
> >>>>     > >  export DSPLIB_C674_INSTALL_DIR_RECIPE =
> >>>>     "${installdir}/ti-dsplib-c674x-tree"
> >>>>
> >>>>     > >+export DSPLIB_C66_INSTALL_DIR_RECIPE  =
> >>>>     "${installdir}/ti-dsplib-c66x-tree"
> >>>>
> >>>>     > >  export DSPLIB_INSTALL_DIR_RECIPE     = "${installdir}/ti-dsplib-tree"
> >>>>
> >>>>     > >  export DVSDK_DEMOS_INSTALL_DIR_RECIPE=
> >>>>     "${installdir}/ti-dvsdk-demos-tree"
> >>>>
> >>>>     > >  export DVTB_INSTALL_DIR_RECIPE       = "${installdir}/ti-dvtb-tree"
> >>>>
> >>>>     > >@@ -39,6 +40,7 @@ export OSAL_INSTALL_DIR_RECIPE       =
> >>>>     "${installdir}/ti-osal-tree"
> >>>>
> >>>>     > >  export RTFS_INSTALL_DIR_RECIPE       = "${installdir}/ti-rtfs-tree"
> >>>>
> >>>>     > >  export SYSBIOS_INSTALL_DIR_RECIPE    =
> >>>>     "${installdir}/ti-sysbios-tree"
> >>>>
> >>>>     > >  export SYSLINK_INSTALL_DIR_RECIPE    =
> >>>>     "${installdir}/ti-syslink-tree"
> >>>>
> >>>>     > >+export SWTOOLS_INSTALL_DIR_RECIPE    = "${installdir}/ti-swtools-tree"
> >>>>
> >>>>     > >  export UIA_INSTALL_DIR_RECIPE        = "${installdir}/ti-uia-tree"
> >>>>
> >>>>     > >  export VICPLIB_INSTALL_DIR_RECIPE    =
> >>>>     "${installdir}/ti-vicplib-tree"
> >>>>
> >>>>     > >  export XDAIS_INSTALL_DIR_RECIPE      = "${installdir}/ti-xdais-tree"
> >>>>
> >>>>     > >@@ -48,8 +50,8 @@ export OSAL_INSTALL_DIR_RECIPE       =
> >>>>     "${installdir}/ti-osal-tree"
> >>>>
> >>>>     > >  export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    =
> >>>>     "${installdir}/ti-cgt-arm"
> >>>>
> >>>>     > >  export GCC_ARM_NONE_TOOLCHAIN_RECIPE      =
> >>>>     "${installdir}/gcc-arm-none-eabi"
> >>>>
> >>>>     > >  export TI_CGT_PRU_INSTALL_DIR_RECIPE      = "${installdir}/cgt-pru"
> >>>>
> >>>>     > >-export DSPLIB_C66_INSTALL_DIR_RECIPE      =
> >>>>     "${installdir}/ti-dsplib-c66x-tree"
> >>>>
> >>>>     > >  export MATHLIB_C66_INSTALL_DIR_RECIPE     =
> >>>>     "${installdir}/ti-mathlib-c66x-tree"
> >>>>
> >>>>     > >+export MATHLIB_C674_INSTALL_DIR_RECIPE    =
> >>>>     "${installdir}/ti-mathlib-c674x-tree"
> >>>>
> >>>>     > >  export IMGLIB_C66_INSTALL_DIR_RECIPE      =
> >>>>     "${installdir}/ti-imglib-c66x-tree"
> >>>>
> >>>>     > >  export VLIB_C66_INSTALL_DIR_RECIPE        =
> >>>>     "${installdir}/ti-vlib-c66x-tree"
> >>>>
> >>>>     > >  export CG_XML_INSTALL_DIR_RECIPE     = "${installdir}/ti-cg-xml-tree"
> >>>>
> >>>>     > >@@ -95,7 +97,11 @@ export OSAL_INSTALL_DIR       =
> >>>>     "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}
> >>>>
> >>>>     > >  export M4_TOOLCHAIN_INSTALL_DIR    =
> >>>>     "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>     > >  export GCC_ARM_NONE_TOOLCHAIN      =
> >>>>     "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
> >>>>
> >>>>     > >  export TI_CGT_PRU_INSTALL_DIR      =
> >>>>     "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>     > >+export SWTOOLS_INSTALL_DIR         =
> >>>>     "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>     > >+export DSPLIB_C64P_INSTALL_DIR     =
> >>>>     "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>     > >+export DSPLIB_C674_INSTALL_DIR     =
> >>>>     "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>     > >  export DSPLIB_C66_INSTALL_DIR      =
> >>>>     "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>     > >+export MATHLIB_C674_INSTALL_DIR    =
> >>>>     "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>     > >  export MATHLIB_C66_INSTALL_DIR     =
> >>>>     "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>     > >  export IMGLIB_C66_INSTALL_DIR      =
> >>>>     "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>     > >  export VLIB_C66_INSTALL_DIR        =
> >>>>     "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>     >
> >>>>
> >>>>     > --
> >>>>
> >>>>     > _______________________________________________
> >>>>
> >>>>     > meta-ti mailing list
> >>>>
> >>>>     > meta-ti@yoctoproject.org
> >>>>
> >>>>     > https://lists.yoctoproject.org/listinfo/meta-ti
> 


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
  2018-09-13 11:26             ` Jacob Stiffler
  2018-09-13 15:24               ` Xu, Jianzhong
@ 2018-09-13 15:26               ` Denys Dmytriyenko
  2018-09-13 15:44                 ` Xu, Jianzhong
  1 sibling, 1 reply; 19+ messages in thread
From: Denys Dmytriyenko @ 2018-09-13 15:26 UTC (permalink / raw)
  To: Jacob Stiffler; +Cc: meta-ti

On Thu, Sep 13, 2018 at 07:26:12AM -0400, Jacob Stiffler wrote:
> 
> 
> On 9/12/2018 6:52 PM, Denys Dmytriyenko wrote:
> >Same for dra7xx-evm...
> >
> >
> >On Wed, Sep 12, 2018 at 04:37:48PM -0400, Dmytriyenko, Denys wrote:
> >>And it crashed and burned right away:
> >>
> >>ERROR: Nothing PROVIDES 'dsplib-c66x' (but /OE/arago-rocko-next-build/sources/meta-arago/meta-arago-extras/recipes-apps/video-analytics-demo/qt-opencv-opencl-opengl-multithreaded_git.bb DEPENDS on or otherwise requires it)
> >>dsplib-c66x was skipped: incompatible with machine am57xx-hs-evm (not in COMPATIBLE_MACHINE)
> >>NOTE: Runtime target 'qt-opencv-opencl-opengl-multithreaded-src' is unbuildable, removing...
> >>
> >>Jake,
> >>
> >>Did you tested it on am57xx-hs-evm?
> 
> I had only built for am57xx-evm as there are no machine overrides in these
> recipes because they are DSP architecture-specific.
> 
> Looks like we should change "COMPATIBLE_MACHINE" to, at the very least,
> include what was there before (omap-a15|keystone). But as these are specific
> to the DSP architecture, should COMPATIBLE_MACHINE even be necessary?

Either way should be fine. Currently those patches break too many platforms - 
dra7 GP and both am5/dra7 HS.


> >>Denys
> >>
> >>
> >>>-----Original Message-----
> >>>From: Denys Dmytriyenko [mailto:denys@ti.com]
> >>>Sent: Wednesday, September 12, 2018 4:21 PM
> >>>To: Xu, Jianzhong
> >>>Cc: Stiffler, Jacob; meta-ti@yoctoproject.org
> >>>Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build
> >>>DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
> >>>
> >>>Thanks, merged into rocko-next for testing.
> >>>
> >>>There were lots of small non-critical things I had to fix, like whitespaces,
> >>>indentation, etc. But the biggest one is that you have to follow OpenEmbedded
> >>>Commit Message Guidelines:
> >>>
> >>>https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
> >>>
> >>>
> >>>On Wed, Sep 12, 2018 at 03:40:42PM -0400, Xu, Jianzhong wrote:
> >>>>    Denys,
> >>>>
> >>>>
> >>>>
> >>>>    You're right. The versioning was inconsistent. Please use
> >>>>    [EXTERNAL,3/3,v2] and newer versions of [EXTERNAL,2/3], [EXTERNAL,1/3].
> >>>>    The latter two should have had v2 in it. Please see highlights below.
> >>>>
> >>>>
> >>>>
> >>>>    +------------------------------------------------------------------------+
> >>>>    |[EXTERNAL,3/3,v2] Added DSPLIB recipe to   |          |            ||   |
> >>>>    |build DSPLIB from source. Updated          |2018-09-06|Jianzhong Xu||New|
> >>>>    |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
> >>>>    |DSPLIB.                                    |          |            ||   |
> >>>>    |-------------------------------------------+----------+------------++---|
> >>>>    |[EXTERNAL] Added DSPLIB recipe to build    |          |            ||   |
> >>>>    |DSPLIB from source. Updated                |2018-09-06|Jianzhong Xu||New|
> >>>>    |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
> >>>>    |DSPLIB.                                    |          |            ||   |
> >>>>    |-------------------------------------------+----------+------------++---|
> >>>>    |[EXTERNAL,3/3] Added DSPLIB recipe to build|2018-09-04|Jianzhong
> >>>Xu||New|
> >>>>    |DSPLIB from source.                        |          |            ||   |
> >>>>    |-------------------------------------------+----------+------------++---|
> >>>>    |[EXTERNAL,2/3] Added MATHLIB recipe to     |2018-09-04|Jianzhong
> >>>Xu||New|
> >>>>    |build MATHLIB from source.                 |          |            ||   |
> >>>>    |-------------------------------------------+----------+------------++---|
> >>>>    |[EXTERNAL,1/3] Added SWTOOLS which is      |          |            ||   |
> >>>>    |needed to build processor libs (DSPLIB,    |2018-09-04|Jianzhong Xu||New|
> >>>>    |MATHLIB, etc) from source.                 |          |            ||   |
> >>>>    +------------------------------------------------------------------------+
> >>>>
> >>>>
> >>>>
> >>>>    Thanks,
> >>>>
> >>>>    Jianzhong
> >>>>
> >>>>
> >>>>
> >>>>    -----Original Message-----
> >>>>    From: Dmytriyenko, Denys
> >>>>    Sent: Wednesday, September 12, 2018 3:13 PM
> >>>>    To: Stiffler, Jacob
> >>>>    Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
> >>>>    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to
> >>>>    build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
> >>>>    DSPLIB.
> >>>>
> >>>>
> >>>>
> >>>>    Jake,
> >>>>
> >>>>
> >>>>
> >>>>    I'll give it a look - I assume you want the 3 most recent patches, I don't
> >>>>
> >>>>    think versioning was consistent...
> >>>>
> >>>>
> >>>>
> >>>>    Denys
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>    On Tue, Sep 11, 2018 at 09:17:49AM -0400, Jacob Stiffler wrote:
> >>>>
> >>>>    > ACK
> >>>>
> >>>>    >
> >>>>
> >>>>    >
> >>>>
> >>>>    > Denys,
> >>>>
> >>>>    >
> >>>>
> >>>>    > Can you apply these patches to the ti2018.03 branch?
> >>>>
> >>>>    >
> >>>>
> >>>>    >
> >>>>
> >>>>    > Thank you,
> >>>>
> >>>>    >
> >>>>
> >>>>    > Jake
> >>>>
> >>>>    >
> >>>>
> >>>>    >
> >>>>
> >>>>    > On 9/6/2018 1:46 PM, Jianzhong Xu wrote:
> >>>>
> >>>>    > >Signed-off-by: Jianzhong Xu <xuj@ti.com>
> >>>>
> >>>>    > >---
> >>>>
> >>>>    > >Change from previous version of patch
> >>>>
> >>>>    > >Corrected typo: MATHLIB_C674INSTALL_XXX should have been
> >>>>    MATHLIB_C674_INSTALL_XXX
> >>>>
> >>>>    > >---
> >>>>
> >>>>    > >---
> >>>>
> >>>>    > >  recipes-ti/dsplib/dsplib-c64xp_git.bb    |  9 ++++
> >>>>
> >>>>    > >  recipes-ti/dsplib/dsplib-c66x.inc        | 30 ------------
> >>>>
> >>>>    > >  recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb |  9 ----
> >>>>
> >>>>    > >  recipes-ti/dsplib/dsplib-c66x_git.bb     | 10 ++++
> >>>>
> >>>>    > >  recipes-ti/dsplib/dsplib-c674x_git.bb    |  9 ++++
> >>>>
> >>>>    > >  recipes-ti/dsplib/dsplib.inc             | 79
> >>>>    ++++++++++++++++++++++++++++++++
> >>>>
> >>>>    > >  recipes-ti/includes/ti-paths.inc         |  8 +++-
> >>>>
> >>>>    > >  7 files changed, 114 insertions(+), 40 deletions(-)
> >>>>
> >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c64xp_git.bb
> >>>>
> >>>>    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc
> >>>>
> >>>>    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> >>>>
> >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c66x_git.bb
> >>>>
> >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c674x_git.bb
> >>>>
> >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib.inc
> >>>>
> >>>>    > >
> >>>>
> >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >>>>    b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >>>>
> >>>>    > >new file mode 100644
> >>>>
> >>>>    > >index 0000000..1038d44
> >>>>
> >>>>    > >--- /dev/null
> >>>>
> >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >>>>
> >>>>    > >@@ -0,0 +1,9 @@
> >>>>
> >>>>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
> >>>>
> >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
> >>>>
> >>>>    > >+DSPLIB_BUILD_TARGET = "c64Px"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+DEPENDS = ""
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+include dsplib.inc
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c66x.inc
> >>>>    b/recipes-ti/dsplib/dsplib-c66x.inc
> >>>>
> >>>>    > >deleted file mode 100644
> >>>>
> >>>>    > >index 7ff99c2..0000000
> >>>>
> >>>>    > >--- a/recipes-ti/dsplib/dsplib-c66x.inc
> >>>>
> >>>>    > >+++ /dev/null
> >>>>
> >>>>    > >@@ -1,30 +0,0 @@
> >>>>
> >>>>    > >-DESCRIPTION = "DSPLIB contains optimized general-purpose
> >>>>    signal-processing routines for TI DSPs"
> >>>>
> >>>>    > >-HOMEPAGE = "http://www.ti.com/tool/sprc265"
> >>>>
> >>>>    > >-SECTION = "devel"
> >>>>
> >>>>    > >-LICENSE = "BSD-3-Clause"
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-require ../includes/ti-paths.inc
> >>>>
> >>>>    > >-require ../includes/ti-staging.inc
> >>>>
> >>>>    > >-require ../includes/ti-unpack.inc
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-COMPATIBLE_MACHINE = "omap-a15|keystone"
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-SRC_URI =
> >>>>    "http://software-
> >>>dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=d
> >>>splib"
> >>>>    > >-
> >>>>
> >>>>    > >-BINFILE = "dsplib_c66x_${PV}_Linux.bin"
> >>>>
> >>>>    > >-TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
> >>>>
> >>>>    > >-TI_BIN_UNPK_CMDS = ""
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-do_install() {
> >>>>
> >>>>    > >-    CP_ARGS="-Prf --preserve=mode,timestamps --no-
> >>>preserve=ownership"
> >>>>    > >-    install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >-    cp ${CP_ARGS} ${S}/* ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >-}
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-ALLOW_EMPTY_${PN} = "1"
> >>>>
> >>>>    > >-FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-INHIBIT_PACKAGE_STRIP = "1"
> >>>>
> >>>>    > >-INHIBIT_SYSROOT_STRIP = "1"
> >>>>
> >>>>    > >-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> >>>>
> >>>>    > >-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 f1273f3..0000000
> >>>>
> >>>>    > >--- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> >>>>
> >>>>    > >+++ /dev/null
> >>>>
> >>>>    > >@@ -1,9 +0,0 @@
> >>>>
> >>>>    > >-require dsplib-c66x.inc
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-PV = "3_4_0_0"
> >>>>
> >>>>    > >-PR = "r1"
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-LIC_FILES_CHKSUM =
> >>>>
> >>>"file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8
> >>>a628512f47c4bf676a"
> >>>>    > >-
> >>>>
> >>>>    > >-SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf"
> >>>>
> >>>>    > >-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 0000000..cbc25d0
> >>>>
> >>>>    > >--- /dev/null
> >>>>
> >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c66x_git.bb
> >>>>
> >>>>    > >@@ -0,0 +1,10 @@
> >>>>
> >>>>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
> >>>>
> >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
> >>>>
> >>>>    > >+DSPLIB_BUILD_TARGET = "c66x"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+DEPENDS = "mathlib-c66x"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+include dsplib.inc
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c674x_git.bb
> >>>>    b/recipes-ti/dsplib/dsplib-c674x_git.bb
> >>>>
> >>>>    > >new file mode 100644
> >>>>
> >>>>    > >index 0000000..07c6892
> >>>>
> >>>>    > >--- /dev/null
> >>>>
> >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c674x_git.bb
> >>>>
> >>>>    > >@@ -0,0 +1,9 @@
> >>>>
> >>>>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
> >>>>
> >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
> >>>>
> >>>>    > >+DSPLIB_BUILD_TARGET = "c674x"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+DEPENDS = "mathlib-c674x"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+include dsplib.inc
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >diff --git a/recipes-ti/dsplib/dsplib.inc
> >>>>    b/recipes-ti/dsplib/dsplib.inc
> >>>>
> >>>>    > >new file mode 100644
> >>>>
> >>>>    > >index 0000000..66fe0fb
> >>>>
> >>>>    > >--- /dev/null
> >>>>
> >>>>    > >+++ b/recipes-ti/dsplib/dsplib.inc
> >>>>
> >>>>    > >@@ -0,0 +1,79 @@
> >>>>
> >>>>    > >+SUMMARY = "DSPLIB contains optimized signal processing functions for
> >>>>    TI DSPs"
> >>>>
> >>>>    > >+HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
> >>>>
> >>>>    > >+LICENSE = "BSD-3-Clause"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+require ../includes/ti-paths.inc
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+PV = "3_4_0_1"
> >>>>
> >>>>    > >+PR = "r0"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+COMPATIBLE_MACHINE = "am57xx-evm|keystone|c66x|omapl1"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+DEPENDS += "ti-cgt6x-native \
> >>>>
> >>>>    > >+           ti-xdctools-native \
> >>>>
> >>>>    > >+           ti-sysbios \
> >>>>
> >>>>    > >+           doxygen-native \
> >>>>
> >>>>    > >+           zip-native \
> >>>>
> >>>>    > >+           swtools "
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+S = "${WORKDIR}/git"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+SRC_URI =
> >>>>    "git://git.ti.com/ep-processor-
> >>>libraries/dsplib.git;protocol=git;branch=master"
> >>>>    > >+SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+LIC_FILES_CHKSUM =
> >>>>
> >>>"file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4
> >>>d51d8af75419781591ace190b"
> >>>>    > >+
> >>>>
> >>>>    > >+export DSPLIB_WORK_DIR="${S}"
> >>>>
> >>>>    > >+export CGTOOLS_INSTALL_DIR  =
> >>>>    "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
> >>>>
> >>>>    > >+export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> >>>>
> >>>>    > >+export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> >>>>
> >>>>    > >+export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
> >>>>
> >>>>    > >+export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
> >>>>
> >>>>    > >+export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
> >>>>
> >>>>    > >+export INCDIR="${MATHLIB_INSTALL_DIR}/"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+PATH_append = ":${XDC_INSTALL_DIR}"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    >
> >>>>
> >>>>+XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBI
> >>>OS_INSTALL_DIR}/packages;"
> >>>>    >
> >>>>
> >>>>+XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_
> >>>WORK_DIR};"
> >>>>    > >+
> >>>>
> >>>>    > >+export XDCPATH
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+do_compile() {
> >>>>
> >>>>    > >+       cd ${DSPLIB_WORK_DIR}/ti/dsplib;
> >>>>
> >>>>    > >+       xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-
> >>>v"
> >>>>    > >+}
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+do_install() {
> >>>>
> >>>>    > >+       install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+       find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d
> >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
> >>>>
> >>>>    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/*
> >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata
> >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >+       rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
> >>>>
> >>>>    > >+}
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+inherit deploy
> >>>>
> >>>>    > >+addtask deploy before do_build after do_install
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+do_deploy() {
> >>>>
> >>>>    > >+       install -d ${DEPLOYDIR}
> >>>>
> >>>>    > >+       # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >+       # and place the zip file in ${DEPLOYDIR}
> >>>>
> >>>>    > >+       mkdir ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/*
> >>>>    ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata
> >>>>    ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>    > >+       zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip
> >>>>    ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>    > >+       rm -r ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>    > >+}
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+PACKAGE_ARCH = "${MACHINE_ARCH}"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+ALLOW_EMPTY_${PN} = "1"
> >>>>
> >>>>    > >+FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+INSANE_SKIP_${PN}-dev = "arch"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >diff --git a/recipes-ti/includes/ti-paths.inc
> >>>>    b/recipes-ti/includes/ti-paths.inc
> >>>>
> >>>>    > >index 4f99d5e..8740b6a 100644
> >>>>
> >>>>    > >--- a/recipes-ti/includes/ti-paths.inc
> >>>>
> >>>>    > >+++ b/recipes-ti/includes/ti-paths.inc
> >>>>
> >>>>    > >@@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE       =
> >>>>    "${installdir}/ti-dmai-tree"
> >>>>
> >>>>    > >  export DSP_BENCHMARK_INSTALL_DIR_RECIPE =
> >>>>    "${installdir}/ti-dsp-benchmark-tree"
> >>>>
> >>>>    > >  export DSPLIB_C64P_INSTALL_DIR_RECIPE =
> >>>>    "${installdir}/ti-dsplib-c64p-tree"
> >>>>
> >>>>    > >  export DSPLIB_C674_INSTALL_DIR_RECIPE =
> >>>>    "${installdir}/ti-dsplib-c674x-tree"
> >>>>
> >>>>    > >+export DSPLIB_C66_INSTALL_DIR_RECIPE  =
> >>>>    "${installdir}/ti-dsplib-c66x-tree"
> >>>>
> >>>>    > >  export DSPLIB_INSTALL_DIR_RECIPE     = "${installdir}/ti-dsplib-tree"
> >>>>
> >>>>    > >  export DVSDK_DEMOS_INSTALL_DIR_RECIPE=
> >>>>    "${installdir}/ti-dvsdk-demos-tree"
> >>>>
> >>>>    > >  export DVTB_INSTALL_DIR_RECIPE       = "${installdir}/ti-dvtb-tree"
> >>>>
> >>>>    > >@@ -39,6 +40,7 @@ export OSAL_INSTALL_DIR_RECIPE       =
> >>>>    "${installdir}/ti-osal-tree"
> >>>>
> >>>>    > >  export RTFS_INSTALL_DIR_RECIPE       = "${installdir}/ti-rtfs-tree"
> >>>>
> >>>>    > >  export SYSBIOS_INSTALL_DIR_RECIPE    =
> >>>>    "${installdir}/ti-sysbios-tree"
> >>>>
> >>>>    > >  export SYSLINK_INSTALL_DIR_RECIPE    =
> >>>>    "${installdir}/ti-syslink-tree"
> >>>>
> >>>>    > >+export SWTOOLS_INSTALL_DIR_RECIPE    = "${installdir}/ti-swtools-tree"
> >>>>
> >>>>    > >  export UIA_INSTALL_DIR_RECIPE        = "${installdir}/ti-uia-tree"
> >>>>
> >>>>    > >  export VICPLIB_INSTALL_DIR_RECIPE    =
> >>>>    "${installdir}/ti-vicplib-tree"
> >>>>
> >>>>    > >  export XDAIS_INSTALL_DIR_RECIPE      = "${installdir}/ti-xdais-tree"
> >>>>
> >>>>    > >@@ -48,8 +50,8 @@ export OSAL_INSTALL_DIR_RECIPE       =
> >>>>    "${installdir}/ti-osal-tree"
> >>>>
> >>>>    > >  export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    =
> >>>>    "${installdir}/ti-cgt-arm"
> >>>>
> >>>>    > >  export GCC_ARM_NONE_TOOLCHAIN_RECIPE      =
> >>>>    "${installdir}/gcc-arm-none-eabi"
> >>>>
> >>>>    > >  export TI_CGT_PRU_INSTALL_DIR_RECIPE      = "${installdir}/cgt-pru"
> >>>>
> >>>>    > >-export DSPLIB_C66_INSTALL_DIR_RECIPE      =
> >>>>    "${installdir}/ti-dsplib-c66x-tree"
> >>>>
> >>>>    > >  export MATHLIB_C66_INSTALL_DIR_RECIPE     =
> >>>>    "${installdir}/ti-mathlib-c66x-tree"
> >>>>
> >>>>    > >+export MATHLIB_C674_INSTALL_DIR_RECIPE    =
> >>>>    "${installdir}/ti-mathlib-c674x-tree"
> >>>>
> >>>>    > >  export IMGLIB_C66_INSTALL_DIR_RECIPE      =
> >>>>    "${installdir}/ti-imglib-c66x-tree"
> >>>>
> >>>>    > >  export VLIB_C66_INSTALL_DIR_RECIPE        =
> >>>>    "${installdir}/ti-vlib-c66x-tree"
> >>>>
> >>>>    > >  export CG_XML_INSTALL_DIR_RECIPE     = "${installdir}/ti-cg-xml-tree"
> >>>>
> >>>>    > >@@ -95,7 +97,11 @@ export OSAL_INSTALL_DIR       =
> >>>>    "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >  export M4_TOOLCHAIN_INSTALL_DIR    =
> >>>>    "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >  export GCC_ARM_NONE_TOOLCHAIN      =
> >>>>    "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
> >>>>
> >>>>    > >  export TI_CGT_PRU_INSTALL_DIR      =
> >>>>    "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+export SWTOOLS_INSTALL_DIR         =
> >>>>    "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+export DSPLIB_C64P_INSTALL_DIR     =
> >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+export DSPLIB_C674_INSTALL_DIR     =
> >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >  export DSPLIB_C66_INSTALL_DIR      =
> >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+export MATHLIB_C674_INSTALL_DIR    =
> >>>>    "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >  export MATHLIB_C66_INSTALL_DIR     =
> >>>>    "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >  export IMGLIB_C66_INSTALL_DIR      =
> >>>>    "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >  export VLIB_C66_INSTALL_DIR        =
> >>>>    "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    >
> >>>>
> >>>>    > --
> >>>>
> >>>>    > _______________________________________________
> >>>>
> >>>>    > meta-ti mailing list
> >>>>
> >>>>    > meta-ti@yoctoproject.org
> >>>>
> >>>>    > https://lists.yoctoproject.org/listinfo/meta-ti
> 


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
  2018-09-13 15:26               ` Denys Dmytriyenko
@ 2018-09-13 15:44                 ` Xu, Jianzhong
  2018-09-13 16:01                   ` Stiffler, Jacob
  0 siblings, 1 reply; 19+ messages in thread
From: Xu, Jianzhong @ 2018-09-13 15:44 UTC (permalink / raw)
  To: Dmytriyenko, Denys, Stiffler, Jacob; +Cc: meta-ti

[-- Attachment #1: Type: text/plain, Size: 22563 bytes --]

Denys,


Would the following fix the problems you've seen:

COMPATIBLE_MACHINE = "omap-a15|keystone"

This was in DSPLIB recipes before.


Thanks,

Jianzhong

________________________________
From: Dmytriyenko, Denys
Sent: Thursday, September 13, 2018 11:26:45 AM
To: Stiffler, Jacob
Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.

On Thu, Sep 13, 2018 at 07:26:12AM -0400, Jacob Stiffler wrote:
>
>
> On 9/12/2018 6:52 PM, Denys Dmytriyenko wrote:
> >Same for dra7xx-evm...
> >
> >
> >On Wed, Sep 12, 2018 at 04:37:48PM -0400, Dmytriyenko, Denys wrote:
> >>And it crashed and burned right away:
> >>
> >>ERROR: Nothing PROVIDES 'dsplib-c66x' (but /OE/arago-rocko-next-build/sources/meta-arago/meta-arago-extras/recipes-apps/video-analytics-demo/qt-opencv-opencl-opengl-multithreaded_git.bb DEPENDS on or otherwise requires it)
> >>dsplib-c66x was skipped: incompatible with machine am57xx-hs-evm (not in COMPATIBLE_MACHINE)
> >>NOTE: Runtime target 'qt-opencv-opencl-opengl-multithreaded-src' is unbuildable, removing...
> >>
> >>Jake,
> >>
> >>Did you tested it on am57xx-hs-evm?
>
> I had only built for am57xx-evm as there are no machine overrides in these
> recipes because they are DSP architecture-specific.
>
> Looks like we should change "COMPATIBLE_MACHINE" to, at the very least,
> include what was there before (omap-a15|keystone). But as these are specific
> to the DSP architecture, should COMPATIBLE_MACHINE even be necessary?

Either way should be fine. Currently those patches break too many platforms -
dra7 GP and both am5/dra7 HS.


> >>Denys
> >>
> >>
> >>>-----Original Message-----
> >>>From: Denys Dmytriyenko [mailto:denys@ti.com]
> >>>Sent: Wednesday, September 12, 2018 4:21 PM
> >>>To: Xu, Jianzhong
> >>>Cc: Stiffler, Jacob; meta-ti@yoctoproject.org
> >>>Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build
> >>>DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
> >>>
> >>>Thanks, merged into rocko-next for testing.
> >>>
> >>>There were lots of small non-critical things I had to fix, like whitespaces,
> >>>indentation, etc. But the biggest one is that you have to follow OpenEmbedded
> >>>Commit Message Guidelines:
> >>>
> >>>https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
> >>>
> >>>
> >>>On Wed, Sep 12, 2018 at 03:40:42PM -0400, Xu, Jianzhong wrote:
> >>>>    Denys,
> >>>>
> >>>>
> >>>>
> >>>>    You're right. The versioning was inconsistent. Please use
> >>>>    [EXTERNAL,3/3,v2] and newer versions of [EXTERNAL,2/3], [EXTERNAL,1/3].
> >>>>    The latter two should have had v2 in it. Please see highlights below.
> >>>>
> >>>>
> >>>>
> >>>>    +------------------------------------------------------------------------+
> >>>>    |[EXTERNAL,3/3,v2] Added DSPLIB recipe to   |          |            ||   |
> >>>>    |build DSPLIB from source. Updated          |2018-09-06|Jianzhong Xu||New|
> >>>>    |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
> >>>>    |DSPLIB.                                    |          |            ||   |
> >>>>    |-------------------------------------------+----------+------------++---|
> >>>>    |[EXTERNAL] Added DSPLIB recipe to build    |          |            ||   |
> >>>>    |DSPLIB from source. Updated                |2018-09-06|Jianzhong Xu||New|
> >>>>    |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
> >>>>    |DSPLIB.                                    |          |            ||   |
> >>>>    |-------------------------------------------+----------+------------++---|
> >>>>    |[EXTERNAL,3/3] Added DSPLIB recipe to build|2018-09-04|Jianzhong
> >>>Xu||New|
> >>>>    |DSPLIB from source.                        |          |            ||   |
> >>>>    |-------------------------------------------+----------+------------++---|
> >>>>    |[EXTERNAL,2/3] Added MATHLIB recipe to     |2018-09-04|Jianzhong
> >>>Xu||New|
> >>>>    |build MATHLIB from source.                 |          |            ||   |
> >>>>    |-------------------------------------------+----------+------------++---|
> >>>>    |[EXTERNAL,1/3] Added SWTOOLS which is      |          |            ||   |
> >>>>    |needed to build processor libs (DSPLIB,    |2018-09-04|Jianzhong Xu||New|
> >>>>    |MATHLIB, etc) from source.                 |          |            ||   |
> >>>>    +------------------------------------------------------------------------+
> >>>>
> >>>>
> >>>>
> >>>>    Thanks,
> >>>>
> >>>>    Jianzhong
> >>>>
> >>>>
> >>>>
> >>>>    -----Original Message-----
> >>>>    From: Dmytriyenko, Denys
> >>>>    Sent: Wednesday, September 12, 2018 3:13 PM
> >>>>    To: Stiffler, Jacob
> >>>>    Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
> >>>>    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to
> >>>>    build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
> >>>>    DSPLIB.
> >>>>
> >>>>
> >>>>
> >>>>    Jake,
> >>>>
> >>>>
> >>>>
> >>>>    I'll give it a look - I assume you want the 3 most recent patches, I don't
> >>>>
> >>>>    think versioning was consistent...
> >>>>
> >>>>
> >>>>
> >>>>    Denys
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>    On Tue, Sep 11, 2018 at 09:17:49AM -0400, Jacob Stiffler wrote:
> >>>>
> >>>>    > ACK
> >>>>
> >>>>    >
> >>>>
> >>>>    >
> >>>>
> >>>>    > Denys,
> >>>>
> >>>>    >
> >>>>
> >>>>    > Can you apply these patches to the ti2018.03 branch?
> >>>>
> >>>>    >
> >>>>
> >>>>    >
> >>>>
> >>>>    > Thank you,
> >>>>
> >>>>    >
> >>>>
> >>>>    > Jake
> >>>>
> >>>>    >
> >>>>
> >>>>    >
> >>>>
> >>>>    > On 9/6/2018 1:46 PM, Jianzhong Xu wrote:
> >>>>
> >>>>    > >Signed-off-by: Jianzhong Xu <xuj@ti.com>
> >>>>
> >>>>    > >---
> >>>>
> >>>>    > >Change from previous version of patch
> >>>>
> >>>>    > >Corrected typo: MATHLIB_C674INSTALL_XXX should have been
> >>>>    MATHLIB_C674_INSTALL_XXX
> >>>>
> >>>>    > >---
> >>>>
> >>>>    > >---
> >>>>
> >>>>    > >  recipes-ti/dsplib/dsplib-c64xp_git.bb    |  9 ++++
> >>>>
> >>>>    > >  recipes-ti/dsplib/dsplib-c66x.inc        | 30 ------------
> >>>>
> >>>>    > >  recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb |  9 ----
> >>>>
> >>>>    > >  recipes-ti/dsplib/dsplib-c66x_git.bb     | 10 ++++
> >>>>
> >>>>    > >  recipes-ti/dsplib/dsplib-c674x_git.bb    |  9 ++++
> >>>>
> >>>>    > >  recipes-ti/dsplib/dsplib.inc             | 79
> >>>>    ++++++++++++++++++++++++++++++++
> >>>>
> >>>>    > >  recipes-ti/includes/ti-paths.inc         |  8 +++-
> >>>>
> >>>>    > >  7 files changed, 114 insertions(+), 40 deletions(-)
> >>>>
> >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c64xp_git.bb
> >>>>
> >>>>    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc
> >>>>
> >>>>    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> >>>>
> >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c66x_git.bb
> >>>>
> >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c674x_git.bb
> >>>>
> >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib.inc
> >>>>
> >>>>    > >
> >>>>
> >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >>>>    b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >>>>
> >>>>    > >new file mode 100644
> >>>>
> >>>>    > >index 0000000..1038d44
> >>>>
> >>>>    > >--- /dev/null
> >>>>
> >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >>>>
> >>>>    > >@@ -0,0 +1,9 @@
> >>>>
> >>>>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
> >>>>
> >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
> >>>>
> >>>>    > >+DSPLIB_BUILD_TARGET = "c64Px"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+DEPENDS = ""
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+include dsplib.inc
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c66x.inc
> >>>>    b/recipes-ti/dsplib/dsplib-c66x.inc
> >>>>
> >>>>    > >deleted file mode 100644
> >>>>
> >>>>    > >index 7ff99c2..0000000
> >>>>
> >>>>    > >--- a/recipes-ti/dsplib/dsplib-c66x.inc
> >>>>
> >>>>    > >+++ /dev/null
> >>>>
> >>>>    > >@@ -1,30 +0,0 @@
> >>>>
> >>>>    > >-DESCRIPTION = "DSPLIB contains optimized general-purpose
> >>>>    signal-processing routines for TI DSPs"
> >>>>
> >>>>    > >-HOMEPAGE = "http://www.ti.com/tool/sprc265"
> >>>>
> >>>>    > >-SECTION = "devel"
> >>>>
> >>>>    > >-LICENSE = "BSD-3-Clause"
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-require ../includes/ti-paths.inc
> >>>>
> >>>>    > >-require ../includes/ti-staging.inc
> >>>>
> >>>>    > >-require ../includes/ti-unpack.inc
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-COMPATIBLE_MACHINE = "omap-a15|keystone"
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-SRC_URI =
> >>>>    "http://software-
> >>>dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=d
> >>>splib"
> >>>>    > >-
> >>>>
> >>>>    > >-BINFILE = "dsplib_c66x_${PV}_Linux.bin"
> >>>>
> >>>>    > >-TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
> >>>>
> >>>>    > >-TI_BIN_UNPK_CMDS = ""
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-do_install() {
> >>>>
> >>>>    > >-    CP_ARGS="-Prf --preserve=mode,timestamps --no-
> >>>preserve=ownership"
> >>>>    > >-    install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >-    cp ${CP_ARGS} ${S}/* ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >-}
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-ALLOW_EMPTY_${PN} = "1"
> >>>>
> >>>>    > >-FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-INHIBIT_PACKAGE_STRIP = "1"
> >>>>
> >>>>    > >-INHIBIT_SYSROOT_STRIP = "1"
> >>>>
> >>>>    > >-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> >>>>
> >>>>    > >-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 f1273f3..0000000
> >>>>
> >>>>    > >--- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> >>>>
> >>>>    > >+++ /dev/null
> >>>>
> >>>>    > >@@ -1,9 +0,0 @@
> >>>>
> >>>>    > >-require dsplib-c66x.inc
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-PV = "3_4_0_0"
> >>>>
> >>>>    > >-PR = "r1"
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-LIC_FILES_CHKSUM =
> >>>>
> >>>"file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8
> >>>a628512f47c4bf676a"
> >>>>    > >-
> >>>>
> >>>>    > >-SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf"
> >>>>
> >>>>    > >-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 0000000..cbc25d0
> >>>>
> >>>>    > >--- /dev/null
> >>>>
> >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c66x_git.bb
> >>>>
> >>>>    > >@@ -0,0 +1,10 @@
> >>>>
> >>>>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
> >>>>
> >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
> >>>>
> >>>>    > >+DSPLIB_BUILD_TARGET = "c66x"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+DEPENDS = "mathlib-c66x"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+include dsplib.inc
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c674x_git.bb
> >>>>    b/recipes-ti/dsplib/dsplib-c674x_git.bb
> >>>>
> >>>>    > >new file mode 100644
> >>>>
> >>>>    > >index 0000000..07c6892
> >>>>
> >>>>    > >--- /dev/null
> >>>>
> >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c674x_git.bb
> >>>>
> >>>>    > >@@ -0,0 +1,9 @@
> >>>>
> >>>>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
> >>>>
> >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
> >>>>
> >>>>    > >+DSPLIB_BUILD_TARGET = "c674x"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+DEPENDS = "mathlib-c674x"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+include dsplib.inc
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >diff --git a/recipes-ti/dsplib/dsplib.inc
> >>>>    b/recipes-ti/dsplib/dsplib.inc
> >>>>
> >>>>    > >new file mode 100644
> >>>>
> >>>>    > >index 0000000..66fe0fb
> >>>>
> >>>>    > >--- /dev/null
> >>>>
> >>>>    > >+++ b/recipes-ti/dsplib/dsplib.inc
> >>>>
> >>>>    > >@@ -0,0 +1,79 @@
> >>>>
> >>>>    > >+SUMMARY = "DSPLIB contains optimized signal processing functions for
> >>>>    TI DSPs"
> >>>>
> >>>>    > >+HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
> >>>>
> >>>>    > >+LICENSE = "BSD-3-Clause"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+require ../includes/ti-paths.inc
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+PV = "3_4_0_1"
> >>>>
> >>>>    > >+PR = "r0"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+COMPATIBLE_MACHINE = "am57xx-evm|keystone|c66x|omapl1"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+DEPENDS += "ti-cgt6x-native \
> >>>>
> >>>>    > >+           ti-xdctools-native \
> >>>>
> >>>>    > >+           ti-sysbios \
> >>>>
> >>>>    > >+           doxygen-native \
> >>>>
> >>>>    > >+           zip-native \
> >>>>
> >>>>    > >+           swtools "
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+S = "${WORKDIR}/git"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+SRC_URI =
> >>>>    "git://git.ti.com/ep-processor-
> >>>libraries/dsplib.git;protocol=git;branch=master"
> >>>>    > >+SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+LIC_FILES_CHKSUM =
> >>>>
> >>>"file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4
> >>>d51d8af75419781591ace190b"
> >>>>    > >+
> >>>>
> >>>>    > >+export DSPLIB_WORK_DIR="${S}"
> >>>>
> >>>>    > >+export CGTOOLS_INSTALL_DIR  =
> >>>>    "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
> >>>>
> >>>>    > >+export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> >>>>
> >>>>    > >+export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> >>>>
> >>>>    > >+export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
> >>>>
> >>>>    > >+export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
> >>>>
> >>>>    > >+export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
> >>>>
> >>>>    > >+export INCDIR="${MATHLIB_INSTALL_DIR}/"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+PATH_append = ":${XDC_INSTALL_DIR}"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    >
> >>>>
> >>>>+XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBI
> >>>OS_INSTALL_DIR}/packages;"
> >>>>    >
> >>>>
> >>>>+XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_
> >>>WORK_DIR};"
> >>>>    > >+
> >>>>
> >>>>    > >+export XDCPATH
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+do_compile() {
> >>>>
> >>>>    > >+       cd ${DSPLIB_WORK_DIR}/ti/dsplib;
> >>>>
> >>>>    > >+       xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-
> >>>v"
> >>>>    > >+}
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+do_install() {
> >>>>
> >>>>    > >+       install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+       find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d
> >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
> >>>>
> >>>>    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/*
> >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata
> >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >+       rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
> >>>>
> >>>>    > >+}
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+inherit deploy
> >>>>
> >>>>    > >+addtask deploy before do_build after do_install
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+do_deploy() {
> >>>>
> >>>>    > >+       install -d ${DEPLOYDIR}
> >>>>
> >>>>    > >+       # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >+       # and place the zip file in ${DEPLOYDIR}
> >>>>
> >>>>    > >+       mkdir ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/*
> >>>>    ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata
> >>>>    ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>    > >+       zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip
> >>>>    ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>    > >+       rm -r ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>    > >+}
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+PACKAGE_ARCH = "${MACHINE_ARCH}"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+ALLOW_EMPTY_${PN} = "1"
> >>>>
> >>>>    > >+FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+INSANE_SKIP_${PN}-dev = "arch"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >diff --git a/recipes-ti/includes/ti-paths.inc
> >>>>    b/recipes-ti/includes/ti-paths.inc
> >>>>
> >>>>    > >index 4f99d5e..8740b6a 100644
> >>>>
> >>>>    > >--- a/recipes-ti/includes/ti-paths.inc
> >>>>
> >>>>    > >+++ b/recipes-ti/includes/ti-paths.inc
> >>>>
> >>>>    > >@@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE       =
> >>>>    "${installdir}/ti-dmai-tree"
> >>>>
> >>>>    > >  export DSP_BENCHMARK_INSTALL_DIR_RECIPE =
> >>>>    "${installdir}/ti-dsp-benchmark-tree"
> >>>>
> >>>>    > >  export DSPLIB_C64P_INSTALL_DIR_RECIPE =
> >>>>    "${installdir}/ti-dsplib-c64p-tree"
> >>>>
> >>>>    > >  export DSPLIB_C674_INSTALL_DIR_RECIPE =
> >>>>    "${installdir}/ti-dsplib-c674x-tree"
> >>>>
> >>>>    > >+export DSPLIB_C66_INSTALL_DIR_RECIPE  =
> >>>>    "${installdir}/ti-dsplib-c66x-tree"
> >>>>
> >>>>    > >  export DSPLIB_INSTALL_DIR_RECIPE     = "${installdir}/ti-dsplib-tree"
> >>>>
> >>>>    > >  export DVSDK_DEMOS_INSTALL_DIR_RECIPE=
> >>>>    "${installdir}/ti-dvsdk-demos-tree"
> >>>>
> >>>>    > >  export DVTB_INSTALL_DIR_RECIPE       = "${installdir}/ti-dvtb-tree"
> >>>>
> >>>>    > >@@ -39,6 +40,7 @@ export OSAL_INSTALL_DIR_RECIPE       =
> >>>>    "${installdir}/ti-osal-tree"
> >>>>
> >>>>    > >  export RTFS_INSTALL_DIR_RECIPE       = "${installdir}/ti-rtfs-tree"
> >>>>
> >>>>    > >  export SYSBIOS_INSTALL_DIR_RECIPE    =
> >>>>    "${installdir}/ti-sysbios-tree"
> >>>>
> >>>>    > >  export SYSLINK_INSTALL_DIR_RECIPE    =
> >>>>    "${installdir}/ti-syslink-tree"
> >>>>
> >>>>    > >+export SWTOOLS_INSTALL_DIR_RECIPE    = "${installdir}/ti-swtools-tree"
> >>>>
> >>>>    > >  export UIA_INSTALL_DIR_RECIPE        = "${installdir}/ti-uia-tree"
> >>>>
> >>>>    > >  export VICPLIB_INSTALL_DIR_RECIPE    =
> >>>>    "${installdir}/ti-vicplib-tree"
> >>>>
> >>>>    > >  export XDAIS_INSTALL_DIR_RECIPE      = "${installdir}/ti-xdais-tree"
> >>>>
> >>>>    > >@@ -48,8 +50,8 @@ export OSAL_INSTALL_DIR_RECIPE       =
> >>>>    "${installdir}/ti-osal-tree"
> >>>>
> >>>>    > >  export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    =
> >>>>    "${installdir}/ti-cgt-arm"
> >>>>
> >>>>    > >  export GCC_ARM_NONE_TOOLCHAIN_RECIPE      =
> >>>>    "${installdir}/gcc-arm-none-eabi"
> >>>>
> >>>>    > >  export TI_CGT_PRU_INSTALL_DIR_RECIPE      = "${installdir}/cgt-pru"
> >>>>
> >>>>    > >-export DSPLIB_C66_INSTALL_DIR_RECIPE      =
> >>>>    "${installdir}/ti-dsplib-c66x-tree"
> >>>>
> >>>>    > >  export MATHLIB_C66_INSTALL_DIR_RECIPE     =
> >>>>    "${installdir}/ti-mathlib-c66x-tree"
> >>>>
> >>>>    > >+export MATHLIB_C674_INSTALL_DIR_RECIPE    =
> >>>>    "${installdir}/ti-mathlib-c674x-tree"
> >>>>
> >>>>    > >  export IMGLIB_C66_INSTALL_DIR_RECIPE      =
> >>>>    "${installdir}/ti-imglib-c66x-tree"
> >>>>
> >>>>    > >  export VLIB_C66_INSTALL_DIR_RECIPE        =
> >>>>    "${installdir}/ti-vlib-c66x-tree"
> >>>>
> >>>>    > >  export CG_XML_INSTALL_DIR_RECIPE     = "${installdir}/ti-cg-xml-tree"
> >>>>
> >>>>    > >@@ -95,7 +97,11 @@ export OSAL_INSTALL_DIR       =
> >>>>    "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >  export M4_TOOLCHAIN_INSTALL_DIR    =
> >>>>    "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >  export GCC_ARM_NONE_TOOLCHAIN      =
> >>>>    "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
> >>>>
> >>>>    > >  export TI_CGT_PRU_INSTALL_DIR      =
> >>>>    "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+export SWTOOLS_INSTALL_DIR         =
> >>>>    "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+export DSPLIB_C64P_INSTALL_DIR     =
> >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+export DSPLIB_C674_INSTALL_DIR     =
> >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >  export DSPLIB_C66_INSTALL_DIR      =
> >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+export MATHLIB_C674_INSTALL_DIR    =
> >>>>    "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >  export MATHLIB_C66_INSTALL_DIR     =
> >>>>    "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >  export IMGLIB_C66_INSTALL_DIR      =
> >>>>    "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >  export VLIB_C66_INSTALL_DIR        =
> >>>>    "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    >
> >>>>
> >>>>    > --
> >>>>
> >>>>    > _______________________________________________
> >>>>
> >>>>    > meta-ti mailing list
> >>>>
> >>>>    > meta-ti@yoctoproject.org
> >>>>
> >>>>    > https://lists.yoctoproject.org/listinfo/meta-ti
>

[-- Attachment #2: Type: text/html, Size: 49727 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
  2018-09-13 15:44                 ` Xu, Jianzhong
@ 2018-09-13 16:01                   ` Stiffler, Jacob
  2018-09-13 16:34                     ` Denys Dmytriyenko
  0 siblings, 1 reply; 19+ messages in thread
From: Stiffler, Jacob @ 2018-09-13 16:01 UTC (permalink / raw)
  To: Xu, Jianzhong, Dmytriyenko, Denys; +Cc: meta-ti

[-- Attachment #1: Type: text/plain, Size: 23329 bytes --]

That will work as c66x is a subset of the keystone SOC family.

I just don't think that specifying COMPATIBLE_MACHINE is necessary as these packages are independent of the architecture that is running Linux.

And due to this, we should also remove the 'PACKAGE_ARCH = ${MACHINE_ARCH}"' as there is no difference between the resulting packages for any machine.

IMHO, COMPATIBLE_MACHINE has been overused and it creates more problems that it solves.

- Jake

From: Xu, Jianzhong
Sent: Thursday, September 13, 2018 11:45 AM
To: Dmytriyenko, Denys; Stiffler, Jacob
Cc: meta-ti@yoctoproject.org
Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.


Denys,



Would the following fix the problems you've seen:

COMPATIBLE_MACHINE = "omap-a15|keystone"

This was in DSPLIB recipes before.



Thanks,

Jianzhong

________________________________
From: Dmytriyenko, Denys
Sent: Thursday, September 13, 2018 11:26:45 AM
To: Stiffler, Jacob
Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.

On Thu, Sep 13, 2018 at 07:26:12AM -0400, Jacob Stiffler wrote:
>
>
> On 9/12/2018 6:52 PM, Denys Dmytriyenko wrote:
> >Same for dra7xx-evm...
> >
> >
> >On Wed, Sep 12, 2018 at 04:37:48PM -0400, Dmytriyenko, Denys wrote:
> >>And it crashed and burned right away:
> >>
> >>ERROR: Nothing PROVIDES 'dsplib-c66x' (but /OE/arago-rocko-next-build/sources/meta-arago/meta-arago-extras/recipes-apps/video-analytics-demo/qt-opencv-opencl-opengl-multithreaded_git.bb DEPENDS on or otherwise requires it)
> >>dsplib-c66x was skipped: incompatible with machine am57xx-hs-evm (not in COMPATIBLE_MACHINE)
> >>NOTE: Runtime target 'qt-opencv-opencl-opengl-multithreaded-src' is unbuildable, removing...
> >>
> >>Jake,
> >>
> >>Did you tested it on am57xx-hs-evm?
>
> I had only built for am57xx-evm as there are no machine overrides in these
> recipes because they are DSP architecture-specific.
>
> Looks like we should change "COMPATIBLE_MACHINE" to, at the very least,
> include what was there before (omap-a15|keystone). But as these are specific
> to the DSP architecture, should COMPATIBLE_MACHINE even be necessary?

Either way should be fine. Currently those patches break too many platforms -
dra7 GP and both am5/dra7 HS.


> >>Denys
> >>
> >>
> >>>-----Original Message-----
> >>>From: Denys Dmytriyenko [mailto:denys@ti.com]
> >>>Sent: Wednesday, September 12, 2018 4:21 PM
> >>>To: Xu, Jianzhong
> >>>Cc: Stiffler, Jacob; meta-ti@yoctoproject.org
> >>>Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build
> >>>DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
> >>>
> >>>Thanks, merged into rocko-next for testing.
> >>>
> >>>There were lots of small non-critical things I had to fix, like whitespaces,
> >>>indentation, etc. But the biggest one is that you have to follow OpenEmbedded
> >>>Commit Message Guidelines:
> >>>
> >>>https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
> >>>
> >>>
> >>>On Wed, Sep 12, 2018 at 03:40:42PM -0400, Xu, Jianzhong wrote:
> >>>>    Denys,
> >>>>
> >>>>
> >>>>
> >>>>    You're right. The versioning was inconsistent. Please use
> >>>>    [EXTERNAL,3/3,v2] and newer versions of [EXTERNAL,2/3], [EXTERNAL,1/3].
> >>>>    The latter two should have had v2 in it. Please see highlights below.
> >>>>
> >>>>
> >>>>
> >>>>    +------------------------------------------------------------------------+
> >>>>    |[EXTERNAL,3/3,v2] Added DSPLIB recipe to   |          |            ||   |
> >>>>    |build DSPLIB from source. Updated          |2018-09-06|Jianzhong Xu||New|
> >>>>    |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
> >>>>    |DSPLIB.                                    |          |            ||   |
> >>>>    |-------------------------------------------+----------+------------++---|
> >>>>    |[EXTERNAL] Added DSPLIB recipe to build    |          |            ||   |
> >>>>    |DSPLIB from source. Updated                |2018-09-06|Jianzhong Xu||New|
> >>>>    |includes/ti-paths.inc for MATHLIB and      |          |            ||   |
> >>>>    |DSPLIB.                                    |          |            ||   |
> >>>>    |-------------------------------------------+----------+------------++---|
> >>>>    |[EXTERNAL,3/3] Added DSPLIB recipe to build|2018-09-04|Jianzhong
> >>>Xu||New|
> >>>>    |DSPLIB from source.                        |          |            ||   |
> >>>>    |-------------------------------------------+----------+------------++---|
> >>>>    |[EXTERNAL,2/3] Added MATHLIB recipe to     |2018-09-04|Jianzhong
> >>>Xu||New|
> >>>>    |build MATHLIB from source.                 |          |            ||   |
> >>>>    |-------------------------------------------+----------+------------++---|
> >>>>    |[EXTERNAL,1/3] Added SWTOOLS which is      |          |            ||   |
> >>>>    |needed to build processor libs (DSPLIB,    |2018-09-04|Jianzhong Xu||New|
> >>>>    |MATHLIB, etc) from source.                 |          |            ||   |
> >>>>    +------------------------------------------------------------------------+
> >>>>
> >>>>
> >>>>
> >>>>    Thanks,
> >>>>
> >>>>    Jianzhong
> >>>>
> >>>>
> >>>>
> >>>>    -----Original Message-----
> >>>>    From: Dmytriyenko, Denys
> >>>>    Sent: Wednesday, September 12, 2018 3:13 PM
> >>>>    To: Stiffler, Jacob
> >>>>    Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
> >>>>    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to
> >>>>    build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
> >>>>    DSPLIB.
> >>>>
> >>>>
> >>>>
> >>>>    Jake,
> >>>>
> >>>>
> >>>>
> >>>>    I'll give it a look - I assume you want the 3 most recent patches, I don't
> >>>>
> >>>>    think versioning was consistent...
> >>>>
> >>>>
> >>>>
> >>>>    Denys
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>    On Tue, Sep 11, 2018 at 09:17:49AM -0400, Jacob Stiffler wrote:
> >>>>
> >>>>    > ACK
> >>>>
> >>>>    >
> >>>>
> >>>>    >
> >>>>
> >>>>    > Denys,
> >>>>
> >>>>    >
> >>>>
> >>>>    > Can you apply these patches to the ti2018.03 branch?
> >>>>
> >>>>    >
> >>>>
> >>>>    >
> >>>>
> >>>>    > Thank you,
> >>>>
> >>>>    >
> >>>>
> >>>>    > Jake
> >>>>
> >>>>    >
> >>>>
> >>>>    >
> >>>>
> >>>>    > On 9/6/2018 1:46 PM, Jianzhong Xu wrote:
> >>>>
> >>>>    > >Signed-off-by: Jianzhong Xu <xuj@ti.com>
> >>>>
> >>>>    > >---
> >>>>
> >>>>    > >Change from previous version of patch
> >>>>
> >>>>    > >Corrected typo: MATHLIB_C674INSTALL_XXX should have been
> >>>>    MATHLIB_C674_INSTALL_XXX
> >>>>
> >>>>    > >---
> >>>>
> >>>>    > >---
> >>>>
> >>>>    > >  recipes-ti/dsplib/dsplib-c64xp_git.bb    |  9 ++++
> >>>>
> >>>>    > >  recipes-ti/dsplib/dsplib-c66x.inc        | 30 ------------
> >>>>
> >>>>    > >  recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb |  9 ----
> >>>>
> >>>>    > >  recipes-ti/dsplib/dsplib-c66x_git.bb     | 10 ++++
> >>>>
> >>>>    > >  recipes-ti/dsplib/dsplib-c674x_git.bb    |  9 ++++
> >>>>
> >>>>    > >  recipes-ti/dsplib/dsplib.inc             | 79
> >>>>    ++++++++++++++++++++++++++++++++
> >>>>
> >>>>    > >  recipes-ti/includes/ti-paths.inc         |  8 +++-
> >>>>
> >>>>    > >  7 files changed, 114 insertions(+), 40 deletions(-)
> >>>>
> >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c64xp_git.bb
> >>>>
> >>>>    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc
> >>>>
> >>>>    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> >>>>
> >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c66x_git.bb
> >>>>
> >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c674x_git.bb
> >>>>
> >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib.inc
> >>>>
> >>>>    > >
> >>>>
> >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >>>>    b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >>>>
> >>>>    > >new file mode 100644
> >>>>
> >>>>    > >index 0000000..1038d44
> >>>>
> >>>>    > >--- /dev/null
> >>>>
> >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >>>>
> >>>>    > >@@ -0,0 +1,9 @@
> >>>>
> >>>>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
> >>>>
> >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
> >>>>
> >>>>    > >+DSPLIB_BUILD_TARGET = "c64Px"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+DEPENDS = ""
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+include dsplib.inc
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c66x.inc
> >>>>    b/recipes-ti/dsplib/dsplib-c66x.inc
> >>>>
> >>>>    > >deleted file mode 100644
> >>>>
> >>>>    > >index 7ff99c2..0000000
> >>>>
> >>>>    > >--- a/recipes-ti/dsplib/dsplib-c66x.inc
> >>>>
> >>>>    > >+++ /dev/null
> >>>>
> >>>>    > >@@ -1,30 +0,0 @@
> >>>>
> >>>>    > >-DESCRIPTION = "DSPLIB contains optimized general-purpose
> >>>>    signal-processing routines for TI DSPs"
> >>>>
> >>>>    > >-HOMEPAGE = "http://www.ti.com/tool/sprc265"
> >>>>
> >>>>    > >-SECTION = "devel"
> >>>>
> >>>>    > >-LICENSE = "BSD-3-Clause"
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-require ../includes/ti-paths.inc
> >>>>
> >>>>    > >-require ../includes/ti-staging.inc
> >>>>
> >>>>    > >-require ../includes/ti-unpack.inc
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-COMPATIBLE_MACHINE = "omap-a15|keystone"
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-SRC_URI =
> >>>>    "http://software-
> >>>dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=d
> >>>splib"
> >>>>    > >-
> >>>>
> >>>>    > >-BINFILE = "dsplib_c66x_${PV}_Linux.bin"
> >>>>
> >>>>    > >-TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
> >>>>
> >>>>    > >-TI_BIN_UNPK_CMDS = ""
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-do_install() {
> >>>>
> >>>>    > >-    CP_ARGS="-Prf --preserve=mode,timestamps --no-
> >>>preserve=ownership"
> >>>>    > >-    install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >-    cp ${CP_ARGS} ${S}/* ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >-}
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-ALLOW_EMPTY_${PN} = "1"
> >>>>
> >>>>    > >-FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-INHIBIT_PACKAGE_STRIP = "1"
> >>>>
> >>>>    > >-INHIBIT_SYSROOT_STRIP = "1"
> >>>>
> >>>>    > >-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> >>>>
> >>>>    > >-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 f1273f3..0000000
> >>>>
> >>>>    > >--- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> >>>>
> >>>>    > >+++ /dev/null
> >>>>
> >>>>    > >@@ -1,9 +0,0 @@
> >>>>
> >>>>    > >-require dsplib-c66x.inc
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-PV = "3_4_0_0"
> >>>>
> >>>>    > >-PR = "r1"
> >>>>
> >>>>    > >-
> >>>>
> >>>>    > >-LIC_FILES_CHKSUM =
> >>>>
> >>>"file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8
> >>>a628512f47c4bf676a"
> >>>>    > >-
> >>>>
> >>>>    > >-SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf"
> >>>>
> >>>>    > >-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 0000000..cbc25d0
> >>>>
> >>>>    > >--- /dev/null
> >>>>
> >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c66x_git.bb
> >>>>
> >>>>    > >@@ -0,0 +1,10 @@
> >>>>
> >>>>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
> >>>>
> >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
> >>>>
> >>>>    > >+DSPLIB_BUILD_TARGET = "c66x"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+DEPENDS = "mathlib-c66x"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+include dsplib.inc
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c674x_git.bb
> >>>>    b/recipes-ti/dsplib/dsplib-c674x_git.bb
> >>>>
> >>>>    > >new file mode 100644
> >>>>
> >>>>    > >index 0000000..07c6892
> >>>>
> >>>>    > >--- /dev/null
> >>>>
> >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c674x_git.bb
> >>>>
> >>>>    > >@@ -0,0 +1,9 @@
> >>>>
> >>>>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
> >>>>
> >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
> >>>>
> >>>>    > >+DSPLIB_BUILD_TARGET = "c674x"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+DEPENDS = "mathlib-c674x"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+include dsplib.inc
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >diff --git a/recipes-ti/dsplib/dsplib.inc
> >>>>    b/recipes-ti/dsplib/dsplib.inc
> >>>>
> >>>>    > >new file mode 100644
> >>>>
> >>>>    > >index 0000000..66fe0fb
> >>>>
> >>>>    > >--- /dev/null
> >>>>
> >>>>    > >+++ b/recipes-ti/dsplib/dsplib.inc
> >>>>
> >>>>    > >@@ -0,0 +1,79 @@
> >>>>
> >>>>    > >+SUMMARY = "DSPLIB contains optimized signal processing functions for
> >>>>    TI DSPs"
> >>>>
> >>>>    > >+HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
> >>>>
> >>>>    > >+LICENSE = "BSD-3-Clause"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+require ../includes/ti-paths.inc
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+PV = "3_4_0_1"
> >>>>
> >>>>    > >+PR = "r0"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+COMPATIBLE_MACHINE = "am57xx-evm|keystone|c66x|omapl1"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+DEPENDS += "ti-cgt6x-native \
> >>>>
> >>>>    > >+           ti-xdctools-native \
> >>>>
> >>>>    > >+           ti-sysbios \
> >>>>
> >>>>    > >+           doxygen-native \
> >>>>
> >>>>    > >+           zip-native \
> >>>>
> >>>>    > >+           swtools "
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+S = "${WORKDIR}/git"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+SRC_URI =
> >>>>    "git://git.ti.com/ep-processor-
> >>>libraries/dsplib.git;protocol=git;branch=master"
> >>>>    > >+SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+LIC_FILES_CHKSUM =
> >>>>
> >>>"file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4
> >>>d51d8af75419781591ace190b"
> >>>>    > >+
> >>>>
> >>>>    > >+export DSPLIB_WORK_DIR="${S}"
> >>>>
> >>>>    > >+export CGTOOLS_INSTALL_DIR  =
> >>>>    "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
> >>>>
> >>>>    > >+export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> >>>>
> >>>>    > >+export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> >>>>
> >>>>    > >+export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
> >>>>
> >>>>    > >+export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
> >>>>
> >>>>    > >+export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
> >>>>
> >>>>    > >+export INCDIR="${MATHLIB_INSTALL_DIR}/"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+PATH_append = ":${XDC_INSTALL_DIR}"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    >
> >>>>
> >>>>+XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBI
> >>>OS_INSTALL_DIR}/packages;"
> >>>>    >
> >>>>
> >>>>+XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_
> >>>WORK_DIR};"
> >>>>    > >+
> >>>>
> >>>>    > >+export XDCPATH
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+do_compile() {
> >>>>
> >>>>    > >+       cd ${DSPLIB_WORK_DIR}/ti/dsplib;
> >>>>
> >>>>    > >+       xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-
> >>>v"
> >>>>    > >+}
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+do_install() {
> >>>>
> >>>>    > >+       install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+       find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d
> >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
> >>>>
> >>>>    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/*
> >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata
> >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >+       rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
> >>>>
> >>>>    > >+}
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+inherit deploy
> >>>>
> >>>>    > >+addtask deploy before do_build after do_install
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+do_deploy() {
> >>>>
> >>>>    > >+       install -d ${DEPLOYDIR}
> >>>>
> >>>>    > >+       # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >+       # and place the zip file in ${DEPLOYDIR}
> >>>>
> >>>>    > >+       mkdir ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/*
> >>>>    ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata
> >>>>    ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>    > >+       zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip
> >>>>    ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>    > >+       rm -r ./${DSPLIB_PACKAGE_NAME}
> >>>>
> >>>>    > >+}
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+PACKAGE_ARCH = "${MACHINE_ARCH}"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+ALLOW_EMPTY_${PN} = "1"
> >>>>
> >>>>    > >+FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >+INSANE_SKIP_${PN}-dev = "arch"
> >>>>
> >>>>    > >+
> >>>>
> >>>>    > >diff --git a/recipes-ti/includes/ti-paths.inc
> >>>>    b/recipes-ti/includes/ti-paths.inc
> >>>>
> >>>>    > >index 4f99d5e..8740b6a 100644
> >>>>
> >>>>    > >--- a/recipes-ti/includes/ti-paths.inc
> >>>>
> >>>>    > >+++ b/recipes-ti/includes/ti-paths.inc
> >>>>
> >>>>    > >@@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE       =
> >>>>    "${installdir}/ti-dmai-tree"
> >>>>
> >>>>    > >  export DSP_BENCHMARK_INSTALL_DIR_RECIPE =
> >>>>    "${installdir}/ti-dsp-benchmark-tree"
> >>>>
> >>>>    > >  export DSPLIB_C64P_INSTALL_DIR_RECIPE =
> >>>>    "${installdir}/ti-dsplib-c64p-tree"
> >>>>
> >>>>    > >  export DSPLIB_C674_INSTALL_DIR_RECIPE =
> >>>>    "${installdir}/ti-dsplib-c674x-tree"
> >>>>
> >>>>    > >+export DSPLIB_C66_INSTALL_DIR_RECIPE  =
> >>>>    "${installdir}/ti-dsplib-c66x-tree"
> >>>>
> >>>>    > >  export DSPLIB_INSTALL_DIR_RECIPE     = "${installdir}/ti-dsplib-tree"
> >>>>
> >>>>    > >  export DVSDK_DEMOS_INSTALL_DIR_RECIPE=
> >>>>    "${installdir}/ti-dvsdk-demos-tree"
> >>>>
> >>>>    > >  export DVTB_INSTALL_DIR_RECIPE       = "${installdir}/ti-dvtb-tree"
> >>>>
> >>>>    > >@@ -39,6 +40,7 @@ export OSAL_INSTALL_DIR_RECIPE       =
> >>>>    "${installdir}/ti-osal-tree"
> >>>>
> >>>>    > >  export RTFS_INSTALL_DIR_RECIPE       = "${installdir}/ti-rtfs-tree"
> >>>>
> >>>>    > >  export SYSBIOS_INSTALL_DIR_RECIPE    =
> >>>>    "${installdir}/ti-sysbios-tree"
> >>>>
> >>>>    > >  export SYSLINK_INSTALL_DIR_RECIPE    =
> >>>>    "${installdir}/ti-syslink-tree"
> >>>>
> >>>>    > >+export SWTOOLS_INSTALL_DIR_RECIPE    = "${installdir}/ti-swtools-tree"
> >>>>
> >>>>    > >  export UIA_INSTALL_DIR_RECIPE        = "${installdir}/ti-uia-tree"
> >>>>
> >>>>    > >  export VICPLIB_INSTALL_DIR_RECIPE    =
> >>>>    "${installdir}/ti-vicplib-tree"
> >>>>
> >>>>    > >  export XDAIS_INSTALL_DIR_RECIPE      = "${installdir}/ti-xdais-tree"
> >>>>
> >>>>    > >@@ -48,8 +50,8 @@ export OSAL_INSTALL_DIR_RECIPE       =
> >>>>    "${installdir}/ti-osal-tree"
> >>>>
> >>>>    > >  export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    =
> >>>>    "${installdir}/ti-cgt-arm"
> >>>>
> >>>>    > >  export GCC_ARM_NONE_TOOLCHAIN_RECIPE      =
> >>>>    "${installdir}/gcc-arm-none-eabi"
> >>>>
> >>>>    > >  export TI_CGT_PRU_INSTALL_DIR_RECIPE      = "${installdir}/cgt-pru"
> >>>>
> >>>>    > >-export DSPLIB_C66_INSTALL_DIR_RECIPE      =
> >>>>    "${installdir}/ti-dsplib-c66x-tree"
> >>>>
> >>>>    > >  export MATHLIB_C66_INSTALL_DIR_RECIPE     =
> >>>>    "${installdir}/ti-mathlib-c66x-tree"
> >>>>
> >>>>    > >+export MATHLIB_C674_INSTALL_DIR_RECIPE    =
> >>>>    "${installdir}/ti-mathlib-c674x-tree"
> >>>>
> >>>>    > >  export IMGLIB_C66_INSTALL_DIR_RECIPE      =
> >>>>    "${installdir}/ti-imglib-c66x-tree"
> >>>>
> >>>>    > >  export VLIB_C66_INSTALL_DIR_RECIPE        =
> >>>>    "${installdir}/ti-vlib-c66x-tree"
> >>>>
> >>>>    > >  export CG_XML_INSTALL_DIR_RECIPE     = "${installdir}/ti-cg-xml-tree"
> >>>>
> >>>>    > >@@ -95,7 +97,11 @@ export OSAL_INSTALL_DIR       =
> >>>>    "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}
> >>>>
> >>>>    > >  export M4_TOOLCHAIN_INSTALL_DIR    =
> >>>>    "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >  export GCC_ARM_NONE_TOOLCHAIN      =
> >>>>    "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
> >>>>
> >>>>    > >  export TI_CGT_PRU_INSTALL_DIR      =
> >>>>    "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+export SWTOOLS_INSTALL_DIR         =
> >>>>    "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+export DSPLIB_C64P_INSTALL_DIR     =
> >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+export DSPLIB_C674_INSTALL_DIR     =
> >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >  export DSPLIB_C66_INSTALL_DIR      =
> >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >+export MATHLIB_C674_INSTALL_DIR    =
> >>>>    "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >  export MATHLIB_C66_INSTALL_DIR     =
> >>>>    "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >  export IMGLIB_C66_INSTALL_DIR      =
> >>>>    "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    > >  export VLIB_C66_INSTALL_DIR        =
> >>>>    "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
> >>>>
> >>>>    >
> >>>>
> >>>>    > --
> >>>>
> >>>>    > _______________________________________________
> >>>>
> >>>>    > meta-ti mailing list
> >>>>
> >>>>    > meta-ti@yoctoproject.org
> >>>>
> >>>>    > https://lists.yoctoproject.org/listinfo/meta-ti
>

[-- Attachment #2: Type: text/html, Size: 55642 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
  2018-09-13 16:01                   ` Stiffler, Jacob
@ 2018-09-13 16:34                     ` Denys Dmytriyenko
  2018-09-13 18:35                       ` Denys Dmytriyenko
  0 siblings, 1 reply; 19+ messages in thread
From: Denys Dmytriyenko @ 2018-09-13 16:34 UTC (permalink / raw)
  To: Stiffler, Jacob; +Cc: meta-ti

On Thu, Sep 13, 2018 at 12:01:32PM -0400, Stiffler, Jacob wrote:
>    That will work as c66x is a subset of the keystone SOC family.
> 
>     
> 
>    I just don’t think that specifying COMPATIBLE_MACHINE is necessary as
>    these packages are independent of the architecture that is running Linux.

Agree.


>    And due to this, we should also remove the ‘PACKAGE_ARCH =
>    ${MACHINE_ARCH}”’ as there is no difference between the resulting packages
>    for any machine.

Also agree.


>    IMHO, COMPATIBLE_MACHINE has been overused and it creates more problems
>    that it solves.

I've been saying this for years! Still, the response from developers was that 
they only tested it on one platform, hence it's only compatible with this one 
platform...


Jake,

Please work with your team to explain this and stop abusing COMPATIBLE_MACHINE 
variable. We'll also need to work with RTOS team for the same...

-- 
Denys


> 
>     
> 
>    - Jake
> 
>     
> 
>    From: Xu, Jianzhong
>    Sent: Thursday, September 13, 2018 11:45 AM
>    To: Dmytriyenko, Denys; Stiffler, Jacob
>    Cc: meta-ti@yoctoproject.org
>    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to
>    build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
>    DSPLIB.
> 
>     
> 
>    Denys,
> 
>     
> 
>    Would the following fix the problems you've seen:
> 
>     
> 
>    COMPATIBLE_MACHINE = "omap-a15|keystone"
> 
>     
> 
>    This was in DSPLIB recipes before. 
> 
>     
> 
>    Thanks,
> 
>    Jianzhong
> 
>     ------------------------------------------------------------------------
> 
>    From: Dmytriyenko, Denys
>    Sent: Thursday, September 13, 2018 11:26:45 AM
>    To: Stiffler, Jacob
>    Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
>    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to
>    build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
>    DSPLIB.
> 
>     
> 
>    On Thu, Sep 13, 2018 at 07:26:12AM -0400, Jacob Stiffler wrote:
>    >
>    >
>    > On 9/12/2018 6:52 PM, Denys Dmytriyenko wrote:
>    > >Same for dra7xx-evm...
>    > >
>    > >
>    > >On Wed, Sep 12, 2018 at 04:37:48PM -0400, Dmytriyenko, Denys wrote:
>    > >>And it crashed and burned right away:
>    > >>
>    > >>ERROR: Nothing PROVIDES 'dsplib-c66x' (but
>    /OE/arago-rocko-next-build/sources/meta-arago/meta-arago-extras/recipes-apps/video-analytics-demo/qt-opencv-opencl-opengl-multithreaded_git.bb
>    DEPENDS on or otherwise requires it)
>    > >>dsplib-c66x was skipped: incompatible with machine am57xx-hs-evm (not
>    in COMPATIBLE_MACHINE)
>    > >>NOTE: Runtime target 'qt-opencv-opencl-opengl-multithreaded-src' is
>    unbuildable, removing...
>    > >>
>    > >>Jake,
>    > >>
>    > >>Did you tested it on am57xx-hs-evm?
>    >
>    > I had only built for am57xx-evm as there are no machine overrides in
>    these
>    > recipes because they are DSP architecture-specific.
>    >
>    > Looks like we should change "COMPATIBLE_MACHINE" to, at the very least,
>    > include what was there before (omap-a15|keystone). But as these are
>    specific
>    > to the DSP architecture, should COMPATIBLE_MACHINE even be necessary?
> 
>    Either way should be fine. Currently those patches break too many
>    platforms -
>    dra7 GP and both am5/dra7 HS.
> 
>    > >>Denys
>    > >>
>    > >>
>    > >>>-----Original Message-----
>    > >>>From: Denys Dmytriyenko [mailto:denys@ti.com]
>    > >>>Sent: Wednesday, September 12, 2018 4:21 PM
>    > >>>To: Xu, Jianzhong
>    > >>>Cc: Stiffler, Jacob; meta-ti@yoctoproject.org
>    > >>>Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe
>    to build
>    > >>>DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
>    DSPLIB.
>    > >>>
>    > >>>Thanks, merged into rocko-next for testing.
>    > >>>
>    > >>>There were lots of small non-critical things I had to fix, like
>    whitespaces,
>    > >>>indentation, etc. But the biggest one is that you have to follow
>    OpenEmbedded
>    > >>>Commit Message Guidelines:
>    > >>>
>    > >>>https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
>    > >>>
>    > >>>
>    > >>>On Wed, Sep 12, 2018 at 03:40:42PM -0400, Xu, Jianzhong wrote:
>    > >>>>    Denys,
>    > >>>>
>    > >>>>
>    > >>>>
>    > >>>>    You're right. The versioning was inconsistent. Please use
>    > >>>>    [EXTERNAL,3/3,v2] and newer versions of [EXTERNAL,2/3],
>    [EXTERNAL,1/3].
>    > >>>>    The latter two should have had v2 in it. Please see highlights
>    below.
>    > >>>>
>    > >>>>
>    > >>>>
>    > >>>>   
>    +------------------------------------------------------------------------+
>    > >>>>    |[EXTERNAL,3/3,v2] Added DSPLIB recipe to   |         
>    |            ||   |
>    > >>>>    |build DSPLIB from source. Updated         
>    |2018-09-06|Jianzhong Xu||New|
>    > >>>>    |includes/ti-paths.inc for MATHLIB and      |         
>    |            ||   |
>    > >>>>    |DSPLIB.                                    |         
>    |            ||   |
>    > >>>>   
>    |-------------------------------------------+----------+------------++---|
>    > >>>>    |[EXTERNAL] Added DSPLIB recipe to build    |         
>    |            ||   |
>    > >>>>    |DSPLIB from source. Updated               
>    |2018-09-06|Jianzhong Xu||New|
>    > >>>>    |includes/ti-paths.inc for MATHLIB and      |         
>    |            ||   |
>    > >>>>    |DSPLIB.                                    |         
>    |            ||   |
>    > >>>>   
>    |-------------------------------------------+----------+------------++---|
>    > >>>>    |[EXTERNAL,3/3] Added DSPLIB recipe to
>    build|2018-09-04|Jianzhong
>    > >>>Xu||New|
>    > >>>>    |DSPLIB from source.                        |         
>    |            ||   |
>    > >>>>   
>    |-------------------------------------------+----------+------------++---|
>    > >>>>    |[EXTERNAL,2/3] Added MATHLIB recipe to    
>    |2018-09-04|Jianzhong
>    > >>>Xu||New|
>    > >>>>    |build MATHLIB from source.                 |         
>    |            ||   |
>    > >>>>   
>    |-------------------------------------------+----------+------------++---|
>    > >>>>    |[EXTERNAL,1/3] Added SWTOOLS which is      |         
>    |            ||   |
>    > >>>>    |needed to build processor libs (DSPLIB,   
>    |2018-09-04|Jianzhong Xu||New|
>    > >>>>    |MATHLIB, etc) from source.                 |         
>    |            ||   |
>    > >>>>   
>    +------------------------------------------------------------------------+
>    > >>>>
>    > >>>>
>    > >>>>
>    > >>>>    Thanks,
>    > >>>>
>    > >>>>    Jianzhong
>    > >>>>
>    > >>>>
>    > >>>>
>    > >>>>    -----Original Message-----
>    > >>>>    From: Dmytriyenko, Denys
>    > >>>>    Sent: Wednesday, September 12, 2018 3:13 PM
>    > >>>>    To: Stiffler, Jacob
>    > >>>>    Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
>    > >>>>    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB
>    recipe to
>    > >>>>    build DSPLIB from source. Updated includes/ti-paths.inc for
>    MATHLIB and
>    > >>>>    DSPLIB.
>    > >>>>
>    > >>>>
>    > >>>>
>    > >>>>    Jake,
>    > >>>>
>    > >>>>
>    > >>>>
>    > >>>>    I'll give it a look - I assume you want the 3 most recent
>    patches, I don't
>    > >>>>
>    > >>>>    think versioning was consistent...
>    > >>>>
>    > >>>>
>    > >>>>
>    > >>>>    Denys
>    > >>>>
>    > >>>>
>    > >>>>
>    > >>>>
>    > >>>>
>    > >>>>    On Tue, Sep 11, 2018 at 09:17:49AM -0400, Jacob Stiffler wrote:
>    > >>>>
>    > >>>>    > ACK
>    > >>>>
>    > >>>>    >
>    > >>>>
>    > >>>>    >
>    > >>>>
>    > >>>>    > Denys,
>    > >>>>
>    > >>>>    >
>    > >>>>
>    > >>>>    > Can you apply these patches to the ti2018.03 branch?
>    > >>>>
>    > >>>>    >
>    > >>>>
>    > >>>>    >
>    > >>>>
>    > >>>>    > Thank you,
>    > >>>>
>    > >>>>    >
>    > >>>>
>    > >>>>    > Jake
>    > >>>>
>    > >>>>    >
>    > >>>>
>    > >>>>    >
>    > >>>>
>    > >>>>    > On 9/6/2018 1:46 PM, Jianzhong Xu wrote:
>    > >>>>
>    > >>>>    > >Signed-off-by: Jianzhong Xu <xuj@ti.com>
>    > >>>>
>    > >>>>    > >---
>    > >>>>
>    > >>>>    > >Change from previous version of patch
>    > >>>>
>    > >>>>    > >Corrected typo: MATHLIB_C674INSTALL_XXX should have been
>    > >>>>    MATHLIB_C674_INSTALL_XXX
>    > >>>>
>    > >>>>    > >---
>    > >>>>
>    > >>>>    > >---
>    > >>>>
>    > >>>>    > >  recipes-ti/dsplib/dsplib-c64xp_git.bb    |  9 ++++
>    > >>>>
>    > >>>>    > >  recipes-ti/dsplib/dsplib-c66x.inc        | 30 ------------
>    > >>>>
>    > >>>>    > >  recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb |  9 ----
>    > >>>>
>    > >>>>    > >  recipes-ti/dsplib/dsplib-c66x_git.bb     | 10 ++++
>    > >>>>
>    > >>>>    > >  recipes-ti/dsplib/dsplib-c674x_git.bb    |  9 ++++
>    > >>>>
>    > >>>>    > >  recipes-ti/dsplib/dsplib.inc             | 79
>    > >>>>    ++++++++++++++++++++++++++++++++
>    > >>>>
>    > >>>>    > >  recipes-ti/includes/ti-paths.inc         |  8 +++-
>    > >>>>
>    > >>>>    > >  7 files changed, 114 insertions(+), 40 deletions(-)
>    > >>>>
>    > >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c64xp_git.bb
>    > >>>>
>    > >>>>    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc
>    > >>>>
>    > >>>>    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
>    > >>>>
>    > >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c66x_git.bb
>    > >>>>
>    > >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c674x_git.bb
>    > >>>>
>    > >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib.inc
>    > >>>>
>    > >>>>    > >
>    > >>>>
>    > >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb
>    > >>>>    b/recipes-ti/dsplib/dsplib-c64xp_git.bb
>    > >>>>
>    > >>>>    > >new file mode 100644
>    > >>>>
>    > >>>>    > >index 0000000..1038d44
>    > >>>>
>    > >>>>    > >--- /dev/null
>    > >>>>
>    > >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c64xp_git.bb
>    > >>>>
>    > >>>>    > >@@ -0,0 +1,9 @@
>    > >>>>
>    > >>>>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
>    > >>>>
>    > >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE =
>    "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
>    > >>>>
>    > >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
>    > >>>>
>    > >>>>    > >+DSPLIB_BUILD_TARGET = "c64Px"
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+DEPENDS = ""
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+include dsplib.inc
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c66x.inc
>    > >>>>    b/recipes-ti/dsplib/dsplib-c66x.inc
>    > >>>>
>    > >>>>    > >deleted file mode 100644
>    > >>>>
>    > >>>>    > >index 7ff99c2..0000000
>    > >>>>
>    > >>>>    > >--- a/recipes-ti/dsplib/dsplib-c66x.inc
>    > >>>>
>    > >>>>    > >+++ /dev/null
>    > >>>>
>    > >>>>    > >@@ -1,30 +0,0 @@
>    > >>>>
>    > >>>>    > >-DESCRIPTION = "DSPLIB contains optimized general-purpose
>    > >>>>    signal-processing routines for TI DSPs"
>    > >>>>
>    > >>>>    > >-HOMEPAGE = "http://www.ti.com/tool/sprc265"
>    > >>>>
>    > >>>>    > >-SECTION = "devel"
>    > >>>>
>    > >>>>    > >-LICENSE = "BSD-3-Clause"
>    > >>>>
>    > >>>>    > >-
>    > >>>>
>    > >>>>    > >-require ../includes/ti-paths.inc
>    > >>>>
>    > >>>>    > >-require ../includes/ti-staging.inc
>    > >>>>
>    > >>>>    > >-require ../includes/ti-unpack.inc
>    > >>>>
>    > >>>>    > >-
>    > >>>>
>    > >>>>    > >-COMPATIBLE_MACHINE = "omap-a15|keystone"
>    > >>>>
>    > >>>>    > >-
>    > >>>>
>    > >>>>    > >-SRC_URI =
>    > >>>>    "http://software-
>    >
>    >>>dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=d
>    > >>>splib"
>    > >>>>    > >-
>    > >>>>
>    > >>>>    > >-BINFILE = "dsplib_c66x_${PV}_Linux.bin"
>    > >>>>
>    > >>>>    > >-TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
>    > >>>>
>    > >>>>    > >-TI_BIN_UNPK_CMDS = ""
>    > >>>>
>    > >>>>    > >-
>    > >>>>
>    > >>>>    > >-do_install() {
>    > >>>>
>    > >>>>    > >-    CP_ARGS="-Prf --preserve=mode,timestamps --no-
>    > >>>preserve=ownership"
>    > >>>>    > >-    install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
>    > >>>>
>    > >>>>    > >-    cp ${CP_ARGS} ${S}/*
>    ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
>    > >>>>
>    > >>>>    > >-}
>    > >>>>
>    > >>>>    > >-
>    > >>>>
>    > >>>>    > >-ALLOW_EMPTY_${PN} = "1"
>    > >>>>
>    > >>>>    > >-FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
>    > >>>>
>    > >>>>    > >-
>    > >>>>
>    > >>>>    > >-INHIBIT_PACKAGE_STRIP = "1"
>    > >>>>
>    > >>>>    > >-INHIBIT_SYSROOT_STRIP = "1"
>    > >>>>
>    > >>>>    > >-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
>    > >>>>
>    > >>>>    > >-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 f1273f3..0000000
>    > >>>>
>    > >>>>    > >--- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
>    > >>>>
>    > >>>>    > >+++ /dev/null
>    > >>>>
>    > >>>>    > >@@ -1,9 +0,0 @@
>    > >>>>
>    > >>>>    > >-require dsplib-c66x.inc
>    > >>>>
>    > >>>>    > >-
>    > >>>>
>    > >>>>    > >-PV = "3_4_0_0"
>    > >>>>
>    > >>>>    > >-PR = "r1"
>    > >>>>
>    > >>>>    > >-
>    > >>>>
>    > >>>>    > >-LIC_FILES_CHKSUM =
>    > >>>>
>    >
>    >>>"file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8
>    > >>>a628512f47c4bf676a"
>    > >>>>    > >-
>    > >>>>
>    > >>>>    > >-SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf"
>    > >>>>
>    > >>>>    > >-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 0000000..cbc25d0
>    > >>>>
>    > >>>>    > >--- /dev/null
>    > >>>>
>    > >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c66x_git.bb
>    > >>>>
>    > >>>>    > >@@ -0,0 +1,10 @@
>    > >>>>
>    > >>>>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
>    > >>>>
>    > >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE =
>    "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
>    > >>>>
>    > >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
>    > >>>>
>    > >>>>    > >+DSPLIB_BUILD_TARGET = "c66x"
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+DEPENDS = "mathlib-c66x"
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+include dsplib.inc
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c674x_git.bb
>    > >>>>    b/recipes-ti/dsplib/dsplib-c674x_git.bb
>    > >>>>
>    > >>>>    > >new file mode 100644
>    > >>>>
>    > >>>>    > >index 0000000..07c6892
>    > >>>>
>    > >>>>    > >--- /dev/null
>    > >>>>
>    > >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c674x_git.bb
>    > >>>>
>    > >>>>    > >@@ -0,0 +1,9 @@
>    > >>>>
>    > >>>>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
>    > >>>>
>    > >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE =
>    "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
>    > >>>>
>    > >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
>    > >>>>
>    > >>>>    > >+DSPLIB_BUILD_TARGET = "c674x"
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+DEPENDS = "mathlib-c674x"
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+include dsplib.inc
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >diff --git a/recipes-ti/dsplib/dsplib.inc
>    > >>>>    b/recipes-ti/dsplib/dsplib.inc
>    > >>>>
>    > >>>>    > >new file mode 100644
>    > >>>>
>    > >>>>    > >index 0000000..66fe0fb
>    > >>>>
>    > >>>>    > >--- /dev/null
>    > >>>>
>    > >>>>    > >+++ b/recipes-ti/dsplib/dsplib.inc
>    > >>>>
>    > >>>>    > >@@ -0,0 +1,79 @@
>    > >>>>
>    > >>>>    > >+SUMMARY = "DSPLIB contains optimized signal processing
>    functions for
>    > >>>>    TI DSPs"
>    > >>>>
>    > >>>>    > >+HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
>    > >>>>
>    > >>>>    > >+LICENSE = "BSD-3-Clause"
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+require ../includes/ti-paths.inc
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+PV = "3_4_0_1"
>    > >>>>
>    > >>>>    > >+PR = "r0"
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+COMPATIBLE_MACHINE = "am57xx-evm|keystone|c66x|omapl1"
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+DEPENDS += "ti-cgt6x-native \
>    > >>>>
>    > >>>>    > >+           ti-xdctools-native \
>    > >>>>
>    > >>>>    > >+           ti-sysbios \
>    > >>>>
>    > >>>>    > >+           doxygen-native \
>    > >>>>
>    > >>>>    > >+           zip-native \
>    > >>>>
>    > >>>>    > >+           swtools "
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+S = "${WORKDIR}/git"
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+SRC_URI =
>    > >>>>    "git://git.ti.com/ep-processor-
>    > >>>libraries/dsplib.git;protocol=git;branch=master"
>    > >>>>    > >+SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+LIC_FILES_CHKSUM =
>    > >>>>
>    >
>    >>>"file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4
>    > >>>d51d8af75419781591ace190b"
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+export DSPLIB_WORK_DIR="${S}"
>    > >>>>
>    > >>>>    > >+export CGTOOLS_INSTALL_DIR  =
>    > >>>>    "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
>    > >>>>
>    > >>>>    > >+export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
>    > >>>>
>    > >>>>    > >+export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
>    > >>>>
>    > >>>>    > >+export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
>    > >>>>
>    > >>>>    > >+export SWTOOLS_PATH =
>    "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
>    > >>>>
>    > >>>>    > >+export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
>    > >>>>
>    > >>>>    > >+export INCDIR="${MATHLIB_INSTALL_DIR}/"
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+PATH_append = ":${XDC_INSTALL_DIR}"
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    >
>    > >>>>
>    > >>>>+XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBI
>    > >>>OS_INSTALL_DIR}/packages;"
>    > >>>>    >
>    > >>>>
>    > >>>>+XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_
>    > >>>WORK_DIR};"
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+export XDCPATH
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+do_compile() {
>    > >>>>
>    > >>>>    > >+       cd ${DSPLIB_WORK_DIR}/ti/dsplib;
>    > >>>>
>    > >>>>    > >+       xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle"
>    XDCOPTIONS="-
>    > >>>v"
>    > >>>>    > >+}
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+do_install() {
>    > >>>>
>    > >>>>    > >+       install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+       find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip
>    -o {} -d
>    > >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
>    > >>>>
>    > >>>>    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/*
>    > >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>    > >>>>
>    > >>>>    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata
>    > >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>    > >>>>
>    > >>>>    > >+       rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
>    > >>>>
>    > >>>>    > >+}
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+inherit deploy
>    > >>>>
>    > >>>>    > >+addtask deploy before do_build after do_install
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+do_deploy() {
>    > >>>>
>    > >>>>    > >+       install -d ${DEPLOYDIR}
>    > >>>>
>    > >>>>    > >+       # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>    > >>>>
>    > >>>>    > >+       # and place the zip file in ${DEPLOYDIR}
>    > >>>>
>    > >>>>    > >+       mkdir ./${DSPLIB_PACKAGE_NAME}
>    > >>>>
>    > >>>>    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/*
>    > >>>>    ./${DSPLIB_PACKAGE_NAME}
>    > >>>>
>    > >>>>    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata
>    > >>>>    ./${DSPLIB_PACKAGE_NAME}
>    > >>>>
>    > >>>>    > >+       zip -9 -y -r -q
>    ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip
>    > >>>>    ./${DSPLIB_PACKAGE_NAME}
>    > >>>>
>    > >>>>    > >+       rm -r ./${DSPLIB_PACKAGE_NAME}
>    > >>>>
>    > >>>>    > >+}
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+PACKAGE_ARCH = "${MACHINE_ARCH}"
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+ALLOW_EMPTY_${PN} = "1"
>    > >>>>
>    > >>>>    > >+FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >+INSANE_SKIP_${PN}-dev = "arch"
>    > >>>>
>    > >>>>    > >+
>    > >>>>
>    > >>>>    > >diff --git a/recipes-ti/includes/ti-paths.inc
>    > >>>>    b/recipes-ti/includes/ti-paths.inc
>    > >>>>
>    > >>>>    > >index 4f99d5e..8740b6a 100644
>    > >>>>
>    > >>>>    > >--- a/recipes-ti/includes/ti-paths.inc
>    > >>>>
>    > >>>>    > >+++ b/recipes-ti/includes/ti-paths.inc
>    > >>>>
>    > >>>>    > >@@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE       =
>    > >>>>    "${installdir}/ti-dmai-tree"
>    > >>>>
>    > >>>>    > >  export DSP_BENCHMARK_INSTALL_DIR_RECIPE =
>    > >>>>    "${installdir}/ti-dsp-benchmark-tree"
>    > >>>>
>    > >>>>    > >  export DSPLIB_C64P_INSTALL_DIR_RECIPE =
>    > >>>>    "${installdir}/ti-dsplib-c64p-tree"
>    > >>>>
>    > >>>>    > >  export DSPLIB_C674_INSTALL_DIR_RECIPE =
>    > >>>>    "${installdir}/ti-dsplib-c674x-tree"
>    > >>>>
>    > >>>>    > >+export DSPLIB_C66_INSTALL_DIR_RECIPE  =
>    > >>>>    "${installdir}/ti-dsplib-c66x-tree"
>    > >>>>
>    > >>>>    > >  export DSPLIB_INSTALL_DIR_RECIPE     =
>    "${installdir}/ti-dsplib-tree"
>    > >>>>
>    > >>>>    > >  export DVSDK_DEMOS_INSTALL_DIR_RECIPE=
>    > >>>>    "${installdir}/ti-dvsdk-demos-tree"
>    > >>>>
>    > >>>>    > >  export DVTB_INSTALL_DIR_RECIPE       =
>    "${installdir}/ti-dvtb-tree"
>    > >>>>
>    > >>>>    > >@@ -39,6 +40,7 @@ export OSAL_INSTALL_DIR_RECIPE       =
>    > >>>>    "${installdir}/ti-osal-tree"
>    > >>>>
>    > >>>>    > >  export RTFS_INSTALL_DIR_RECIPE       =
>    "${installdir}/ti-rtfs-tree"
>    > >>>>
>    > >>>>    > >  export SYSBIOS_INSTALL_DIR_RECIPE    =
>    > >>>>    "${installdir}/ti-sysbios-tree"
>    > >>>>
>    > >>>>    > >  export SYSLINK_INSTALL_DIR_RECIPE    =
>    > >>>>    "${installdir}/ti-syslink-tree"
>    > >>>>
>    > >>>>    > >+export SWTOOLS_INSTALL_DIR_RECIPE    =
>    "${installdir}/ti-swtools-tree"
>    > >>>>
>    > >>>>    > >  export UIA_INSTALL_DIR_RECIPE        =
>    "${installdir}/ti-uia-tree"
>    > >>>>
>    > >>>>    > >  export VICPLIB_INSTALL_DIR_RECIPE    =
>    > >>>>    "${installdir}/ti-vicplib-tree"
>    > >>>>
>    > >>>>    > >  export XDAIS_INSTALL_DIR_RECIPE      =
>    "${installdir}/ti-xdais-tree"
>    > >>>>
>    > >>>>    > >@@ -48,8 +50,8 @@ export OSAL_INSTALL_DIR_RECIPE       =
>    > >>>>    "${installdir}/ti-osal-tree"
>    > >>>>
>    > >>>>    > >  export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    =
>    > >>>>    "${installdir}/ti-cgt-arm"
>    > >>>>
>    > >>>>    > >  export GCC_ARM_NONE_TOOLCHAIN_RECIPE      =
>    > >>>>    "${installdir}/gcc-arm-none-eabi"
>    > >>>>
>    > >>>>    > >  export TI_CGT_PRU_INSTALL_DIR_RECIPE      =
>    "${installdir}/cgt-pru"
>    > >>>>
>    > >>>>    > >-export DSPLIB_C66_INSTALL_DIR_RECIPE      =
>    > >>>>    "${installdir}/ti-dsplib-c66x-tree"
>    > >>>>
>    > >>>>    > >  export MATHLIB_C66_INSTALL_DIR_RECIPE     =
>    > >>>>    "${installdir}/ti-mathlib-c66x-tree"
>    > >>>>
>    > >>>>    > >+export MATHLIB_C674_INSTALL_DIR_RECIPE    =
>    > >>>>    "${installdir}/ti-mathlib-c674x-tree"
>    > >>>>
>    > >>>>    > >  export IMGLIB_C66_INSTALL_DIR_RECIPE      =
>    > >>>>    "${installdir}/ti-imglib-c66x-tree"
>    > >>>>
>    > >>>>    > >  export VLIB_C66_INSTALL_DIR_RECIPE        =
>    > >>>>    "${installdir}/ti-vlib-c66x-tree"
>    > >>>>
>    > >>>>    > >  export CG_XML_INSTALL_DIR_RECIPE     =
>    "${installdir}/ti-cg-xml-tree"
>    > >>>>
>    > >>>>    > >@@ -95,7 +97,11 @@ export OSAL_INSTALL_DIR       =
>    > >>>>    "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}
>    > >>>>
>    > >>>>    > >  export M4_TOOLCHAIN_INSTALL_DIR    =
>    > >>>>    "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
>    > >>>>
>    > >>>>    > >  export GCC_ARM_NONE_TOOLCHAIN      =
>    > >>>>    "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
>    > >>>>
>    > >>>>    > >  export TI_CGT_PRU_INSTALL_DIR      =
>    > >>>>    "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
>    > >>>>
>    > >>>>    > >+export SWTOOLS_INSTALL_DIR         =
>    > >>>>    "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
>    > >>>>
>    > >>>>    > >+export DSPLIB_C64P_INSTALL_DIR     =
>    > >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
>    > >>>>
>    > >>>>    > >+export DSPLIB_C674_INSTALL_DIR     =
>    > >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
>    > >>>>
>    > >>>>    > >  export DSPLIB_C66_INSTALL_DIR      =
>    > >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
>    > >>>>
>    > >>>>    > >+export MATHLIB_C674_INSTALL_DIR    =
>    > >>>>    "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
>    > >>>>
>    > >>>>    > >  export MATHLIB_C66_INSTALL_DIR     =
>    > >>>>    "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
>    > >>>>
>    > >>>>    > >  export IMGLIB_C66_INSTALL_DIR      =
>    > >>>>    "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
>    > >>>>
>    > >>>>    > >  export VLIB_C66_INSTALL_DIR        =
>    > >>>>    "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
>    > >>>>
>    > >>>>    >
>    > >>>>
>    > >>>>    > --
>    > >>>>
>    > >>>>    > _______________________________________________
>    > >>>>
>    > >>>>    > meta-ti mailing list
>    > >>>>
>    > >>>>    > meta-ti@yoctoproject.org
>    > >>>>
>    > >>>>    > https://lists.yoctoproject.org/listinfo/meta-ti
>    >


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
  2018-09-13 16:34                     ` Denys Dmytriyenko
@ 2018-09-13 18:35                       ` Denys Dmytriyenko
  2018-09-13 21:20                         ` Xu, Jianzhong
  0 siblings, 1 reply; 19+ messages in thread
From: Denys Dmytriyenko @ 2018-09-13 18:35 UTC (permalink / raw)
  To: Stiffler, Jacob; +Cc: meta-ti

Jake, Jianzhong,

I have re-posted the cleaned up patches I had in rocko-next. Please use those 
for fixing the COMPATIBLE_MACHINE issue. For now I'll drop them, as I need 
rocko-next freed up.

Denys


On Thu, Sep 13, 2018 at 12:34:40PM -0400, Denys Dmytriyenko wrote:
> On Thu, Sep 13, 2018 at 12:01:32PM -0400, Stiffler, Jacob wrote:
> >    That will work as c66x is a subset of the keystone SOC family.
> > 
> >     
> > 
> >    I just don’t think that specifying COMPATIBLE_MACHINE is necessary as
> >    these packages are independent of the architecture that is running Linux.
> 
> Agree.
> 
> 
> >    And due to this, we should also remove the ‘PACKAGE_ARCH =
> >    ${MACHINE_ARCH}”’ as there is no difference between the resulting packages
> >    for any machine.
> 
> Also agree.
> 
> 
> >    IMHO, COMPATIBLE_MACHINE has been overused and it creates more problems
> >    that it solves.
> 
> I've been saying this for years! Still, the response from developers was that 
> they only tested it on one platform, hence it's only compatible with this one 
> platform...
> 
> 
> Jake,
> 
> Please work with your team to explain this and stop abusing COMPATIBLE_MACHINE 
> variable. We'll also need to work with RTOS team for the same...
> 
> -- 
> Denys
> 
> 
> > 
> >     
> > 
> >    - Jake
> > 
> >     
> > 
> >    From: Xu, Jianzhong
> >    Sent: Thursday, September 13, 2018 11:45 AM
> >    To: Dmytriyenko, Denys; Stiffler, Jacob
> >    Cc: meta-ti@yoctoproject.org
> >    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to
> >    build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
> >    DSPLIB.
> > 
> >     
> > 
> >    Denys,
> > 
> >     
> > 
> >    Would the following fix the problems you've seen:
> > 
> >     
> > 
> >    COMPATIBLE_MACHINE = "omap-a15|keystone"
> > 
> >     
> > 
> >    This was in DSPLIB recipes before. 
> > 
> >     
> > 
> >    Thanks,
> > 
> >    Jianzhong
> > 
> >     ------------------------------------------------------------------------
> > 
> >    From: Dmytriyenko, Denys
> >    Sent: Thursday, September 13, 2018 11:26:45 AM
> >    To: Stiffler, Jacob
> >    Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
> >    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to
> >    build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
> >    DSPLIB.
> > 
> >     
> > 
> >    On Thu, Sep 13, 2018 at 07:26:12AM -0400, Jacob Stiffler wrote:
> >    >
> >    >
> >    > On 9/12/2018 6:52 PM, Denys Dmytriyenko wrote:
> >    > >Same for dra7xx-evm...
> >    > >
> >    > >
> >    > >On Wed, Sep 12, 2018 at 04:37:48PM -0400, Dmytriyenko, Denys wrote:
> >    > >>And it crashed and burned right away:
> >    > >>
> >    > >>ERROR: Nothing PROVIDES 'dsplib-c66x' (but
> >    /OE/arago-rocko-next-build/sources/meta-arago/meta-arago-extras/recipes-apps/video-analytics-demo/qt-opencv-opencl-opengl-multithreaded_git.bb
> >    DEPENDS on or otherwise requires it)
> >    > >>dsplib-c66x was skipped: incompatible with machine am57xx-hs-evm (not
> >    in COMPATIBLE_MACHINE)
> >    > >>NOTE: Runtime target 'qt-opencv-opencl-opengl-multithreaded-src' is
> >    unbuildable, removing...
> >    > >>
> >    > >>Jake,
> >    > >>
> >    > >>Did you tested it on am57xx-hs-evm?
> >    >
> >    > I had only built for am57xx-evm as there are no machine overrides in
> >    these
> >    > recipes because they are DSP architecture-specific.
> >    >
> >    > Looks like we should change "COMPATIBLE_MACHINE" to, at the very least,
> >    > include what was there before (omap-a15|keystone). But as these are
> >    specific
> >    > to the DSP architecture, should COMPATIBLE_MACHINE even be necessary?
> > 
> >    Either way should be fine. Currently those patches break too many
> >    platforms -
> >    dra7 GP and both am5/dra7 HS.
> > 
> >    > >>Denys
> >    > >>
> >    > >>
> >    > >>>-----Original Message-----
> >    > >>>From: Denys Dmytriyenko [mailto:denys@ti.com]
> >    > >>>Sent: Wednesday, September 12, 2018 4:21 PM
> >    > >>>To: Xu, Jianzhong
> >    > >>>Cc: Stiffler, Jacob; meta-ti@yoctoproject.org
> >    > >>>Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe
> >    to build
> >    > >>>DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
> >    DSPLIB.
> >    > >>>
> >    > >>>Thanks, merged into rocko-next for testing.
> >    > >>>
> >    > >>>There were lots of small non-critical things I had to fix, like
> >    whitespaces,
> >    > >>>indentation, etc. But the biggest one is that you have to follow
> >    OpenEmbedded
> >    > >>>Commit Message Guidelines:
> >    > >>>
> >    > >>>https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
> >    > >>>
> >    > >>>
> >    > >>>On Wed, Sep 12, 2018 at 03:40:42PM -0400, Xu, Jianzhong wrote:
> >    > >>>>    Denys,
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>    You're right. The versioning was inconsistent. Please use
> >    > >>>>    [EXTERNAL,3/3,v2] and newer versions of [EXTERNAL,2/3],
> >    [EXTERNAL,1/3].
> >    > >>>>    The latter two should have had v2 in it. Please see highlights
> >    below.
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>   
> >    +------------------------------------------------------------------------+
> >    > >>>>    |[EXTERNAL,3/3,v2] Added DSPLIB recipe to   |         
> >    |            ||   |
> >    > >>>>    |build DSPLIB from source. Updated         
> >    |2018-09-06|Jianzhong Xu||New|
> >    > >>>>    |includes/ti-paths.inc for MATHLIB and      |         
> >    |            ||   |
> >    > >>>>    |DSPLIB.                                    |         
> >    |            ||   |
> >    > >>>>   
> >    |-------------------------------------------+----------+------------++---|
> >    > >>>>    |[EXTERNAL] Added DSPLIB recipe to build    |         
> >    |            ||   |
> >    > >>>>    |DSPLIB from source. Updated               
> >    |2018-09-06|Jianzhong Xu||New|
> >    > >>>>    |includes/ti-paths.inc for MATHLIB and      |         
> >    |            ||   |
> >    > >>>>    |DSPLIB.                                    |         
> >    |            ||   |
> >    > >>>>   
> >    |-------------------------------------------+----------+------------++---|
> >    > >>>>    |[EXTERNAL,3/3] Added DSPLIB recipe to
> >    build|2018-09-04|Jianzhong
> >    > >>>Xu||New|
> >    > >>>>    |DSPLIB from source.                        |         
> >    |            ||   |
> >    > >>>>   
> >    |-------------------------------------------+----------+------------++---|
> >    > >>>>    |[EXTERNAL,2/3] Added MATHLIB recipe to    
> >    |2018-09-04|Jianzhong
> >    > >>>Xu||New|
> >    > >>>>    |build MATHLIB from source.                 |         
> >    |            ||   |
> >    > >>>>   
> >    |-------------------------------------------+----------+------------++---|
> >    > >>>>    |[EXTERNAL,1/3] Added SWTOOLS which is      |         
> >    |            ||   |
> >    > >>>>    |needed to build processor libs (DSPLIB,   
> >    |2018-09-04|Jianzhong Xu||New|
> >    > >>>>    |MATHLIB, etc) from source.                 |         
> >    |            ||   |
> >    > >>>>   
> >    +------------------------------------------------------------------------+
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>    Thanks,
> >    > >>>>
> >    > >>>>    Jianzhong
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>    -----Original Message-----
> >    > >>>>    From: Dmytriyenko, Denys
> >    > >>>>    Sent: Wednesday, September 12, 2018 3:13 PM
> >    > >>>>    To: Stiffler, Jacob
> >    > >>>>    Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
> >    > >>>>    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB
> >    recipe to
> >    > >>>>    build DSPLIB from source. Updated includes/ti-paths.inc for
> >    MATHLIB and
> >    > >>>>    DSPLIB.
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>    Jake,
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>    I'll give it a look - I assume you want the 3 most recent
> >    patches, I don't
> >    > >>>>
> >    > >>>>    think versioning was consistent...
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>    Denys
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>    On Tue, Sep 11, 2018 at 09:17:49AM -0400, Jacob Stiffler wrote:
> >    > >>>>
> >    > >>>>    > ACK
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>    > Denys,
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>    > Can you apply these patches to the ti2018.03 branch?
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>    > Thank you,
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>    > Jake
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>    > On 9/6/2018 1:46 PM, Jianzhong Xu wrote:
> >    > >>>>
> >    > >>>>    > >Signed-off-by: Jianzhong Xu <xuj@ti.com>
> >    > >>>>
> >    > >>>>    > >---
> >    > >>>>
> >    > >>>>    > >Change from previous version of patch
> >    > >>>>
> >    > >>>>    > >Corrected typo: MATHLIB_C674INSTALL_XXX should have been
> >    > >>>>    MATHLIB_C674_INSTALL_XXX
> >    > >>>>
> >    > >>>>    > >---
> >    > >>>>
> >    > >>>>    > >---
> >    > >>>>
> >    > >>>>    > >  recipes-ti/dsplib/dsplib-c64xp_git.bb    |  9 ++++
> >    > >>>>
> >    > >>>>    > >  recipes-ti/dsplib/dsplib-c66x.inc        | 30 ------------
> >    > >>>>
> >    > >>>>    > >  recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb |  9 ----
> >    > >>>>
> >    > >>>>    > >  recipes-ti/dsplib/dsplib-c66x_git.bb     | 10 ++++
> >    > >>>>
> >    > >>>>    > >  recipes-ti/dsplib/dsplib-c674x_git.bb    |  9 ++++
> >    > >>>>
> >    > >>>>    > >  recipes-ti/dsplib/dsplib.inc             | 79
> >    > >>>>    ++++++++++++++++++++++++++++++++
> >    > >>>>
> >    > >>>>    > >  recipes-ti/includes/ti-paths.inc         |  8 +++-
> >    > >>>>
> >    > >>>>    > >  7 files changed, 114 insertions(+), 40 deletions(-)
> >    > >>>>
> >    > >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c64xp_git.bb
> >    > >>>>
> >    > >>>>    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc
> >    > >>>>
> >    > >>>>    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> >    > >>>>
> >    > >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c66x_git.bb
> >    > >>>>
> >    > >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c674x_git.bb
> >    > >>>>
> >    > >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib.inc
> >    > >>>>
> >    > >>>>    > >
> >    > >>>>
> >    > >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >    > >>>>    b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >    > >>>>
> >    > >>>>    > >new file mode 100644
> >    > >>>>
> >    > >>>>    > >index 0000000..1038d44
> >    > >>>>
> >    > >>>>    > >--- /dev/null
> >    > >>>>
> >    > >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >    > >>>>
> >    > >>>>    > >@@ -0,0 +1,9 @@
> >    > >>>>
> >    > >>>>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
> >    > >>>>
> >    > >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE =
> >    "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
> >    > >>>>
> >    > >>>>    > >+DSPLIB_BUILD_TARGET = "c64Px"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+DEPENDS = ""
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+include dsplib.inc
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c66x.inc
> >    > >>>>    b/recipes-ti/dsplib/dsplib-c66x.inc
> >    > >>>>
> >    > >>>>    > >deleted file mode 100644
> >    > >>>>
> >    > >>>>    > >index 7ff99c2..0000000
> >    > >>>>
> >    > >>>>    > >--- a/recipes-ti/dsplib/dsplib-c66x.inc
> >    > >>>>
> >    > >>>>    > >+++ /dev/null
> >    > >>>>
> >    > >>>>    > >@@ -1,30 +0,0 @@
> >    > >>>>
> >    > >>>>    > >-DESCRIPTION = "DSPLIB contains optimized general-purpose
> >    > >>>>    signal-processing routines for TI DSPs"
> >    > >>>>
> >    > >>>>    > >-HOMEPAGE = "http://www.ti.com/tool/sprc265"
> >    > >>>>
> >    > >>>>    > >-SECTION = "devel"
> >    > >>>>
> >    > >>>>    > >-LICENSE = "BSD-3-Clause"
> >    > >>>>
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-require ../includes/ti-paths.inc
> >    > >>>>
> >    > >>>>    > >-require ../includes/ti-staging.inc
> >    > >>>>
> >    > >>>>    > >-require ../includes/ti-unpack.inc
> >    > >>>>
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-COMPATIBLE_MACHINE = "omap-a15|keystone"
> >    > >>>>
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-SRC_URI =
> >    > >>>>    "http://software-
> >    >
> >    >>>dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=d
> >    > >>>splib"
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-BINFILE = "dsplib_c66x_${PV}_Linux.bin"
> >    > >>>>
> >    > >>>>    > >-TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
> >    > >>>>
> >    > >>>>    > >-TI_BIN_UNPK_CMDS = ""
> >    > >>>>
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-do_install() {
> >    > >>>>
> >    > >>>>    > >-    CP_ARGS="-Prf --preserve=mode,timestamps --no-
> >    > >>>preserve=ownership"
> >    > >>>>    > >-    install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> >    > >>>>
> >    > >>>>    > >-    cp ${CP_ARGS} ${S}/*
> >    ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> >    > >>>>
> >    > >>>>    > >-}
> >    > >>>>
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-ALLOW_EMPTY_${PN} = "1"
> >    > >>>>
> >    > >>>>    > >-FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-INHIBIT_PACKAGE_STRIP = "1"
> >    > >>>>
> >    > >>>>    > >-INHIBIT_SYSROOT_STRIP = "1"
> >    > >>>>
> >    > >>>>    > >-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> >    > >>>>
> >    > >>>>    > >-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 f1273f3..0000000
> >    > >>>>
> >    > >>>>    > >--- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> >    > >>>>
> >    > >>>>    > >+++ /dev/null
> >    > >>>>
> >    > >>>>    > >@@ -1,9 +0,0 @@
> >    > >>>>
> >    > >>>>    > >-require dsplib-c66x.inc
> >    > >>>>
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-PV = "3_4_0_0"
> >    > >>>>
> >    > >>>>    > >-PR = "r1"
> >    > >>>>
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-LIC_FILES_CHKSUM =
> >    > >>>>
> >    >
> >    >>>"file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8
> >    > >>>a628512f47c4bf676a"
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf"
> >    > >>>>
> >    > >>>>    > >-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 0000000..cbc25d0
> >    > >>>>
> >    > >>>>    > >--- /dev/null
> >    > >>>>
> >    > >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c66x_git.bb
> >    > >>>>
> >    > >>>>    > >@@ -0,0 +1,10 @@
> >    > >>>>
> >    > >>>>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
> >    > >>>>
> >    > >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE =
> >    "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
> >    > >>>>
> >    > >>>>    > >+DSPLIB_BUILD_TARGET = "c66x"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+DEPENDS = "mathlib-c66x"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+include dsplib.inc
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c674x_git.bb
> >    > >>>>    b/recipes-ti/dsplib/dsplib-c674x_git.bb
> >    > >>>>
> >    > >>>>    > >new file mode 100644
> >    > >>>>
> >    > >>>>    > >index 0000000..07c6892
> >    > >>>>
> >    > >>>>    > >--- /dev/null
> >    > >>>>
> >    > >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c674x_git.bb
> >    > >>>>
> >    > >>>>    > >@@ -0,0 +1,9 @@
> >    > >>>>
> >    > >>>>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
> >    > >>>>
> >    > >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE =
> >    "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
> >    > >>>>
> >    > >>>>    > >+DSPLIB_BUILD_TARGET = "c674x"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+DEPENDS = "mathlib-c674x"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+include dsplib.inc
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >diff --git a/recipes-ti/dsplib/dsplib.inc
> >    > >>>>    b/recipes-ti/dsplib/dsplib.inc
> >    > >>>>
> >    > >>>>    > >new file mode 100644
> >    > >>>>
> >    > >>>>    > >index 0000000..66fe0fb
> >    > >>>>
> >    > >>>>    > >--- /dev/null
> >    > >>>>
> >    > >>>>    > >+++ b/recipes-ti/dsplib/dsplib.inc
> >    > >>>>
> >    > >>>>    > >@@ -0,0 +1,79 @@
> >    > >>>>
> >    > >>>>    > >+SUMMARY = "DSPLIB contains optimized signal processing
> >    functions for
> >    > >>>>    TI DSPs"
> >    > >>>>
> >    > >>>>    > >+HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
> >    > >>>>
> >    > >>>>    > >+LICENSE = "BSD-3-Clause"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+require ../includes/ti-paths.inc
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+PV = "3_4_0_1"
> >    > >>>>
> >    > >>>>    > >+PR = "r0"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+COMPATIBLE_MACHINE = "am57xx-evm|keystone|c66x|omapl1"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+DEPENDS += "ti-cgt6x-native \
> >    > >>>>
> >    > >>>>    > >+           ti-xdctools-native \
> >    > >>>>
> >    > >>>>    > >+           ti-sysbios \
> >    > >>>>
> >    > >>>>    > >+           doxygen-native \
> >    > >>>>
> >    > >>>>    > >+           zip-native \
> >    > >>>>
> >    > >>>>    > >+           swtools "
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+S = "${WORKDIR}/git"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+SRC_URI =
> >    > >>>>    "git://git.ti.com/ep-processor-
> >    > >>>libraries/dsplib.git;protocol=git;branch=master"
> >    > >>>>    > >+SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+LIC_FILES_CHKSUM =
> >    > >>>>
> >    >
> >    >>>"file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4
> >    > >>>d51d8af75419781591ace190b"
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+export DSPLIB_WORK_DIR="${S}"
> >    > >>>>
> >    > >>>>    > >+export CGTOOLS_INSTALL_DIR  =
> >    > >>>>    "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
> >    > >>>>
> >    > >>>>    > >+export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> >    > >>>>
> >    > >>>>    > >+export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> >    > >>>>
> >    > >>>>    > >+export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
> >    > >>>>
> >    > >>>>    > >+export SWTOOLS_PATH =
> >    "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
> >    > >>>>
> >    > >>>>    > >+export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
> >    > >>>>
> >    > >>>>    > >+export INCDIR="${MATHLIB_INSTALL_DIR}/"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+PATH_append = ":${XDC_INSTALL_DIR}"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>+XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBI
> >    > >>>OS_INSTALL_DIR}/packages;"
> >    > >>>>    >
> >    > >>>>
> >    > >>>>+XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_
> >    > >>>WORK_DIR};"
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+export XDCPATH
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+do_compile() {
> >    > >>>>
> >    > >>>>    > >+       cd ${DSPLIB_WORK_DIR}/ti/dsplib;
> >    > >>>>
> >    > >>>>    > >+       xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle"
> >    XDCOPTIONS="-
> >    > >>>v"
> >    > >>>>    > >+}
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+do_install() {
> >    > >>>>
> >    > >>>>    > >+       install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+       find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip
> >    -o {} -d
> >    > >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
> >    > >>>>
> >    > >>>>    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/*
> >    > >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >    > >>>>
> >    > >>>>    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata
> >    > >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >    > >>>>
> >    > >>>>    > >+       rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
> >    > >>>>
> >    > >>>>    > >+}
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+inherit deploy
> >    > >>>>
> >    > >>>>    > >+addtask deploy before do_build after do_install
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+do_deploy() {
> >    > >>>>
> >    > >>>>    > >+       install -d ${DEPLOYDIR}
> >    > >>>>
> >    > >>>>    > >+       # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >    > >>>>
> >    > >>>>    > >+       # and place the zip file in ${DEPLOYDIR}
> >    > >>>>
> >    > >>>>    > >+       mkdir ./${DSPLIB_PACKAGE_NAME}
> >    > >>>>
> >    > >>>>    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/*
> >    > >>>>    ./${DSPLIB_PACKAGE_NAME}
> >    > >>>>
> >    > >>>>    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata
> >    > >>>>    ./${DSPLIB_PACKAGE_NAME}
> >    > >>>>
> >    > >>>>    > >+       zip -9 -y -r -q
> >    ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip
> >    > >>>>    ./${DSPLIB_PACKAGE_NAME}
> >    > >>>>
> >    > >>>>    > >+       rm -r ./${DSPLIB_PACKAGE_NAME}
> >    > >>>>
> >    > >>>>    > >+}
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+PACKAGE_ARCH = "${MACHINE_ARCH}"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+ALLOW_EMPTY_${PN} = "1"
> >    > >>>>
> >    > >>>>    > >+FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+INSANE_SKIP_${PN}-dev = "arch"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >diff --git a/recipes-ti/includes/ti-paths.inc
> >    > >>>>    b/recipes-ti/includes/ti-paths.inc
> >    > >>>>
> >    > >>>>    > >index 4f99d5e..8740b6a 100644
> >    > >>>>
> >    > >>>>    > >--- a/recipes-ti/includes/ti-paths.inc
> >    > >>>>
> >    > >>>>    > >+++ b/recipes-ti/includes/ti-paths.inc
> >    > >>>>
> >    > >>>>    > >@@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE       =
> >    > >>>>    "${installdir}/ti-dmai-tree"
> >    > >>>>
> >    > >>>>    > >  export DSP_BENCHMARK_INSTALL_DIR_RECIPE =
> >    > >>>>    "${installdir}/ti-dsp-benchmark-tree"
> >    > >>>>
> >    > >>>>    > >  export DSPLIB_C64P_INSTALL_DIR_RECIPE =
> >    > >>>>    "${installdir}/ti-dsplib-c64p-tree"
> >    > >>>>
> >    > >>>>    > >  export DSPLIB_C674_INSTALL_DIR_RECIPE =
> >    > >>>>    "${installdir}/ti-dsplib-c674x-tree"
> >    > >>>>
> >    > >>>>    > >+export DSPLIB_C66_INSTALL_DIR_RECIPE  =
> >    > >>>>    "${installdir}/ti-dsplib-c66x-tree"
> >    > >>>>
> >    > >>>>    > >  export DSPLIB_INSTALL_DIR_RECIPE     =
> >    "${installdir}/ti-dsplib-tree"
> >    > >>>>
> >    > >>>>    > >  export DVSDK_DEMOS_INSTALL_DIR_RECIPE=
> >    > >>>>    "${installdir}/ti-dvsdk-demos-tree"
> >    > >>>>
> >    > >>>>    > >  export DVTB_INSTALL_DIR_RECIPE       =
> >    "${installdir}/ti-dvtb-tree"
> >    > >>>>
> >    > >>>>    > >@@ -39,6 +40,7 @@ export OSAL_INSTALL_DIR_RECIPE       =
> >    > >>>>    "${installdir}/ti-osal-tree"
> >    > >>>>
> >    > >>>>    > >  export RTFS_INSTALL_DIR_RECIPE       =
> >    "${installdir}/ti-rtfs-tree"
> >    > >>>>
> >    > >>>>    > >  export SYSBIOS_INSTALL_DIR_RECIPE    =
> >    > >>>>    "${installdir}/ti-sysbios-tree"
> >    > >>>>
> >    > >>>>    > >  export SYSLINK_INSTALL_DIR_RECIPE    =
> >    > >>>>    "${installdir}/ti-syslink-tree"
> >    > >>>>
> >    > >>>>    > >+export SWTOOLS_INSTALL_DIR_RECIPE    =
> >    "${installdir}/ti-swtools-tree"
> >    > >>>>
> >    > >>>>    > >  export UIA_INSTALL_DIR_RECIPE        =
> >    "${installdir}/ti-uia-tree"
> >    > >>>>
> >    > >>>>    > >  export VICPLIB_INSTALL_DIR_RECIPE    =
> >    > >>>>    "${installdir}/ti-vicplib-tree"
> >    > >>>>
> >    > >>>>    > >  export XDAIS_INSTALL_DIR_RECIPE      =
> >    "${installdir}/ti-xdais-tree"
> >    > >>>>
> >    > >>>>    > >@@ -48,8 +50,8 @@ export OSAL_INSTALL_DIR_RECIPE       =
> >    > >>>>    "${installdir}/ti-osal-tree"
> >    > >>>>
> >    > >>>>    > >  export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    =
> >    > >>>>    "${installdir}/ti-cgt-arm"
> >    > >>>>
> >    > >>>>    > >  export GCC_ARM_NONE_TOOLCHAIN_RECIPE      =
> >    > >>>>    "${installdir}/gcc-arm-none-eabi"
> >    > >>>>
> >    > >>>>    > >  export TI_CGT_PRU_INSTALL_DIR_RECIPE      =
> >    "${installdir}/cgt-pru"
> >    > >>>>
> >    > >>>>    > >-export DSPLIB_C66_INSTALL_DIR_RECIPE      =
> >    > >>>>    "${installdir}/ti-dsplib-c66x-tree"
> >    > >>>>
> >    > >>>>    > >  export MATHLIB_C66_INSTALL_DIR_RECIPE     =
> >    > >>>>    "${installdir}/ti-mathlib-c66x-tree"
> >    > >>>>
> >    > >>>>    > >+export MATHLIB_C674_INSTALL_DIR_RECIPE    =
> >    > >>>>    "${installdir}/ti-mathlib-c674x-tree"
> >    > >>>>
> >    > >>>>    > >  export IMGLIB_C66_INSTALL_DIR_RECIPE      =
> >    > >>>>    "${installdir}/ti-imglib-c66x-tree"
> >    > >>>>
> >    > >>>>    > >  export VLIB_C66_INSTALL_DIR_RECIPE        =
> >    > >>>>    "${installdir}/ti-vlib-c66x-tree"
> >    > >>>>
> >    > >>>>    > >  export CG_XML_INSTALL_DIR_RECIPE     =
> >    "${installdir}/ti-cg-xml-tree"
> >    > >>>>
> >    > >>>>    > >@@ -95,7 +97,11 @@ export OSAL_INSTALL_DIR       =
> >    > >>>>    "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}
> >    > >>>>
> >    > >>>>    > >  export M4_TOOLCHAIN_INSTALL_DIR    =
> >    > >>>>    "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >  export GCC_ARM_NONE_TOOLCHAIN      =
> >    > >>>>    "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
> >    > >>>>
> >    > >>>>    > >  export TI_CGT_PRU_INSTALL_DIR      =
> >    > >>>>    "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >+export SWTOOLS_INSTALL_DIR         =
> >    > >>>>    "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >+export DSPLIB_C64P_INSTALL_DIR     =
> >    > >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >+export DSPLIB_C674_INSTALL_DIR     =
> >    > >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >  export DSPLIB_C66_INSTALL_DIR      =
> >    > >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >+export MATHLIB_C674_INSTALL_DIR    =
> >    > >>>>    "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >  export MATHLIB_C66_INSTALL_DIR     =
> >    > >>>>    "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >  export IMGLIB_C66_INSTALL_DIR      =
> >    > >>>>    "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >  export VLIB_C66_INSTALL_DIR        =
> >    > >>>>    "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>    > --
> >    > >>>>
> >    > >>>>    > _______________________________________________
> >    > >>>>
> >    > >>>>    > meta-ti mailing list
> >    > >>>>
> >    > >>>>    > meta-ti@yoctoproject.org
> >    > >>>>
> >    > >>>>    > https://lists.yoctoproject.org/listinfo/meta-ti
> >    >
> -- 
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
  2018-09-13 18:35                       ` Denys Dmytriyenko
@ 2018-09-13 21:20                         ` Xu, Jianzhong
  2018-09-13 21:38                           ` Denys Dmytriyenko
  0 siblings, 1 reply; 19+ messages in thread
From: Xu, Jianzhong @ 2018-09-13 21:20 UTC (permalink / raw)
  To: Dmytriyenko, Denys, Stiffler, Jacob; +Cc: meta-ti

[-- Attachment #1: Type: text/plain, Size: 30592 bytes --]

Denys,


Thanks for the cleaned up patches. I applied those patches and removed COMPATIBLE_MACHINE and resubmitted.


Regards,

Jianzhong


________________________________
From: meta-ti-bounces@yoctoproject.org <meta-ti-bounces@yoctoproject.org> on behalf of Dmytriyenko, Denys
Sent: Thursday, September 13, 2018 2:35 PM
To: Stiffler, Jacob
Cc: meta-ti@yoctoproject.org
Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.

Jake, Jianzhong,

I have re-posted the cleaned up patches I had in rocko-next. Please use those
for fixing the COMPATIBLE_MACHINE issue. For now I'll drop them, as I need
rocko-next freed up.

Denys


On Thu, Sep 13, 2018 at 12:34:40PM -0400, Denys Dmytriyenko wrote:
> On Thu, Sep 13, 2018 at 12:01:32PM -0400, Stiffler, Jacob wrote:
> >    That will work as c66x is a subset of the keystone SOC family.
> >
> >
> >
> >    I just don’t think that specifying COMPATIBLE_MACHINE is necessary as
> >    these packages are independent of the architecture that is running Linux.
>
> Agree.
>
>
> >    And due to this, we should also remove the ‘PACKAGE_ARCH =
> >    ${MACHINE_ARCH}”’ as there is no difference between the resulting packages
> >    for any machine.
>
> Also agree.
>
>
> >    IMHO, COMPATIBLE_MACHINE has been overused and it creates more problems
> >    that it solves.
>
> I've been saying this for years! Still, the response from developers was that
> they only tested it on one platform, hence it's only compatible with this one
> platform...
>
>
> Jake,
>
> Please work with your team to explain this and stop abusing COMPATIBLE_MACHINE
> variable. We'll also need to work with RTOS team for the same...
>
> --
> Denys
>
>
> >
> >
> >
> >    - Jake
> >
> >
> >
> >    From: Xu, Jianzhong
> >    Sent: Thursday, September 13, 2018 11:45 AM
> >    To: Dmytriyenko, Denys; Stiffler, Jacob
> >    Cc: meta-ti@yoctoproject.org
> >    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to
> >    build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
> >    DSPLIB.
> >
> >
> >
> >    Denys,
> >
> >
> >
> >    Would the following fix the problems you've seen:
> >
> >
> >
> >    COMPATIBLE_MACHINE = "omap-a15|keystone"
> >
> >
> >
> >    This was in DSPLIB recipes before.
> >
> >
> >
> >    Thanks,
> >
> >    Jianzhong
> >
> >     ------------------------------------------------------------------------
> >
> >    From: Dmytriyenko, Denys
> >    Sent: Thursday, September 13, 2018 11:26:45 AM
> >    To: Stiffler, Jacob
> >    Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
> >    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to
> >    build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
> >    DSPLIB.
> >
> >
> >
> >    On Thu, Sep 13, 2018 at 07:26:12AM -0400, Jacob Stiffler wrote:
> >    >
> >    >
> >    > On 9/12/2018 6:52 PM, Denys Dmytriyenko wrote:
> >    > >Same for dra7xx-evm...
> >    > >
> >    > >
> >    > >On Wed, Sep 12, 2018 at 04:37:48PM -0400, Dmytriyenko, Denys wrote:
> >    > >>And it crashed and burned right away:
> >    > >>
> >    > >>ERROR: Nothing PROVIDES 'dsplib-c66x' (but
> >    /OE/arago-rocko-next-build/sources/meta-arago/meta-arago-extras/recipes-apps/video-analytics-demo/qt-opencv-opencl-opengl-multithreaded_git.bb
> >    DEPENDS on or otherwise requires it)
> >    > >>dsplib-c66x was skipped: incompatible with machine am57xx-hs-evm (not
> >    in COMPATIBLE_MACHINE)
> >    > >>NOTE: Runtime target 'qt-opencv-opencl-opengl-multithreaded-src' is
> >    unbuildable, removing...
> >    > >>
> >    > >>Jake,
> >    > >>
> >    > >>Did you tested it on am57xx-hs-evm?
> >    >
> >    > I had only built for am57xx-evm as there are no machine overrides in
> >    these
> >    > recipes because they are DSP architecture-specific.
> >    >
> >    > Looks like we should change "COMPATIBLE_MACHINE" to, at the very least,
> >    > include what was there before (omap-a15|keystone). But as these are
> >    specific
> >    > to the DSP architecture, should COMPATIBLE_MACHINE even be necessary?
> >
> >    Either way should be fine. Currently those patches break too many
> >    platforms -
> >    dra7 GP and both am5/dra7 HS.
> >
> >    > >>Denys
> >    > >>
> >    > >>
> >    > >>>-----Original Message-----
> >    > >>>From: Denys Dmytriyenko [mailto:denys@ti.com]
> >    > >>>Sent: Wednesday, September 12, 2018 4:21 PM
> >    > >>>To: Xu, Jianzhong
> >    > >>>Cc: Stiffler, Jacob; meta-ti@yoctoproject.org
> >    > >>>Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe
> >    to build
> >    > >>>DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
> >    DSPLIB.
> >    > >>>
> >    > >>>Thanks, merged into rocko-next for testing.
> >    > >>>
> >    > >>>There were lots of small non-critical things I had to fix, like
> >    whitespaces,
> >    > >>>indentation, etc. But the biggest one is that you have to follow
> >    OpenEmbedded
> >    > >>>Commit Message Guidelines:
> >    > >>>
> >    > >>>https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
> >    > >>>
> >    > >>>
> >    > >>>On Wed, Sep 12, 2018 at 03:40:42PM -0400, Xu, Jianzhong wrote:
> >    > >>>>    Denys,
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>    You're right. The versioning was inconsistent. Please use
> >    > >>>>    [EXTERNAL,3/3,v2] and newer versions of [EXTERNAL,2/3],
> >    [EXTERNAL,1/3].
> >    > >>>>    The latter two should have had v2 in it. Please see highlights
> >    below.
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    +------------------------------------------------------------------------+
> >    > >>>>    |[EXTERNAL,3/3,v2] Added DSPLIB recipe to   |
> >    |            ||   |
> >    > >>>>    |build DSPLIB from source. Updated
> >    |2018-09-06|Jianzhong Xu||New|
> >    > >>>>    |includes/ti-paths.inc for MATHLIB and      |
> >    |            ||   |
> >    > >>>>    |DSPLIB.                                    |
> >    |            ||   |
> >    > >>>>
> >    |-------------------------------------------+----------+------------++---|
> >    > >>>>    |[EXTERNAL] Added DSPLIB recipe to build    |
> >    |            ||   |
> >    > >>>>    |DSPLIB from source. Updated
> >    |2018-09-06|Jianzhong Xu||New|
> >    > >>>>    |includes/ti-paths.inc for MATHLIB and      |
> >    |            ||   |
> >    > >>>>    |DSPLIB.                                    |
> >    |            ||   |
> >    > >>>>
> >    |-------------------------------------------+----------+------------++---|
> >    > >>>>    |[EXTERNAL,3/3] Added DSPLIB recipe to
> >    build|2018-09-04|Jianzhong
> >    > >>>Xu||New|
> >    > >>>>    |DSPLIB from source.                        |
> >    |            ||   |
> >    > >>>>
> >    |-------------------------------------------+----------+------------++---|
> >    > >>>>    |[EXTERNAL,2/3] Added MATHLIB recipe to
> >    |2018-09-04|Jianzhong
> >    > >>>Xu||New|
> >    > >>>>    |build MATHLIB from source.                 |
> >    |            ||   |
> >    > >>>>
> >    |-------------------------------------------+----------+------------++---|
> >    > >>>>    |[EXTERNAL,1/3] Added SWTOOLS which is      |
> >    |            ||   |
> >    > >>>>    |needed to build processor libs (DSPLIB,
> >    |2018-09-04|Jianzhong Xu||New|
> >    > >>>>    |MATHLIB, etc) from source.                 |
> >    |            ||   |
> >    > >>>>
> >    +------------------------------------------------------------------------+
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>    Thanks,
> >    > >>>>
> >    > >>>>    Jianzhong
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>    -----Original Message-----
> >    > >>>>    From: Dmytriyenko, Denys
> >    > >>>>    Sent: Wednesday, September 12, 2018 3:13 PM
> >    > >>>>    To: Stiffler, Jacob
> >    > >>>>    Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
> >    > >>>>    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB
> >    recipe to
> >    > >>>>    build DSPLIB from source. Updated includes/ti-paths.inc for
> >    MATHLIB and
> >    > >>>>    DSPLIB.
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>    Jake,
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>    I'll give it a look - I assume you want the 3 most recent
> >    patches, I don't
> >    > >>>>
> >    > >>>>    think versioning was consistent...
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>    Denys
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>
> >    > >>>>    On Tue, Sep 11, 2018 at 09:17:49AM -0400, Jacob Stiffler wrote:
> >    > >>>>
> >    > >>>>    > ACK
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>    > Denys,
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>    > Can you apply these patches to the ti2018.03 branch?
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>    > Thank you,
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>    > Jake
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>    > On 9/6/2018 1:46 PM, Jianzhong Xu wrote:
> >    > >>>>
> >    > >>>>    > >Signed-off-by: Jianzhong Xu <xuj@ti.com>
> >    > >>>>
> >    > >>>>    > >---
> >    > >>>>
> >    > >>>>    > >Change from previous version of patch
> >    > >>>>
> >    > >>>>    > >Corrected typo: MATHLIB_C674INSTALL_XXX should have been
> >    > >>>>    MATHLIB_C674_INSTALL_XXX
> >    > >>>>
> >    > >>>>    > >---
> >    > >>>>
> >    > >>>>    > >---
> >    > >>>>
> >    > >>>>    > >  recipes-ti/dsplib/dsplib-c64xp_git.bb    |  9 ++++
> >    > >>>>
> >    > >>>>    > >  recipes-ti/dsplib/dsplib-c66x.inc        | 30 ------------
> >    > >>>>
> >    > >>>>    > >  recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb |  9 ----
> >    > >>>>
> >    > >>>>    > >  recipes-ti/dsplib/dsplib-c66x_git.bb     | 10 ++++
> >    > >>>>
> >    > >>>>    > >  recipes-ti/dsplib/dsplib-c674x_git.bb    |  9 ++++
> >    > >>>>
> >    > >>>>    > >  recipes-ti/dsplib/dsplib.inc             | 79
> >    > >>>>    ++++++++++++++++++++++++++++++++
> >    > >>>>
> >    > >>>>    > >  recipes-ti/includes/ti-paths.inc         |  8 +++-
> >    > >>>>
> >    > >>>>    > >  7 files changed, 114 insertions(+), 40 deletions(-)
> >    > >>>>
> >    > >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c64xp_git.bb
> >    > >>>>
> >    > >>>>    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc
> >    > >>>>
> >    > >>>>    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> >    > >>>>
> >    > >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c66x_git.bb
> >    > >>>>
> >    > >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib-c674x_git.bb
> >    > >>>>
> >    > >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib.inc
> >    > >>>>
> >    > >>>>    > >
> >    > >>>>
> >    > >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >    > >>>>    b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >    > >>>>
> >    > >>>>    > >new file mode 100644
> >    > >>>>
> >    > >>>>    > >index 0000000..1038d44
> >    > >>>>
> >    > >>>>    > >--- /dev/null
> >    > >>>>
> >    > >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c64xp_git.bb
> >    > >>>>
> >    > >>>>    > >@@ -0,0 +1,9 @@
> >    > >>>>
> >    > >>>>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
> >    > >>>>
> >    > >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE =
> >    "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
> >    > >>>>
> >    > >>>>    > >+DSPLIB_BUILD_TARGET = "c64Px"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+DEPENDS = ""
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+include dsplib.inc
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c66x.inc
> >    > >>>>    b/recipes-ti/dsplib/dsplib-c66x.inc
> >    > >>>>
> >    > >>>>    > >deleted file mode 100644
> >    > >>>>
> >    > >>>>    > >index 7ff99c2..0000000
> >    > >>>>
> >    > >>>>    > >--- a/recipes-ti/dsplib/dsplib-c66x.inc
> >    > >>>>
> >    > >>>>    > >+++ /dev/null
> >    > >>>>
> >    > >>>>    > >@@ -1,30 +0,0 @@
> >    > >>>>
> >    > >>>>    > >-DESCRIPTION = "DSPLIB contains optimized general-purpose
> >    > >>>>    signal-processing routines for TI DSPs"
> >    > >>>>
> >    > >>>>    > >-HOMEPAGE = "http://www.ti.com/tool/sprc265"
> >    > >>>>
> >    > >>>>    > >-SECTION = "devel"
> >    > >>>>
> >    > >>>>    > >-LICENSE = "BSD-3-Clause"
> >    > >>>>
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-require ../includes/ti-paths.inc
> >    > >>>>
> >    > >>>>    > >-require ../includes/ti-staging.inc
> >    > >>>>
> >    > >>>>    > >-require ../includes/ti-unpack.inc
> >    > >>>>
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-COMPATIBLE_MACHINE = "omap-a15|keystone"
> >    > >>>>
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-SRC_URI =
> >    > >>>>    "http://software-
> >    >
> >    >>>dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=d
> >    > >>>splib"
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-BINFILE = "dsplib_c66x_${PV}_Linux.bin"
> >    > >>>>
> >    > >>>>    > >-TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
> >    > >>>>
> >    > >>>>    > >-TI_BIN_UNPK_CMDS = ""
> >    > >>>>
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-do_install() {
> >    > >>>>
> >    > >>>>    > >-    CP_ARGS="-Prf --preserve=mode,timestamps --no-
> >    > >>>preserve=ownership"
> >    > >>>>    > >-    install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> >    > >>>>
> >    > >>>>    > >-    cp ${CP_ARGS} ${S}/*
> >    ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
> >    > >>>>
> >    > >>>>    > >-}
> >    > >>>>
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-ALLOW_EMPTY_${PN} = "1"
> >    > >>>>
> >    > >>>>    > >-FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-INHIBIT_PACKAGE_STRIP = "1"
> >    > >>>>
> >    > >>>>    > >-INHIBIT_SYSROOT_STRIP = "1"
> >    > >>>>
> >    > >>>>    > >-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> >    > >>>>
> >    > >>>>    > >-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 f1273f3..0000000
> >    > >>>>
> >    > >>>>    > >--- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
> >    > >>>>
> >    > >>>>    > >+++ /dev/null
> >    > >>>>
> >    > >>>>    > >@@ -1,9 +0,0 @@
> >    > >>>>
> >    > >>>>    > >-require dsplib-c66x.inc
> >    > >>>>
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-PV = "3_4_0_0"
> >    > >>>>
> >    > >>>>    > >-PR = "r1"
> >    > >>>>
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-LIC_FILES_CHKSUM =
> >    > >>>>
> >    >
> >    >>>"file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8
> >    > >>>a628512f47c4bf676a"
> >    > >>>>    > >-
> >    > >>>>
> >    > >>>>    > >-SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf"
> >    > >>>>
> >    > >>>>    > >-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 0000000..cbc25d0
> >    > >>>>
> >    > >>>>    > >--- /dev/null
> >    > >>>>
> >    > >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c66x_git.bb
> >    > >>>>
> >    > >>>>    > >@@ -0,0 +1,10 @@
> >    > >>>>
> >    > >>>>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
> >    > >>>>
> >    > >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE =
> >    "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
> >    > >>>>
> >    > >>>>    > >+DSPLIB_BUILD_TARGET = "c66x"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+DEPENDS = "mathlib-c66x"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+include dsplib.inc
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c674x_git.bb
> >    > >>>>    b/recipes-ti/dsplib/dsplib-c674x_git.bb
> >    > >>>>
> >    > >>>>    > >new file mode 100644
> >    > >>>>
> >    > >>>>    > >index 0000000..07c6892
> >    > >>>>
> >    > >>>>    > >--- /dev/null
> >    > >>>>
> >    > >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c674x_git.bb
> >    > >>>>
> >    > >>>>    > >@@ -0,0 +1,9 @@
> >    > >>>>
> >    > >>>>    > >+MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
> >    > >>>>
> >    > >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE =
> >    "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
> >    > >>>>
> >    > >>>>    > >+DSPLIB_BUILD_TARGET = "c674x"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+DEPENDS = "mathlib-c674x"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+include dsplib.inc
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >diff --git a/recipes-ti/dsplib/dsplib.inc
> >    > >>>>    b/recipes-ti/dsplib/dsplib.inc
> >    > >>>>
> >    > >>>>    > >new file mode 100644
> >    > >>>>
> >    > >>>>    > >index 0000000..66fe0fb
> >    > >>>>
> >    > >>>>    > >--- /dev/null
> >    > >>>>
> >    > >>>>    > >+++ b/recipes-ti/dsplib/dsplib.inc
> >    > >>>>
> >    > >>>>    > >@@ -0,0 +1,79 @@
> >    > >>>>
> >    > >>>>    > >+SUMMARY = "DSPLIB contains optimized signal processing
> >    functions for
> >    > >>>>    TI DSPs"
> >    > >>>>
> >    > >>>>    > >+HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
> >    > >>>>
> >    > >>>>    > >+LICENSE = "BSD-3-Clause"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+require ../includes/ti-paths.inc
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+PV = "3_4_0_1"
> >    > >>>>
> >    > >>>>    > >+PR = "r0"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+COMPATIBLE_MACHINE = "am57xx-evm|keystone|c66x|omapl1"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+DEPENDS += "ti-cgt6x-native \
> >    > >>>>
> >    > >>>>    > >+           ti-xdctools-native \
> >    > >>>>
> >    > >>>>    > >+           ti-sysbios \
> >    > >>>>
> >    > >>>>    > >+           doxygen-native \
> >    > >>>>
> >    > >>>>    > >+           zip-native \
> >    > >>>>
> >    > >>>>    > >+           swtools "
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+S = "${WORKDIR}/git"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+SRC_URI =
> >    > >>>>    "git://git.ti.com/ep-processor-
> >    > >>>libraries/dsplib.git;protocol=git;branch=master"
> >    > >>>>    > >+SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+LIC_FILES_CHKSUM =
> >    > >>>>
> >    >
> >    >>>"file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4
> >    > >>>d51d8af75419781591ace190b"
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+export DSPLIB_WORK_DIR="${S}"
> >    > >>>>
> >    > >>>>    > >+export CGTOOLS_INSTALL_DIR  =
> >    > >>>>    "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
> >    > >>>>
> >    > >>>>    > >+export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> >    > >>>>
> >    > >>>>    > >+export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
> >    > >>>>
> >    > >>>>    > >+export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
> >    > >>>>
> >    > >>>>    > >+export SWTOOLS_PATH =
> >    "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
> >    > >>>>
> >    > >>>>    > >+export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
> >    > >>>>
> >    > >>>>    > >+export INCDIR="${MATHLIB_INSTALL_DIR}/"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+PATH_append = ":${XDC_INSTALL_DIR}"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>+XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBI
> >    > >>>OS_INSTALL_DIR}/packages;"
> >    > >>>>    >
> >    > >>>>
> >    > >>>>+XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_
> >    > >>>WORK_DIR};"
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+export XDCPATH
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+do_compile() {
> >    > >>>>
> >    > >>>>    > >+       cd ${DSPLIB_WORK_DIR}/ti/dsplib;
> >    > >>>>
> >    > >>>>    > >+       xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle"
> >    XDCOPTIONS="-
> >    > >>>v"
> >    > >>>>    > >+}
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+do_install() {
> >    > >>>>
> >    > >>>>    > >+       install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+       find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip
> >    -o {} -d
> >    > >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
> >    > >>>>
> >    > >>>>    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/*
> >    > >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >    > >>>>
> >    > >>>>    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata
> >    > >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >    > >>>>
> >    > >>>>    > >+       rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
> >    > >>>>
> >    > >>>>    > >+}
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+inherit deploy
> >    > >>>>
> >    > >>>>    > >+addtask deploy before do_build after do_install
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+do_deploy() {
> >    > >>>>
> >    > >>>>    > >+       install -d ${DEPLOYDIR}
> >    > >>>>
> >    > >>>>    > >+       # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
> >    > >>>>
> >    > >>>>    > >+       # and place the zip file in ${DEPLOYDIR}
> >    > >>>>
> >    > >>>>    > >+       mkdir ./${DSPLIB_PACKAGE_NAME}
> >    > >>>>
> >    > >>>>    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/*
> >    > >>>>    ./${DSPLIB_PACKAGE_NAME}
> >    > >>>>
> >    > >>>>    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata
> >    > >>>>    ./${DSPLIB_PACKAGE_NAME}
> >    > >>>>
> >    > >>>>    > >+       zip -9 -y -r -q
> >    ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip
> >    > >>>>    ./${DSPLIB_PACKAGE_NAME}
> >    > >>>>
> >    > >>>>    > >+       rm -r ./${DSPLIB_PACKAGE_NAME}
> >    > >>>>
> >    > >>>>    > >+}
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+PACKAGE_ARCH = "${MACHINE_ARCH}"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+ALLOW_EMPTY_${PN} = "1"
> >    > >>>>
> >    > >>>>    > >+FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >+INSANE_SKIP_${PN}-dev = "arch"
> >    > >>>>
> >    > >>>>    > >+
> >    > >>>>
> >    > >>>>    > >diff --git a/recipes-ti/includes/ti-paths.inc
> >    > >>>>    b/recipes-ti/includes/ti-paths.inc
> >    > >>>>
> >    > >>>>    > >index 4f99d5e..8740b6a 100644
> >    > >>>>
> >    > >>>>    > >--- a/recipes-ti/includes/ti-paths.inc
> >    > >>>>
> >    > >>>>    > >+++ b/recipes-ti/includes/ti-paths.inc
> >    > >>>>
> >    > >>>>    > >@@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE       =
> >    > >>>>    "${installdir}/ti-dmai-tree"
> >    > >>>>
> >    > >>>>    > >  export DSP_BENCHMARK_INSTALL_DIR_RECIPE =
> >    > >>>>    "${installdir}/ti-dsp-benchmark-tree"
> >    > >>>>
> >    > >>>>    > >  export DSPLIB_C64P_INSTALL_DIR_RECIPE =
> >    > >>>>    "${installdir}/ti-dsplib-c64p-tree"
> >    > >>>>
> >    > >>>>    > >  export DSPLIB_C674_INSTALL_DIR_RECIPE =
> >    > >>>>    "${installdir}/ti-dsplib-c674x-tree"
> >    > >>>>
> >    > >>>>    > >+export DSPLIB_C66_INSTALL_DIR_RECIPE  =
> >    > >>>>    "${installdir}/ti-dsplib-c66x-tree"
> >    > >>>>
> >    > >>>>    > >  export DSPLIB_INSTALL_DIR_RECIPE     =
> >    "${installdir}/ti-dsplib-tree"
> >    > >>>>
> >    > >>>>    > >  export DVSDK_DEMOS_INSTALL_DIR_RECIPE=
> >    > >>>>    "${installdir}/ti-dvsdk-demos-tree"
> >    > >>>>
> >    > >>>>    > >  export DVTB_INSTALL_DIR_RECIPE       =
> >    "${installdir}/ti-dvtb-tree"
> >    > >>>>
> >    > >>>>    > >@@ -39,6 +40,7 @@ export OSAL_INSTALL_DIR_RECIPE       =
> >    > >>>>    "${installdir}/ti-osal-tree"
> >    > >>>>
> >    > >>>>    > >  export RTFS_INSTALL_DIR_RECIPE       =
> >    "${installdir}/ti-rtfs-tree"
> >    > >>>>
> >    > >>>>    > >  export SYSBIOS_INSTALL_DIR_RECIPE    =
> >    > >>>>    "${installdir}/ti-sysbios-tree"
> >    > >>>>
> >    > >>>>    > >  export SYSLINK_INSTALL_DIR_RECIPE    =
> >    > >>>>    "${installdir}/ti-syslink-tree"
> >    > >>>>
> >    > >>>>    > >+export SWTOOLS_INSTALL_DIR_RECIPE    =
> >    "${installdir}/ti-swtools-tree"
> >    > >>>>
> >    > >>>>    > >  export UIA_INSTALL_DIR_RECIPE        =
> >    "${installdir}/ti-uia-tree"
> >    > >>>>
> >    > >>>>    > >  export VICPLIB_INSTALL_DIR_RECIPE    =
> >    > >>>>    "${installdir}/ti-vicplib-tree"
> >    > >>>>
> >    > >>>>    > >  export XDAIS_INSTALL_DIR_RECIPE      =
> >    "${installdir}/ti-xdais-tree"
> >    > >>>>
> >    > >>>>    > >@@ -48,8 +50,8 @@ export OSAL_INSTALL_DIR_RECIPE       =
> >    > >>>>    "${installdir}/ti-osal-tree"
> >    > >>>>
> >    > >>>>    > >  export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    =
> >    > >>>>    "${installdir}/ti-cgt-arm"
> >    > >>>>
> >    > >>>>    > >  export GCC_ARM_NONE_TOOLCHAIN_RECIPE      =
> >    > >>>>    "${installdir}/gcc-arm-none-eabi"
> >    > >>>>
> >    > >>>>    > >  export TI_CGT_PRU_INSTALL_DIR_RECIPE      =
> >    "${installdir}/cgt-pru"
> >    > >>>>
> >    > >>>>    > >-export DSPLIB_C66_INSTALL_DIR_RECIPE      =
> >    > >>>>    "${installdir}/ti-dsplib-c66x-tree"
> >    > >>>>
> >    > >>>>    > >  export MATHLIB_C66_INSTALL_DIR_RECIPE     =
> >    > >>>>    "${installdir}/ti-mathlib-c66x-tree"
> >    > >>>>
> >    > >>>>    > >+export MATHLIB_C674_INSTALL_DIR_RECIPE    =
> >    > >>>>    "${installdir}/ti-mathlib-c674x-tree"
> >    > >>>>
> >    > >>>>    > >  export IMGLIB_C66_INSTALL_DIR_RECIPE      =
> >    > >>>>    "${installdir}/ti-imglib-c66x-tree"
> >    > >>>>
> >    > >>>>    > >  export VLIB_C66_INSTALL_DIR_RECIPE        =
> >    > >>>>    "${installdir}/ti-vlib-c66x-tree"
> >    > >>>>
> >    > >>>>    > >  export CG_XML_INSTALL_DIR_RECIPE     =
> >    "${installdir}/ti-cg-xml-tree"
> >    > >>>>
> >    > >>>>    > >@@ -95,7 +97,11 @@ export OSAL_INSTALL_DIR       =
> >    > >>>>    "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}
> >    > >>>>
> >    > >>>>    > >  export M4_TOOLCHAIN_INSTALL_DIR    =
> >    > >>>>    "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >  export GCC_ARM_NONE_TOOLCHAIN      =
> >    > >>>>    "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
> >    > >>>>
> >    > >>>>    > >  export TI_CGT_PRU_INSTALL_DIR      =
> >    > >>>>    "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >+export SWTOOLS_INSTALL_DIR         =
> >    > >>>>    "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >+export DSPLIB_C64P_INSTALL_DIR     =
> >    > >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >+export DSPLIB_C674_INSTALL_DIR     =
> >    > >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >  export DSPLIB_C66_INSTALL_DIR      =
> >    > >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >+export MATHLIB_C674_INSTALL_DIR    =
> >    > >>>>    "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >  export MATHLIB_C66_INSTALL_DIR     =
> >    > >>>>    "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >  export IMGLIB_C66_INSTALL_DIR      =
> >    > >>>>    "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    > >  export VLIB_C66_INSTALL_DIR        =
> >    > >>>>    "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
> >    > >>>>
> >    > >>>>    >
> >    > >>>>
> >    > >>>>    > --
> >    > >>>>
> >    > >>>>    > _______________________________________________
> >    > >>>>
> >    > >>>>    > meta-ti mailing list
> >    > >>>>
> >    > >>>>    > meta-ti@yoctoproject.org
> >    > >>>>
> >    > >>>>    > https://lists.yoctoproject.org/listinfo/meta-ti
> >    >
> --
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti
--
_______________________________________________
meta-ti mailing list
meta-ti@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-ti

[-- Attachment #2: Type: text/html, Size: 75727 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB.
  2018-09-13 21:20                         ` Xu, Jianzhong
@ 2018-09-13 21:38                           ` Denys Dmytriyenko
  0 siblings, 0 replies; 19+ messages in thread
From: Denys Dmytriyenko @ 2018-09-13 21:38 UTC (permalink / raw)
  To: Xu, Jianzhong; +Cc: meta-ti

https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines


On Thu, Sep 13, 2018 at 05:20:04PM -0400, Xu, Jianzhong wrote:
>    Denys,
> 
>    Thanks for the cleaned up patches. I applied those patches and removed
>    COMPATIBLE_MACHINE and resubmitted. 
> 
>    Regards,
> 
>    Jianzhong
> 
>      ----------------------------------------------------------------------
> 
>    From: meta-ti-bounces@yoctoproject.org <meta-ti-bounces@yoctoproject.org>
>    on behalf of Dmytriyenko, Denys
>    Sent: Thursday, September 13, 2018 2:35 PM
>    To: Stiffler, Jacob
>    Cc: meta-ti@yoctoproject.org
>    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB recipe to
>    build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and
>    DSPLIB.
>     
>    Jake, Jianzhong,
> 
>    I have re-posted the cleaned up patches I had in rocko-next. Please use
>    those
>    for fixing the COMPATIBLE_MACHINE issue. For now I'll drop them, as I need
>    rocko-next freed up.
> 
>    Denys
> 
>    On Thu, Sep 13, 2018 at 12:34:40PM -0400, Denys Dmytriyenko wrote:
>    > On Thu, Sep 13, 2018 at 12:01:32PM -0400, Stiffler, Jacob wrote:
>    > >    That will work as c66x is a subset of the keystone SOC family.
>    > >
>    > >    
>    > >
>    > >    I just don’t think that specifying COMPATIBLE_MACHINE is necessary
>    as
>    > >    these packages are independent of the architecture that is running
>    Linux.
>    >
>    > Agree.
>    >
>    >
>    > >    And due to this, we should also remove the ‘PACKAGE_ARCH =
>    > >    ${MACHINE_ARCH}”’ as there is no difference between the resulting
>    packages
>    > >    for any machine.
>    >
>    > Also agree.
>    >
>    >
>    > >    IMHO, COMPATIBLE_MACHINE has been overused and it creates more
>    problems
>    > >    that it solves.
>    >
>    > I've been saying this for years! Still, the response from developers was
>    that
>    > they only tested it on one platform, hence it's only compatible with
>    this one
>    > platform...
>    >
>    >
>    > Jake,
>    >
>    > Please work with your team to explain this and stop abusing
>    COMPATIBLE_MACHINE
>    > variable. We'll also need to work with RTOS team for the same...
>    >
>    > --
>    > Denys
>    >
>    >
>    > >
>    > >    
>    > >
>    > >    - Jake
>    > >
>    > >    
>    > >
>    > >    From: Xu, Jianzhong
>    > >    Sent: Thursday, September 13, 2018 11:45 AM
>    > >    To: Dmytriyenko, Denys; Stiffler, Jacob
>    > >    Cc: meta-ti@yoctoproject.org
>    > >    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB
>    recipe to
>    > >    build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB
>    and
>    > >    DSPLIB.
>    > >
>    > >    
>    > >
>    > >    Denys,
>    > >
>    > >    
>    > >
>    > >    Would the following fix the problems you've seen:
>    > >
>    > >    
>    > >
>    > >    COMPATIBLE_MACHINE = "omap-a15|keystone"
>    > >
>    > >    
>    > >
>    > >    This was in DSPLIB recipes before.
>    > >
>    > >    
>    > >
>    > >    Thanks,
>    > >
>    > >    Jianzhong
>    > >
>    > >    
>    ------------------------------------------------------------------------
>    > >
>    > >    From: Dmytriyenko, Denys
>    > >    Sent: Thursday, September 13, 2018 11:26:45 AM
>    > >    To: Stiffler, Jacob
>    > >    Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
>    > >    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB
>    recipe to
>    > >    build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB
>    and
>    > >    DSPLIB.
>    > >
>    > >    
>    > >
>    > >    On Thu, Sep 13, 2018 at 07:26:12AM -0400, Jacob Stiffler wrote:
>    > >    >
>    > >    >
>    > >    > On 9/12/2018 6:52 PM, Denys Dmytriyenko wrote:
>    > >    > >Same for dra7xx-evm...
>    > >    > >
>    > >    > >
>    > >    > >On Wed, Sep 12, 2018 at 04:37:48PM -0400, Dmytriyenko, Denys
>    wrote:
>    > >    > >>And it crashed and burned right away:
>    > >    > >>
>    > >    > >>ERROR: Nothing PROVIDES 'dsplib-c66x' (but
>    > >   
>    /OE/arago-rocko-next-build/sources/meta-arago/meta-arago-extras/recipes-apps/video-analytics-demo/qt-opencv-opencl-opengl-multithreaded_git.bb
>    > >    DEPENDS on or otherwise requires it)
>    > >    > >>dsplib-c66x was skipped: incompatible with machine
>    am57xx-hs-evm (not
>    > >    in COMPATIBLE_MACHINE)
>    > >    > >>NOTE: Runtime target
>    'qt-opencv-opencl-opengl-multithreaded-src' is
>    > >    unbuildable, removing...
>    > >    > >>
>    > >    > >>Jake,
>    > >    > >>
>    > >    > >>Did you tested it on am57xx-hs-evm?
>    > >    >
>    > >    > I had only built for am57xx-evm as there are no machine overrides
>    in
>    > >    these
>    > >    > recipes because they are DSP architecture-specific.
>    > >    >
>    > >    > Looks like we should change "COMPATIBLE_MACHINE" to, at the very
>    least,
>    > >    > include what was there before (omap-a15|keystone). But as these
>    are
>    > >    specific
>    > >    > to the DSP architecture, should COMPATIBLE_MACHINE even be
>    necessary?
>    > >
>    > >    Either way should be fine. Currently those patches break too many
>    > >    platforms -
>    > >    dra7 GP and both am5/dra7 HS.
>    > >
>    > >    > >>Denys
>    > >    > >>
>    > >    > >>
>    > >    > >>>-----Original Message-----
>    > >    > >>>From: Denys Dmytriyenko [mailto:denys@ti.com]
>    > >    > >>>Sent: Wednesday, September 12, 2018 4:21 PM
>    > >    > >>>To: Xu, Jianzhong
>    > >    > >>>Cc: Stiffler, Jacob; meta-ti@yoctoproject.org
>    > >    > >>>Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added DSPLIB
>    recipe
>    > >    to build
>    > >    > >>>DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB
>    and
>    > >    DSPLIB.
>    > >    > >>>
>    > >    > >>>Thanks, merged into rocko-next for testing.
>    > >    > >>>
>    > >    > >>>There were lots of small non-critical things I had to fix,
>    like
>    > >    whitespaces,
>    > >    > >>>indentation, etc. But the biggest one is that you have to
>    follow
>    > >    OpenEmbedded
>    > >    > >>>Commit Message Guidelines:
>    > >    > >>>
>    > >    >
>    >>>https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
>    > >    > >>>
>    > >    > >>>
>    > >    > >>>On Wed, Sep 12, 2018 at 03:40:42PM -0400, Xu, Jianzhong wrote:
>    > >    > >>>>    Denys,
>    > >    > >>>>
>    > >    > >>>>
>    > >    > >>>>
>    > >    > >>>>    You're right. The versioning was inconsistent. Please use
>    > >    > >>>>    [EXTERNAL,3/3,v2] and newer versions of [EXTERNAL,2/3],
>    > >    [EXTERNAL,1/3].
>    > >    > >>>>    The latter two should have had v2 in it. Please see
>    highlights
>    > >    below.
>    > >    > >>>>
>    > >    > >>>>
>    > >    > >>>>
>    > >    > >>>>  
>    > >   
>    +------------------------------------------------------------------------+
>    > >    > >>>>    |[EXTERNAL,3/3,v2] Added DSPLIB recipe to   |        
>    > >    |            ||   |
>    > >    > >>>>    |build DSPLIB from source. Updated        
>    > >    |2018-09-06|Jianzhong Xu||New|
>    > >    > >>>>    |includes/ti-paths.inc for MATHLIB and      |        
>    > >    |            ||   |
>    > >    > >>>>    |DSPLIB.                                    |        
>    > >    |            ||   |
>    > >    > >>>>  
>    > >   
>    |-------------------------------------------+----------+------------++---|
>    > >    > >>>>    |[EXTERNAL] Added DSPLIB recipe to build    |        
>    > >    |            ||   |
>    > >    > >>>>    |DSPLIB from source. Updated              
>    > >    |2018-09-06|Jianzhong Xu||New|
>    > >    > >>>>    |includes/ti-paths.inc for MATHLIB and      |        
>    > >    |            ||   |
>    > >    > >>>>    |DSPLIB.                                    |        
>    > >    |            ||   |
>    > >    > >>>>  
>    > >   
>    |-------------------------------------------+----------+------------++---|
>    > >    > >>>>    |[EXTERNAL,3/3] Added DSPLIB recipe to
>    > >    build|2018-09-04|Jianzhong
>    > >    > >>>Xu||New|
>    > >    > >>>>    |DSPLIB from source.                        |        
>    > >    |            ||   |
>    > >    > >>>>  
>    > >   
>    |-------------------------------------------+----------+------------++---|
>    > >    > >>>>    |[EXTERNAL,2/3] Added MATHLIB recipe to   
>    > >    |2018-09-04|Jianzhong
>    > >    > >>>Xu||New|
>    > >    > >>>>    |build MATHLIB from source.                 |        
>    > >    |            ||   |
>    > >    > >>>>  
>    > >   
>    |-------------------------------------------+----------+------------++---|
>    > >    > >>>>    |[EXTERNAL,1/3] Added SWTOOLS which is      |        
>    > >    |            ||   |
>    > >    > >>>>    |needed to build processor libs (DSPLIB,  
>    > >    |2018-09-04|Jianzhong Xu||New|
>    > >    > >>>>    |MATHLIB, etc) from source.                 |        
>    > >    |            ||   |
>    > >    > >>>>  
>    > >   
>    +------------------------------------------------------------------------+
>    > >    > >>>>
>    > >    > >>>>
>    > >    > >>>>
>    > >    > >>>>    Thanks,
>    > >    > >>>>
>    > >    > >>>>    Jianzhong
>    > >    > >>>>
>    > >    > >>>>
>    > >    > >>>>
>    > >    > >>>>    -----Original Message-----
>    > >    > >>>>    From: Dmytriyenko, Denys
>    > >    > >>>>    Sent: Wednesday, September 12, 2018 3:13 PM
>    > >    > >>>>    To: Stiffler, Jacob
>    > >    > >>>>    Cc: Xu, Jianzhong; meta-ti@yoctoproject.org
>    > >    > >>>>    Subject: Re: [meta-ti] [EXTERNAL] [PATCH 3/3 v2] Added
>    DSPLIB
>    > >    recipe to
>    > >    > >>>>    build DSPLIB from source. Updated includes/ti-paths.inc
>    for
>    > >    MATHLIB and
>    > >    > >>>>    DSPLIB.
>    > >    > >>>>
>    > >    > >>>>
>    > >    > >>>>
>    > >    > >>>>    Jake,
>    > >    > >>>>
>    > >    > >>>>
>    > >    > >>>>
>    > >    > >>>>    I'll give it a look - I assume you want the 3 most recent
>    > >    patches, I don't
>    > >    > >>>>
>    > >    > >>>>    think versioning was consistent...
>    > >    > >>>>
>    > >    > >>>>
>    > >    > >>>>
>    > >    > >>>>    Denys
>    > >    > >>>>
>    > >    > >>>>
>    > >    > >>>>
>    > >    > >>>>
>    > >    > >>>>
>    > >    > >>>>    On Tue, Sep 11, 2018 at 09:17:49AM -0400, Jacob Stiffler
>    wrote:
>    > >    > >>>>
>    > >    > >>>>    > ACK
>    > >    > >>>>
>    > >    > >>>>    >
>    > >    > >>>>
>    > >    > >>>>    >
>    > >    > >>>>
>    > >    > >>>>    > Denys,
>    > >    > >>>>
>    > >    > >>>>    >
>    > >    > >>>>
>    > >    > >>>>    > Can you apply these patches to the ti2018.03 branch?
>    > >    > >>>>
>    > >    > >>>>    >
>    > >    > >>>>
>    > >    > >>>>    >
>    > >    > >>>>
>    > >    > >>>>    > Thank you,
>    > >    > >>>>
>    > >    > >>>>    >
>    > >    > >>>>
>    > >    > >>>>    > Jake
>    > >    > >>>>
>    > >    > >>>>    >
>    > >    > >>>>
>    > >    > >>>>    >
>    > >    > >>>>
>    > >    > >>>>    > On 9/6/2018 1:46 PM, Jianzhong Xu wrote:
>    > >    > >>>>
>    > >    > >>>>    > >Signed-off-by: Jianzhong Xu <xuj@ti.com>
>    > >    > >>>>
>    > >    > >>>>    > >---
>    > >    > >>>>
>    > >    > >>>>    > >Change from previous version of patch
>    > >    > >>>>
>    > >    > >>>>    > >Corrected typo: MATHLIB_C674INSTALL_XXX should have
>    been
>    > >    > >>>>    MATHLIB_C674_INSTALL_XXX
>    > >    > >>>>
>    > >    > >>>>    > >---
>    > >    > >>>>
>    > >    > >>>>    > >---
>    > >    > >>>>
>    > >    > >>>>    > >  recipes-ti/dsplib/dsplib-c64xp_git.bb    |  9 ++++
>    > >    > >>>>
>    > >    > >>>>    > >  recipes-ti/dsplib/dsplib-c66x.inc        | 30
>    ------------
>    > >    > >>>>
>    > >    > >>>>    > >  recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb |  9 ----
>    > >    > >>>>
>    > >    > >>>>    > >  recipes-ti/dsplib/dsplib-c66x_git.bb     | 10 ++++
>    > >    > >>>>
>    > >    > >>>>    > >  recipes-ti/dsplib/dsplib-c674x_git.bb    |  9 ++++
>    > >    > >>>>
>    > >    > >>>>    > >  recipes-ti/dsplib/dsplib.inc             | 79
>    > >    > >>>>    ++++++++++++++++++++++++++++++++
>    > >    > >>>>
>    > >    > >>>>    > >  recipes-ti/includes/ti-paths.inc         |  8 +++-
>    > >    > >>>>
>    > >    > >>>>    > >  7 files changed, 114 insertions(+), 40 deletions(-)
>    > >    > >>>>
>    > >    > >>>>    > >  create mode 100644
>    recipes-ti/dsplib/dsplib-c64xp_git.bb
>    > >    > >>>>
>    > >    > >>>>    > >  delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc
>    > >    > >>>>
>    > >    > >>>>    > >  delete mode 100644
>    recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
>    > >    > >>>>
>    > >    > >>>>    > >  create mode 100644
>    recipes-ti/dsplib/dsplib-c66x_git.bb
>    > >    > >>>>
>    > >    > >>>>    > >  create mode 100644
>    recipes-ti/dsplib/dsplib-c674x_git.bb
>    > >    > >>>>
>    > >    > >>>>    > >  create mode 100644 recipes-ti/dsplib/dsplib.inc
>    > >    > >>>>
>    > >    > >>>>    > >
>    > >    > >>>>
>    > >    > >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c64xp_git.bb
>    > >    > >>>>    b/recipes-ti/dsplib/dsplib-c64xp_git.bb
>    > >    > >>>>
>    > >    > >>>>    > >new file mode 100644
>    > >    > >>>>
>    > >    > >>>>    > >index 0000000..1038d44
>    > >    > >>>>
>    > >    > >>>>    > >--- /dev/null
>    > >    > >>>>
>    > >    > >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c64xp_git.bb
>    > >    > >>>>
>    > >    > >>>>    > >@@ -0,0 +1,9 @@
>    > >    > >>>>
>    > >    > >>>>    > >+MATHLIB_INSTALL_DIR =
>    "${MATHLIB_C64P_INSTALL_DIR}/packages"
>    > >    > >>>>
>    > >    > >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE =
>    > >    "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
>    > >    > >>>>
>    > >    > >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
>    > >    > >>>>
>    > >    > >>>>    > >+DSPLIB_BUILD_TARGET = "c64Px"
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+DEPENDS = ""
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+include dsplib.inc
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c66x.inc
>    > >    > >>>>    b/recipes-ti/dsplib/dsplib-c66x.inc
>    > >    > >>>>
>    > >    > >>>>    > >deleted file mode 100644
>    > >    > >>>>
>    > >    > >>>>    > >index 7ff99c2..0000000
>    > >    > >>>>
>    > >    > >>>>    > >--- a/recipes-ti/dsplib/dsplib-c66x.inc
>    > >    > >>>>
>    > >    > >>>>    > >+++ /dev/null
>    > >    > >>>>
>    > >    > >>>>    > >@@ -1,30 +0,0 @@
>    > >    > >>>>
>    > >    > >>>>    > >-DESCRIPTION = "DSPLIB contains optimized
>    general-purpose
>    > >    > >>>>    signal-processing routines for TI DSPs"
>    > >    > >>>>
>    > >    > >>>>    > >-HOMEPAGE = "http://www.ti.com/tool/sprc265"
>    > >    > >>>>
>    > >    > >>>>    > >-SECTION = "devel"
>    > >    > >>>>
>    > >    > >>>>    > >-LICENSE = "BSD-3-Clause"
>    > >    > >>>>
>    > >    > >>>>    > >-
>    > >    > >>>>
>    > >    > >>>>    > >-require ../includes/ti-paths.inc
>    > >    > >>>>
>    > >    > >>>>    > >-require ../includes/ti-staging.inc
>    > >    > >>>>
>    > >    > >>>>    > >-require ../includes/ti-unpack.inc
>    > >    > >>>>
>    > >    > >>>>    > >-
>    > >    > >>>>
>    > >    > >>>>    > >-COMPATIBLE_MACHINE = "omap-a15|keystone"
>    > >    > >>>>
>    > >    > >>>>    > >-
>    > >    > >>>>
>    > >    > >>>>    > >-SRC_URI =
>    > >    > >>>>    "http://software-
>    > >    >
>    > >   
>    >>>dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=d
>    > >    > >>>splib"
>    > >    > >>>>    > >-
>    > >    > >>>>
>    > >    > >>>>    > >-BINFILE = "dsplib_c66x_${PV}_Linux.bin"
>    > >    > >>>>
>    > >    > >>>>    > >-TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
>    > >    > >>>>
>    > >    > >>>>    > >-TI_BIN_UNPK_CMDS = ""
>    > >    > >>>>
>    > >    > >>>>    > >-
>    > >    > >>>>
>    > >    > >>>>    > >-do_install() {
>    > >    > >>>>
>    > >    > >>>>    > >-    CP_ARGS="-Prf --preserve=mode,timestamps --no-
>    > >    > >>>preserve=ownership"
>    > >    > >>>>    > >-    install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
>    > >    > >>>>
>    > >    > >>>>    > >-    cp ${CP_ARGS} ${S}/*
>    > >    ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE}
>    > >    > >>>>
>    > >    > >>>>    > >-}
>    > >    > >>>>
>    > >    > >>>>    > >-
>    > >    > >>>>
>    > >    > >>>>    > >-ALLOW_EMPTY_${PN} = "1"
>    > >    > >>>>
>    > >    > >>>>    > >-FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
>    > >    > >>>>
>    > >    > >>>>    > >-
>    > >    > >>>>
>    > >    > >>>>    > >-INHIBIT_PACKAGE_STRIP = "1"
>    > >    > >>>>
>    > >    > >>>>    > >-INHIBIT_SYSROOT_STRIP = "1"
>    > >    > >>>>
>    > >    > >>>>    > >-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
>    > >    > >>>>
>    > >    > >>>>    > >-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 f1273f3..0000000
>    > >    > >>>>
>    > >    > >>>>    > >--- a/recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb
>    > >    > >>>>
>    > >    > >>>>    > >+++ /dev/null
>    > >    > >>>>
>    > >    > >>>>    > >@@ -1,9 +0,0 @@
>    > >    > >>>>
>    > >    > >>>>    > >-require dsplib-c66x.inc
>    > >    > >>>>
>    > >    > >>>>    > >-
>    > >    > >>>>
>    > >    > >>>>    > >-PV = "3_4_0_0"
>    > >    > >>>>
>    > >    > >>>>    > >-PR = "r1"
>    > >    > >>>>
>    > >    > >>>>    > >-
>    > >    > >>>>
>    > >    > >>>>    > >-LIC_FILES_CHKSUM =
>    > >    > >>>>
>    > >    >
>    > >   
>    >>>"file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8
>    > >    > >>>a628512f47c4bf676a"
>    > >    > >>>>    > >-
>    > >    > >>>>
>    > >    > >>>>    > >-SRC_URI[dsplib.md5sum] =
>    "66785604729c153dcad5282097dee8bf"
>    > >    > >>>>
>    > >    > >>>>    > >-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 0000000..cbc25d0
>    > >    > >>>>
>    > >    > >>>>    > >--- /dev/null
>    > >    > >>>>
>    > >    > >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c66x_git.bb
>    > >    > >>>>
>    > >    > >>>>    > >@@ -0,0 +1,10 @@
>    > >    > >>>>
>    > >    > >>>>    > >+MATHLIB_INSTALL_DIR =
>    "${MATHLIB_C66_INSTALL_DIR}/packages"
>    > >    > >>>>
>    > >    > >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE =
>    > >    "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
>    > >    > >>>>
>    > >    > >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
>    > >    > >>>>
>    > >    > >>>>    > >+DSPLIB_BUILD_TARGET = "c66x"
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+DEPENDS = "mathlib-c66x"
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+include dsplib.inc
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >diff --git a/recipes-ti/dsplib/dsplib-c674x_git.bb
>    > >    > >>>>    b/recipes-ti/dsplib/dsplib-c674x_git.bb
>    > >    > >>>>
>    > >    > >>>>    > >new file mode 100644
>    > >    > >>>>
>    > >    > >>>>    > >index 0000000..07c6892
>    > >    > >>>>
>    > >    > >>>>    > >--- /dev/null
>    > >    > >>>>
>    > >    > >>>>    > >+++ b/recipes-ti/dsplib/dsplib-c674x_git.bb
>    > >    > >>>>
>    > >    > >>>>    > >@@ -0,0 +1,9 @@
>    > >    > >>>>
>    > >    > >>>>    > >+MATHLIB_INSTALL_DIR =
>    "${MATHLIB_C674_INSTALL_DIR}/packages"
>    > >    > >>>>
>    > >    > >>>>    > >+DSPLIB_INSTALL_DIR_RECIPE =
>    > >    "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
>    > >    > >>>>
>    > >    > >>>>    > >+DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
>    > >    > >>>>
>    > >    > >>>>    > >+DSPLIB_BUILD_TARGET = "c674x"
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+DEPENDS = "mathlib-c674x"
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+include dsplib.inc
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >diff --git a/recipes-ti/dsplib/dsplib.inc
>    > >    > >>>>    b/recipes-ti/dsplib/dsplib.inc
>    > >    > >>>>
>    > >    > >>>>    > >new file mode 100644
>    > >    > >>>>
>    > >    > >>>>    > >index 0000000..66fe0fb
>    > >    > >>>>
>    > >    > >>>>    > >--- /dev/null
>    > >    > >>>>
>    > >    > >>>>    > >+++ b/recipes-ti/dsplib/dsplib.inc
>    > >    > >>>>
>    > >    > >>>>    > >@@ -0,0 +1,79 @@
>    > >    > >>>>
>    > >    > >>>>    > >+SUMMARY = "DSPLIB contains optimized signal
>    processing
>    > >    functions for
>    > >    > >>>>    TI DSPs"
>    > >    > >>>>
>    > >    > >>>>    > >+HOMEPAGE =
>    "http://git.ti.com/ep-processor-libraries/dsplib"
>    > >    > >>>>
>    > >    > >>>>    > >+LICENSE = "BSD-3-Clause"
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+require ../includes/ti-paths.inc
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+PV = "3_4_0_1"
>    > >    > >>>>
>    > >    > >>>>    > >+PR = "r0"
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+COMPATIBLE_MACHINE =
>    "am57xx-evm|keystone|c66x|omapl1"
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+DEPENDS += "ti-cgt6x-native \
>    > >    > >>>>
>    > >    > >>>>    > >+           ti-xdctools-native \
>    > >    > >>>>
>    > >    > >>>>    > >+           ti-sysbios \
>    > >    > >>>>
>    > >    > >>>>    > >+           doxygen-native \
>    > >    > >>>>
>    > >    > >>>>    > >+           zip-native \
>    > >    > >>>>
>    > >    > >>>>    > >+           swtools "
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+S = "${WORKDIR}/git"
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+SRC_URI =
>    > >    > >>>>    "git://git.ti.com/ep-processor-
>    > >    > >>>libraries/dsplib.git;protocol=git;branch=master"
>    > >    > >>>>    > >+SRCREV = "bf5a51cba462c5cb03ed20a6a1bb1bd16c0683e1"
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+LIC_FILES_CHKSUM =
>    > >    > >>>>
>    > >    >
>    > >   
>    >>>"file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4
>    > >    > >>>d51d8af75419781591ace190b"
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+export DSPLIB_WORK_DIR="${S}"
>    > >    > >>>>
>    > >    > >>>>    > >+export CGTOOLS_INSTALL_DIR  =
>    > >    > >>>>    "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
>    > >    > >>>>
>    > >    > >>>>    > >+export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
>    > >    > >>>>
>    > >    > >>>>    > >+export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
>    > >    > >>>>
>    > >    > >>>>    > >+export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
>    > >    > >>>>
>    > >    > >>>>    > >+export SWTOOLS_PATH =
>    > >    "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
>    > >    > >>>>
>    > >    > >>>>    > >+export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
>    > >    > >>>>
>    > >    > >>>>    > >+export INCDIR="${MATHLIB_INSTALL_DIR}/"
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+PATH_append = ":${XDC_INSTALL_DIR}"
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    >
>    > >    > >>>>
>    > >    >
>    >>>>+XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBI
>    > >    > >>>OS_INSTALL_DIR}/packages;"
>    > >    > >>>>    >
>    > >    > >>>>
>    > >    >
>    >>>>+XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_
>    > >    > >>>WORK_DIR};"
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+export XDCPATH
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+DSPLIB_PACKAGE_NAME =
>    "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+do_compile() {
>    > >    > >>>>
>    > >    > >>>>    > >+       cd ${DSPLIB_WORK_DIR}/ti/dsplib;
>    > >    > >>>>
>    > >    > >>>>    > >+       xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle"
>    > >    XDCOPTIONS="-
>    > >    > >>>v"
>    > >    > >>>>    > >+}
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+do_install() {
>    > >    > >>>>
>    > >    > >>>>    > >+       install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+       find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec
>    unzip
>    > >    -o {} -d
>    > >    > >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
>    > >    > >>>>
>    > >    > >>>>    > >+       mv ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/*
>    > >    > >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>    > >    > >>>>
>    > >    > >>>>    > >+       mv
>    ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/.metadata
>    > >    > >>>>    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>    > >    > >>>>
>    > >    > >>>>    > >+       rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
>    > >    > >>>>
>    > >    > >>>>    > >+}
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+inherit deploy
>    > >    > >>>>
>    > >    > >>>>    > >+addtask deploy before do_build after do_install
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+do_deploy() {
>    > >    > >>>>
>    > >    > >>>>    > >+       install -d ${DEPLOYDIR}
>    > >    > >>>>
>    > >    > >>>>    > >+       # zip up files in
>    ${D}${DSPLIB_INSTALL_DIR_RECIPE}
>    > >    > >>>>
>    > >    > >>>>    > >+       # and place the zip file in ${DEPLOYDIR}
>    > >    > >>>>
>    > >    > >>>>    > >+       mkdir ./${DSPLIB_PACKAGE_NAME}
>    > >    > >>>>
>    > >    > >>>>    > >+       cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/*
>    > >    > >>>>    ./${DSPLIB_PACKAGE_NAME}
>    > >    > >>>>
>    > >    > >>>>    > >+       cp -r
>    ${D}${DSPLIB_INSTALL_DIR_RECIPE}/.metadata
>    > >    > >>>>    ./${DSPLIB_PACKAGE_NAME}
>    > >    > >>>>
>    > >    > >>>>    > >+       zip -9 -y -r -q
>    > >    ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip
>    > >    > >>>>    ./${DSPLIB_PACKAGE_NAME}
>    > >    > >>>>
>    > >    > >>>>    > >+       rm -r ./${DSPLIB_PACKAGE_NAME}
>    > >    > >>>>
>    > >    > >>>>    > >+}
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+PACKAGE_ARCH = "${MACHINE_ARCH}"
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+ALLOW_EMPTY_${PN} = "1"
>    > >    > >>>>
>    > >    > >>>>    > >+FILES_${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >+INSANE_SKIP_${PN}-dev = "arch"
>    > >    > >>>>
>    > >    > >>>>    > >+
>    > >    > >>>>
>    > >    > >>>>    > >diff --git a/recipes-ti/includes/ti-paths.inc
>    > >    > >>>>    b/recipes-ti/includes/ti-paths.inc
>    > >    > >>>>
>    > >    > >>>>    > >index 4f99d5e..8740b6a 100644
>    > >    > >>>>
>    > >    > >>>>    > >--- a/recipes-ti/includes/ti-paths.inc
>    > >    > >>>>
>    > >    > >>>>    > >+++ b/recipes-ti/includes/ti-paths.inc
>    > >    > >>>>
>    > >    > >>>>    > >@@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE      
>    =
>    > >    > >>>>    "${installdir}/ti-dmai-tree"
>    > >    > >>>>
>    > >    > >>>>    > >  export DSP_BENCHMARK_INSTALL_DIR_RECIPE =
>    > >    > >>>>    "${installdir}/ti-dsp-benchmark-tree"
>    > >    > >>>>
>    > >    > >>>>    > >  export DSPLIB_C64P_INSTALL_DIR_RECIPE =
>    > >    > >>>>    "${installdir}/ti-dsplib-c64p-tree"
>    > >    > >>>>
>    > >    > >>>>    > >  export DSPLIB_C674_INSTALL_DIR_RECIPE =
>    > >    > >>>>    "${installdir}/ti-dsplib-c674x-tree"
>    > >    > >>>>
>    > >    > >>>>    > >+export DSPLIB_C66_INSTALL_DIR_RECIPE  =
>    > >    > >>>>    "${installdir}/ti-dsplib-c66x-tree"
>    > >    > >>>>
>    > >    > >>>>    > >  export DSPLIB_INSTALL_DIR_RECIPE     =
>    > >    "${installdir}/ti-dsplib-tree"
>    > >    > >>>>
>    > >    > >>>>    > >  export DVSDK_DEMOS_INSTALL_DIR_RECIPE=
>    > >    > >>>>    "${installdir}/ti-dvsdk-demos-tree"
>    > >    > >>>>
>    > >    > >>>>    > >  export DVTB_INSTALL_DIR_RECIPE       =
>    > >    "${installdir}/ti-dvtb-tree"
>    > >    > >>>>
>    > >    > >>>>    > >@@ -39,6 +40,7 @@ export OSAL_INSTALL_DIR_RECIPE      
>    =
>    > >    > >>>>    "${installdir}/ti-osal-tree"
>    > >    > >>>>
>    > >    > >>>>    > >  export RTFS_INSTALL_DIR_RECIPE       =
>    > >    "${installdir}/ti-rtfs-tree"
>    > >    > >>>>
>    > >    > >>>>    > >  export SYSBIOS_INSTALL_DIR_RECIPE    =
>    > >    > >>>>    "${installdir}/ti-sysbios-tree"
>    > >    > >>>>
>    > >    > >>>>    > >  export SYSLINK_INSTALL_DIR_RECIPE    =
>    > >    > >>>>    "${installdir}/ti-syslink-tree"
>    > >    > >>>>
>    > >    > >>>>    > >+export SWTOOLS_INSTALL_DIR_RECIPE    =
>    > >    "${installdir}/ti-swtools-tree"
>    > >    > >>>>
>    > >    > >>>>    > >  export UIA_INSTALL_DIR_RECIPE        =
>    > >    "${installdir}/ti-uia-tree"
>    > >    > >>>>
>    > >    > >>>>    > >  export VICPLIB_INSTALL_DIR_RECIPE    =
>    > >    > >>>>    "${installdir}/ti-vicplib-tree"
>    > >    > >>>>
>    > >    > >>>>    > >  export XDAIS_INSTALL_DIR_RECIPE      =
>    > >    "${installdir}/ti-xdais-tree"
>    > >    > >>>>
>    > >    > >>>>    > >@@ -48,8 +50,8 @@ export OSAL_INSTALL_DIR_RECIPE      
>    =
>    > >    > >>>>    "${installdir}/ti-osal-tree"
>    > >    > >>>>
>    > >    > >>>>    > >  export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    =
>    > >    > >>>>    "${installdir}/ti-cgt-arm"
>    > >    > >>>>
>    > >    > >>>>    > >  export GCC_ARM_NONE_TOOLCHAIN_RECIPE      =
>    > >    > >>>>    "${installdir}/gcc-arm-none-eabi"
>    > >    > >>>>
>    > >    > >>>>    > >  export TI_CGT_PRU_INSTALL_DIR_RECIPE      =
>    > >    "${installdir}/cgt-pru"
>    > >    > >>>>
>    > >    > >>>>    > >-export DSPLIB_C66_INSTALL_DIR_RECIPE      =
>    > >    > >>>>    "${installdir}/ti-dsplib-c66x-tree"
>    > >    > >>>>
>    > >    > >>>>    > >  export MATHLIB_C66_INSTALL_DIR_RECIPE     =
>    > >    > >>>>    "${installdir}/ti-mathlib-c66x-tree"
>    > >    > >>>>
>    > >    > >>>>    > >+export MATHLIB_C674_INSTALL_DIR_RECIPE    =
>    > >    > >>>>    "${installdir}/ti-mathlib-c674x-tree"
>    > >    > >>>>
>    > >    > >>>>    > >  export IMGLIB_C66_INSTALL_DIR_RECIPE      =
>    > >    > >>>>    "${installdir}/ti-imglib-c66x-tree"
>    > >    > >>>>
>    > >    > >>>>    > >  export VLIB_C66_INSTALL_DIR_RECIPE        =
>    > >    > >>>>    "${installdir}/ti-vlib-c66x-tree"
>    > >    > >>>>
>    > >    > >>>>    > >  export CG_XML_INSTALL_DIR_RECIPE     =
>    > >    "${installdir}/ti-cg-xml-tree"
>    > >    > >>>>
>    > >    > >>>>    > >@@ -95,7 +97,11 @@ export OSAL_INSTALL_DIR       =
>    > >    > >>>>    "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}
>    > >    > >>>>
>    > >    > >>>>    > >  export M4_TOOLCHAIN_INSTALL_DIR    =
>    > >    > >>>>    "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
>    > >    > >>>>
>    > >    > >>>>    > >  export GCC_ARM_NONE_TOOLCHAIN      =
>    > >    > >>>>    "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
>    > >    > >>>>
>    > >    > >>>>    > >  export TI_CGT_PRU_INSTALL_DIR      =
>    > >    > >>>>    "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
>    > >    > >>>>
>    > >    > >>>>    > >+export SWTOOLS_INSTALL_DIR         =
>    > >    > >>>>    "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
>    > >    > >>>>
>    > >    > >>>>    > >+export DSPLIB_C64P_INSTALL_DIR     =
>    > >    > >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
>    > >    > >>>>
>    > >    > >>>>    > >+export DSPLIB_C674_INSTALL_DIR     =
>    > >    > >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
>    > >    > >>>>
>    > >    > >>>>    > >  export DSPLIB_C66_INSTALL_DIR      =
>    > >    > >>>>    "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
>    > >    > >>>>
>    > >    > >>>>    > >+export MATHLIB_C674_INSTALL_DIR    =
>    > >    > >>>>    "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
>    > >    > >>>>
>    > >    > >>>>    > >  export MATHLIB_C66_INSTALL_DIR     =
>    > >    > >>>>    "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
>    > >    > >>>>
>    > >    > >>>>    > >  export IMGLIB_C66_INSTALL_DIR      =
>    > >    > >>>>    "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
>    > >    > >>>>
>    > >    > >>>>    > >  export VLIB_C66_INSTALL_DIR        =
>    > >    > >>>>    "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
>    > >    > >>>>
>    > >    > >>>>    >
>    > >    > >>>>
>    > >    > >>>>    > --
>    > >    > >>>>
>    > >    > >>>>    > _______________________________________________
>    > >    > >>>>
>    > >    > >>>>    > meta-ti mailing list
>    > >    > >>>>
>    > >    > >>>>    > meta-ti@yoctoproject.org
>    > >    > >>>>
>    > >    > >>>>    > https://lists.yoctoproject.org/listinfo/meta-ti
>    > >    >
>    > --
>    > _______________________________________________
>    > meta-ti mailing list
>    > meta-ti@yoctoproject.org
>    > https://lists.yoctoproject.org/listinfo/meta-ti
>    --
>    _______________________________________________
>    meta-ti mailing list
>    meta-ti@yoctoproject.org
>    https://lists.yoctoproject.org/listinfo/meta-ti


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2018-09-13 21:40 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-06 17:46 [PATCH 3/3 v2] Added DSPLIB recipe to build DSPLIB from source. Updated includes/ti-paths.inc for MATHLIB and DSPLIB Jianzhong Xu
2018-09-11 13:17 ` [EXTERNAL] " Jacob Stiffler
2018-09-12 19:13   ` Denys Dmytriyenko
2018-09-12 19:36     ` Jacob Stiffler
2018-09-12 19:40     ` Xu, Jianzhong
2018-09-12 20:20       ` Denys Dmytriyenko
2018-09-12 20:37         ` Dmytriyenko, Denys
2018-09-12 21:06           ` Xu, Jianzhong
2018-09-12 22:52           ` Denys Dmytriyenko
2018-09-13 11:26             ` Jacob Stiffler
2018-09-13 15:24               ` Xu, Jianzhong
2018-09-13 15:25                 ` Denys Dmytriyenko
2018-09-13 15:26               ` Denys Dmytriyenko
2018-09-13 15:44                 ` Xu, Jianzhong
2018-09-13 16:01                   ` Stiffler, Jacob
2018-09-13 16:34                     ` Denys Dmytriyenko
2018-09-13 18:35                       ` Denys Dmytriyenko
2018-09-13 21:20                         ` Xu, Jianzhong
2018-09-13 21:38                           ` Denys Dmytriyenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.