aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2022-01-21 20:59:18 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2022-01-22 12:40:02 +0100
commit4dda991038ad6d609933509b698d395e06df59a2 (patch)
treed5afe5f82824166f94bbc0fa6ea927a01995aeed
parent8bcfaa71e035b6a1f89d5da5eb3c27850eb5ae45 (diff)
downloadmeta-freescale-4dda991038ad6d609933509b698d395e06df59a2.tar.gz
meta-freescale-4dda991038ad6d609933509b698d395e06df59a2.tar.bz2
meta-freescale-4dda991038ad6d609933509b698d395e06df59a2.zip
opencv: imx: stop fetching tiny-dnn
With commit f7ca9ef27 ("cleanup: drop dnn_modern") [1] tiny-dnn is no longer used by any module. There is no need to prefetch it. This was part of OpenCV 3.4.2. Prevents: | WARNING: opencv-4.5.2.imx-r0 do_unpack: QA Issue: opencv: SRC_URI uses unstable GitHub/GitLab archives, convert recipe to use git protocol [src-uri-bad] [1] https://github.com/opencv/opencv_contrib/commit/f7ca9ef279bbb9d7bbb791548725d91e46725550 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r--recipes-support/opencv/opencv_4.5.2.imx.bb10
1 files changed, 1 insertions, 9 deletions
diff --git a/recipes-support/opencv/opencv_4.5.2.imx.bb b/recipes-support/opencv/opencv_4.5.2.imx.bb
index df277d0e..f8824a18 100644
--- a/recipes-support/opencv/opencv_4.5.2.imx.bb
+++ b/recipes-support/opencv/opencv_4.5.2.imx.bb
@@ -265,11 +265,8 @@ SRC_URI += " \
"
SRCREV_FORMAT:append = "_extra"
-# Add tiny-dnn
-SRC_URI[tinydnn.md5sum] = "adb1c512e09ca2c7a6faef36f9c53e59"
-SRC_URI[tinydnn.sha256sum] = "e2c61ce8c5debaa644121179e9dbdcf83f497f39de853f8dd5175846505aa18b"
+# Patch DNN example
SRC_URI += " \
- https://github.com/tiny-dnn/tiny-dnn/archive/v1.0.0a3.tar.gz;destsuffix=git/3rdparty/tinydnn/tiny-dnn-1.0.0a3;name=tinydnn;unpack=false \
file://OpenCV_DNN_examples.patch \
"
@@ -286,11 +283,6 @@ PACKAGECONFIG[openvx] = "-DWITH_OPENVX=ON -DOPENVX_ROOT=${STAGING_LIBDIR} -DOPEN
PACKAGECONFIG[qt5] = "-DWITH_QT=ON -DOE_QMAKE_PATH_EXTERNAL_HOST_BINS=${STAGING_BINDIR_NATIVE} -DCMAKE_PREFIX_PATH=${STAGING_BINDIR_NATIVE}/cmake,-DWITH_QT=OFF,qtbase qtbase-native,"
PACKAGECONFIG[tests-imx] = "-DINSTALL_TESTS=ON -DOPENCV_TEST_DATA_PATH=${S}/../extra/testdata, -DINSTALL_TESTS=OFF,"
-do_unpack_extra:append() {
- mkdir -p ${S}/3rdparty/tinydnn/
- tar xzf ${WORKDIR}/v1.0.0a3.tar.gz -C ${S}/3rdparty/tinydnn/
-}
-
do_install:append() {
ln -sf opencv4/opencv2 ${D}${includedir}/opencv2
install -d ${D}${datadir}/OpenCV/samples/data