Skip to contentSkip to conversation

opencv: drop deprecated bbappend for DSP-offloading

PATCH In review Denys Dmytriyenko 2 participants 2 messages Mar 16, 2021 – Mar 17, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opencv: drop deprecated bbappend for DSP-offloading

From: Denys Dmytriyenko <[email protected]>

DSP-offloading to OpenCL hasn't been updated for ~3 years [1] and is based on version 3.1, which is no longer available. Remove remaining bbappend.

[1] https://git.ti.com/cgit/opencv/tiopencv/log/?h=tiopencvrelease_3.1

---
 .../recipes-support/opencv/opencv_3.1.bbappend     | 41 ----------------------
 1 file changed, 41 deletions(-)
 delete mode 100644 meta-arago-distro/recipes-support/opencv/opencv_3.1.bbappend
meta-arago-distro/recipes-support/opencv/opencv_3.1.bbappend deleted +0 -41
deleted file mode 100644
index a87e832..0000000
@@ -1,41 +0,0 @@
-PR = "r3"
-
-BRANCH = "tiopencvrelease_3.1"
-
-SRC_URI_remove = "git://github.com/Itseez/opencv.git;name=opencv"
-SRC_URI_prepend = "git://git.ti.com/opencv/tiopencv.git;protocol=git;branch=${BRANCH};name=opencv"
-
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
-
-SRC_URI_append += "\
-     file://setupEnv.sh \
-"
-
-SRCREV_opencv = "102577cf10416ca8180adda88d3fd801eebc6318"
-
-DEPENDS_remove_keystone = "qtbase"
-
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
-PACKAGECONFIG_QTWAYLAND = "${@bb.utils.contains("DISTRO_FEATURES", "wayland", "qtwayland", "", d)}"
-PACKAGECONFIG_QTWAYLAND_keystone = ""
-
-PACKAGECONFIG_append = " ${PACKAGECONFIG_QTWAYLAND} \
-                         ${@bb.utils.contains('MACHINE_FEATURES','dsp','opencl', '', d)} \
-"
-
-PACKAGECONFIG_remove = "python3"
-PACKAGECONFIG_remove = "python2"
-
-inherit cmake_qt5
-
-PACKAGECONFIG[opencl] = "-DWITH_OPENCL=ON -DCMAKE_CXX_FLAGS_RELEASE="${CMAKE_CXX_FLAGS_RELEASE} -DCV_TIOPENCL -DCV_TIOPENCL_ENABLE_PROGRAM_COUNT -DMAX_PROGRAM_HASH_SIZE=50" -DCMAKE_C_FLAGS_RELEASE="${CMAKE_C_FLAGS_RELEASE} -DCV_TIOPENCL -DCV_TIOPENCL_ENABLE_PROGRAM_COUNT -DMAX_PROGRAM_HASH_SIZE=50" -DWITH_OPENCLAMDFFT=OFF -DWITH_OPENCLAMDBLAS=OFF,-DWITH_OPENCL=OFF,cmem opencl,"
-PACKAGECONFIG[qtwayland] = "-DWITH_QT=ON,-DWITH_QT=OFF,qtwayland,"
-
-do_install_append() {
-    install -d ${D}${datadir}/OpenCV/samples/bin/
-    install -d ${D}${datadir}/OpenCV/titestsuite/
-    cp -f bin/*_test_* ${D}${datadir}/OpenCV/samples/bin/
-    cp -f ${S}/titestsuite/* ${D}${datadir}/OpenCV/titestsuite/
-    cp -f ${WORKDIR}/setupEnv.sh ${D}${datadir}/OpenCV/titestsuite/
-}
Signature · 1 line
2.7.4
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

DSP-offloading to OpenCL hasn't been updated for ~3 years [1] and is based on version 3.1, which is no longer available. Remove remaining bbappend.

[1] https://git.ti.com/cgit/opencv/tiopencv/log/?h=tiopencvrelease_3.1

Thanks.

Also tested to confirm this gets rid of the following:

WARNING: No recipes available for:
/workdir/pub-sdk/oe-layersetup/sources/meta-arago/meta-arago-distro/recipes-support/opencv/opencv_3.1.bbappend

Quoted 61 lines
---
 .../recipes-support/opencv/opencv_3.1.bbappend     | 41 ----------------------
 1 file changed, 41 deletions(-)
 delete mode 100644 meta-arago-distro/recipes-support/opencv/opencv_3.1.bbappend
meta-arago-distro/recipes-support/opencv/opencv_3.1.bbappend deleted +0 -41
deleted file mode 100644
index a87e832..0000000
@@ -1,41 +0,0 @@
-PR = "r3"
-
-BRANCH = "tiopencvrelease_3.1"
-
-SRC_URI_remove = "git://github.com/Itseez/opencv.git;name=opencv"
-SRC_URI_prepend = "git://git.ti.com/opencv/tiopencv.git;protocol=git;branch=${BRANCH};name=opencv"
-
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
-
-SRC_URI_append += "\
-     file://setupEnv.sh \
-"
-
-SRCREV_opencv = "102577cf10416ca8180adda88d3fd801eebc6318"
-
-DEPENDS_remove_keystone = "qtbase"
-
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
-PACKAGECONFIG_QTWAYLAND = "${@bb.utils.contains("DISTRO_FEATURES", "wayland", "qtwayland", "", d)}"
-PACKAGECONFIG_QTWAYLAND_keystone = ""
-
-PACKAGECONFIG_append = " ${PACKAGECONFIG_QTWAYLAND} \
-                         ${@bb.utils.contains('MACHINE_FEATURES','dsp','opencl', '', d)} \
-"
-
-PACKAGECONFIG_remove = "python3"
-PACKAGECONFIG_remove = "python2"
-
-inherit cmake_qt5
-
-PACKAGECONFIG[opencl] = "-DWITH_OPENCL=ON -DCMAKE_CXX_FLAGS_RELEASE="${CMAKE_CXX_FLAGS_RELEASE} -DCV_TIOPENCL -DCV_TIOPENCL_ENABLE_PROGRAM_COUNT -DMAX_PROGRAM_HASH_SIZE=50" -DCMAKE_C_FLAGS_RELEASE="${CMAKE_C_FLAGS_RELEASE} -DCV_TIOPENCL -DCV_TIOPENCL_ENABLE_PROGRAM_COUNT -DMAX_PROGRAM_HASH_SIZE=50" -DWITH_OPENCLAMDFFT=OFF -DWITH_OPENCLAMDBLAS=OFF,-DWITH_OPENCL=OFF,cmem opencl,"
-PACKAGECONFIG[qtwayland] = "-DWITH_QT=ON,-DWITH_QT=OFF,qtwayland,"
-
-do_install_append() {
-    install -d ${D}${datadir}/OpenCV/samples/bin/
-    install -d ${D}${datadir}/OpenCV/titestsuite/
-    cp -f bin/*_test_* ${D}${datadir}/OpenCV/samples/bin/
-    cp -f ${S}/titestsuite/* ${D}${datadir}/OpenCV/titestsuite/
-    cp -f ${WORKDIR}/setupEnv.sh ${D}${datadir}/OpenCV/titestsuite/
-}
Signature · 6 lines
2.7.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D