diff mbox series

[master,07/16] tidl-api, tidl-utils: deprecate

Message ID 20240826191605.8190-7-denis@denix.org
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series [master,01/16] ti-analytics: remove | expand

Commit Message

Denys Dmytriyenko Aug. 26, 2024, 7:15 p.m. UTC
From: Denys Dmytriyenko <denys@konsulko.com>

Remove old TIDL components as deprecated and not maintained.

This component was offloading processing tasks to DSP using heavily
modified OpenCL/OpenCV forks of old versions of corresponding upstream
projects on legacy platforms.

Current versions of TIDL/AI components are now maintained in a separate
meta-edgeai layer from TI.

Acked-by: Andrew Davis <afd@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
---
 ...nativesdk-packagegroup-arago-tisdk-host.bb |  8 ---
 .../recipes-ti/tidl-api/tidl-api.inc          | 21 -------
 .../recipes-ti/tidl-api/tidl-api_git.bb       | 57 -------------------
 .../recipes-ti/tidl-api/tidl-examples_git.bb  | 52 -----------------
 .../recipes-ti/tidl-api/tidl-viewer_git.bb    | 33 -----------
 .../recipes-ti/tidl-utils/tidl-import_git.bb  | 46 ---------------
 .../recipes-ti/tidl-utils/tidl-utils.bb       | 34 -----------
 .../recipes-ti/tidl-utils/tidl-utils.inc      |  4 --
 8 files changed, 255 deletions(-)
 delete mode 100644 meta-arago-extras/recipes-ti/tidl-api/tidl-api.inc
 delete mode 100644 meta-arago-extras/recipes-ti/tidl-api/tidl-api_git.bb
 delete mode 100644 meta-arago-extras/recipes-ti/tidl-api/tidl-examples_git.bb
 delete mode 100644 meta-arago-extras/recipes-ti/tidl-api/tidl-viewer_git.bb
 delete mode 100644 meta-arago-extras/recipes-ti/tidl-utils/tidl-import_git.bb
 delete mode 100644 meta-arago-extras/recipes-ti/tidl-utils/tidl-utils.bb
 delete mode 100644 meta-arago-extras/recipes-ti/tidl-utils/tidl-utils.inc
diff mbox series

Patch

diff --git a/meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-tisdk-host.bb b/meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-tisdk-host.bb
index 92a80b6b..ed29b6c4 100644
--- a/meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-tisdk-host.bb
+++ b/meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-tisdk-host.bb
@@ -7,13 +7,6 @@  inherit_defer nativesdk
 
 PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1"
 
-TIDL_TOOLS = ""
-#TIDL_TOOLS = " \
-#    nativesdk-tidl-import \
-#    nativesdk-tidl-viewer \
-#    nativesdk-tidl-utils \
-#"
-
 EXTRA_TI_TOOLS = " \
     nativesdk-ti-cgt6x \
     nativesdk-ti-cgt-pru \
@@ -22,7 +15,6 @@  EXTRA_TI_TOOLS = " \
     nativesdk-open62541-examples \
     nativesdk-open62541-tests \
     nativesdk-gcc-arm-baremetal \
-    ${@oe.utils.all_distro_features(d, "opencl opencv", "${TIDL_TOOLS}")} \
 "
 
 RDEPENDS:${PN} = "\
diff --git a/meta-arago-extras/recipes-ti/tidl-api/tidl-api.inc b/meta-arago-extras/recipes-ti/tidl-api/tidl-api.inc
deleted file mode 100644
index 389e565a..00000000
--- a/meta-arago-extras/recipes-ti/tidl-api/tidl-api.inc
+++ /dev/null
@@ -1,21 +0,0 @@ 
-PV = "1.5.1"
-INC_PR = "r0"
-
-LIC_FILES_CHKSUM = "file://license.txt;md5=e3daeabffb9fc131a73f16d16cbdb118"
-
-GIT_URI = "git://git.ti.com/git/tidl/tidl-api.git"
-GIT_PROTOCOL = "https"
-BRANCH = "master"
-
-SRC_URI = "${GIT_URI};protocol=${GIT_PROTOCOL};branch=${BRANCH}"
-SRCREV = "4b801ad96b50f53e977b96d8b227ba4bcb26e011"
-
-# default patchdir is ${S}
-S = "${WORKDIR}/git"
-
-inherit features_check
-
-REQUIRED_MACHINE_FEATURES = "dsp"
-REQUIRED_MACHINE_FEATURES:class-native = ""
-REQUIRED_MACHINE_FEATURES:class-nativesdk = ""
-REQUIRED_DISTRO_FEATURES = "opencl opencv"
diff --git a/meta-arago-extras/recipes-ti/tidl-api/tidl-api_git.bb b/meta-arago-extras/recipes-ti/tidl-api/tidl-api_git.bb
deleted file mode 100644
index 7f37b63b..00000000
--- a/meta-arago-extras/recipes-ti/tidl-api/tidl-api_git.bb
+++ /dev/null
@@ -1,57 +0,0 @@ 
-SUMMARY = "TIDL API"
-DESCRIPTION = "TIDL API header and library. Refer TIDL API User's Guide for details."
-HOMEPAGE = "https://downloads.ti.com/mctools/esd/docs/tidl-api/intro.html"
-LICENSE = "BSD-3-Clause"
-
-include tidl-api.inc
-require recipes-ti/includes/ti-paths.inc
-
-PR = "${INC_PR}.0"
-
-COMPATIBLE_MACHINE = "dra7xx"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
-inherit python3native
-
-DEPENDS = "opencv \
-           opencl \
-           opencl-monitor \
-           ti-cgt6x-native \
-           clocl-native \
-"
-
-RDEPENDS:${PN} += "opencl-runtime \
-                   opencv \
-"
-
-EXTRA_OEMAKE = " -C ${S}/tidl_api \
-                 TARGET_ROOTDIR=${STAGING_DIR_HOST} \
-                 TI_OCL_CGT_INSTALL=${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x \
-"
-
-do_compile() {
-  oe_runmake
-}
-
-CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
-
-TIDL_INSTALL_DIR = "${datadir}/ti/tidl"
-
-do_install() {
-    install -d ${D}${TIDL_INSTALL_DIR}
-    install -d ${D}${TIDL_INSTALL_DIR}/tidl_api
-    install -d ${D}${TIDL_INSTALL_DIR}/viewer
-    install -d ${D}${libdir}
-    cp ${CP_ARGS} ${S}/tidl_api/libtidl_*.so* ${D}${libdir}
-    rm -f ${S}/tidl_api/libtidl_*.so*
-    cp ${CP_ARGS} ${S}/tidl_api/* ${D}${TIDL_INSTALL_DIR}/tidl_api/
-    cp ${CP_ARGS} ${S}/viewer/* ${D}${TIDL_INSTALL_DIR}/viewer/
-    install ${S}/readme.md ${D}${TIDL_INSTALL_DIR}/
-}
-
-FILES:${PN} += "\
-    ${TIDL_INSTALL_DIR} \
-"
-
-
-INSANE_SKIP:${PN} = "arch ldflags textrel staticdev"
diff --git a/meta-arago-extras/recipes-ti/tidl-api/tidl-examples_git.bb b/meta-arago-extras/recipes-ti/tidl-api/tidl-examples_git.bb
deleted file mode 100644
index c9756d40..00000000
--- a/meta-arago-extras/recipes-ti/tidl-api/tidl-examples_git.bb
+++ /dev/null
@@ -1,52 +0,0 @@ 
-SUMMARY = "TIDL API examples"
-DESCRIPTION = "Examples of TIDL API. Refer TIDL API User's Guide for details."
-HOMEPAGE = "https://downloads.ti.com/mctools/esd/docs/tidl-api/intro.html"
-LICENSE = "BSD-3-Clause"
-
-include tidl-api.inc
-require recipes-ti/includes/ti-paths.inc
-
-PR = "${INC_PR}.0"
-
-COMPATIBLE_MACHINE = "dra7xx"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
-DEPENDS = "opencv \
-           clocl-native \
-           ti-cgt6x-native \
-           tidl-api \
-           json-c \
-"
-
-RDEPENDS:${PN} += "tidl-api \
-                   opencl-runtime \
-                   opencv \
-                   json-c \
-                   python3-core \
-"
-
-EXTRA_OEMAKE = " -C ${S}/examples \
-                 TARGET_ROOTDIR=${STAGING_DIR_HOST} \
-                 TI_OCL_CGT_INSTALL=${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x \
-"
-
-do_compile() {
-  oe_runmake
-}
-
-CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
-
-TIDL_INSTALL_DIR = "${datadir}/ti/tidl"
-
-do_install() {
-    install -d ${D}${TIDL_INSTALL_DIR}
-    install -d ${D}${TIDL_INSTALL_DIR}/examples
-    cp ${CP_ARGS} ${S}/examples/* ${D}${TIDL_INSTALL_DIR}/examples/
-}
-
-FILES:${PN} += "\
-    ${TIDL_INSTALL_DIR} \
-"
-
-
-INSANE_SKIP:${PN} = "arch ldflags textrel staticdev"
diff --git a/meta-arago-extras/recipes-ti/tidl-api/tidl-viewer_git.bb b/meta-arago-extras/recipes-ti/tidl-api/tidl-viewer_git.bb
deleted file mode 100644
index 644b8626..00000000
--- a/meta-arago-extras/recipes-ti/tidl-api/tidl-viewer_git.bb
+++ /dev/null
@@ -1,33 +0,0 @@ 
-SUMMARY = "TIDL Network Viewer"
-DESCRIPTION = "TIDL Network viewer using dot and graphviz"
-HOMEPAGE = "https://downloads.ti.com/mctools/esd/docs/tidl-api/intro.html"
-LICENSE = "BSD-3-Clause"
-
-include tidl-api.inc
-
-PR = "${INC_PR}.0"
-
-DEPENDS = "boost boost-native ti-cgt6x-native clocl-native"
-
-TARGET:class-target = "arm"
-TARGET:class-native = "x86"
-TARGET:class-nativesdk = "x86"
-
-CXXFLAGS:append:class-native    = " -DPLATFORM_64BIT "
-CXXFLAGS:append:class-nativesdk = " -DPLATFORM_64BIT "
-
-EXTRA_OEMAKE = " -C ${S}/viewer \
-                 TARGET=${TARGET} \
-                 TARGET_ROOTDIR=${STAGING_DIR_HOST} \
-"
-
-do_compile() {
-  oe_runmake
-}
-
-do_install() {
-  install -d ${D}${bindir}
-  install -m 755 ${S}/viewer/${TARGET}/tidl_viewer ${D}${bindir}
-}
-
-BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-arago-extras/recipes-ti/tidl-utils/tidl-import_git.bb b/meta-arago-extras/recipes-ti/tidl-utils/tidl-import_git.bb
deleted file mode 100644
index 3c1b81ff..00000000
--- a/meta-arago-extras/recipes-ti/tidl-utils/tidl-import_git.bb
+++ /dev/null
@@ -1,46 +0,0 @@ 
-SUMMARY = "TIDL import tool for conversion of Caffe and TF models into TI custom network format"
-DESCRIPTION = "TIDL import tool is using protobuf to read and parse information from external network models \
-               This is ARM Linux implementation."
-
-require ./tidl-utils.inc
-
-LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://modules/ti_dl/inc/itidl_ti.h;beginline=1;endline=34;md5=cabe1fdaabfa0d85dc5544566b0e2425"
-
-S = "${WORKDIR}/git/src/importTool"
-
-DEPENDS = "protobuf zlib protobuf-native flatbuffers tensorflow-lite flatbuffers-native tensorflow-lite-native"
-
-EXTRA_OEMAKE += "TIARM_TOOLS=${GCC_ARM_NONE_TOOLCHAIN}"
-EXTRA_OEMAKE += "XDAIS_PATH=${XDAIS_INSTALL_DIR}"
-EXTRA_OEMAKE += "SHOW_COMMANDS=1"
-EXTRA_OEMAKE += "CORE=eve"
-EXTRA_OEMAKE += "TARGET_BUILD=release"
-EXTRA_OEMAKE += "TARGET_PLATFORM=PC"
-
-EXTRA_MAKE_ARGS = "PLATFORM_BUILD=x86 LINUXENV=x86 LINUX_IMPORT_TOOL=64BIT \
-                   PROTOBUF_LIB_DIR=${STAGING_DIR_NATIVE}/usr/lib PROTOBUF_INC_DIR=${STAGING_DIR_NATIVE}/usr/include \
-                   FLATBUFFERS_INC_DIR=${STAGING_DIR_NATIVE}$/usr/include/flatbuffers \
-                   TF_LITE_GENERATED_PATH=${STAGING_DIR_NATIVE}/usr/include/tensorflow/lite/schema"
-EXTRA_MAKE_ARGS:class-target = "LINUX_BUILD_TOOLS=${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX} \
-                                PROTOBUF_LIB_DIR=${STAGING_LIBDIR} PROTOBUF_INC_DIR=${STAGING_INCDIR} \
-                                FLATBUFFERS_INC_DIR=${STAGING_INCDIR}/flatbuffers \
-                                TF_LITE_GENERATED_PATH=${STAGING_INCDIR}/tensorflow/lite/schema LINUXENV=oearm"
-
-EXTRA_OEMAKE += "${EXTRA_MAKE_ARGS}"
-
-do_compile() {
-    cd ${S}/modules/ti_dl/utils
-    ./genProtoSrc.sh
-    cd ${S}
-    oe_runmake -C modules/ti_dl/utils/tidlModelImport
-}
-
-do_install () {
-    install -d ${D}${bindir}
-    install -m 755 ${S}/modules/ti_dl/utils/tidlModelImport/out/tidl_model_import.out ${D}${bindir}
-}
-
-INSANE_SKIP:${PN} = "ldflags"
-
-BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-arago-extras/recipes-ti/tidl-utils/tidl-utils.bb b/meta-arago-extras/recipes-ti/tidl-utils/tidl-utils.bb
deleted file mode 100644
index e8aad51c..00000000
--- a/meta-arago-extras/recipes-ti/tidl-utils/tidl-utils.bb
+++ /dev/null
@@ -1,34 +0,0 @@ 
-SUMMARY = "TIDL Utilities and configuration files"
-DESCRIPTION = "TIDL Utilities for standalone simulation and importing / translation of Caffe and TF-Slim models"
-HOMEPAGE = "http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components.html#tidl"
-LICENSE = "TI-TFL"
-
-require ./tidl-utils.inc
-
-LIC_FILES_CHKSUM = "file://docs/LICENSE.txt;md5=a93aa5af7a3bbbb6fb34c8df59efaa5c"
-
-RDEPENDS:${PN}:class-target += "tidl-api tidl-examples"
-
-S = "${WORKDIR}/git"
-
-TARGET:class-target = "arm"
-TARGET:class-native = "x86"
-TARGET:class-nativesdk = "x86"
-
-CP_ARGS = "-Prf --preserve=mode,timestamps --no-preserve=ownership"
-
-do_install() {
-  install -d ${D}${bindir}
-  install -d ${D}${datadir}/ti/tidl/utils/test
-  install -d ${D}${datadir}/ti/tidl/utils/docs
-  install -m 755 ${S}/${TARGET}/bin/* ${D}${bindir}
-  cp ${CP_ARGS} ${S}/test/* ${D}${datadir}/ti/tidl/utils/test/.
-  cp ${CP_ARGS} ${S}/docs/* ${D}${datadir}/ti/tidl/utils/docs/.
-}
-
-FILES:${PN} += "${datadir}/ti/tidl/utils \
-                ${bindir}"
-
-BBCLASSEXTEND = "native nativesdk"
-
-INSANE_SKIP:${PN} += "build-deps ldflags already-stripped"
diff --git a/meta-arago-extras/recipes-ti/tidl-utils/tidl-utils.inc b/meta-arago-extras/recipes-ti/tidl-utils/tidl-utils.inc
deleted file mode 100644
index 80eefe9d..00000000
--- a/meta-arago-extras/recipes-ti/tidl-utils/tidl-utils.inc
+++ /dev/null
@@ -1,4 +0,0 @@ 
-SRC_URI = "git://git.ti.com/git/tidl/tidl-utils.git;protocol=https;branch=master"
-SRCREV = "6a51b2aff1709c13edb3445bdb4698a28fbb2ae7"
-PV = "01.01.03.02"
-PR = "r1"