package/opencv4: add tbb support

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Fabrice Fontaine 2022-04-16 23:07:50 +02:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent c99d2d3429
commit 7a441e4cf9
2 changed files with 22 additions and 2 deletions

View File

@ -309,6 +309,20 @@ config BR2_PACKAGE_OPENCV4_WITH_PROTOBUF
help
Use shared protobuf from the target system.
config BR2_PACKAGE_OPENCV4_WITH_TBB
bool "tbb support"
depends on !BR2_TOOLCHAIN_USES_UCLIBC # tbb
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # tbb
select BR2_PACKAGE_TBB
help
Use shared tbb from the target system.
comment "tbb needs a glibc or musl toolchain"
depends on BR2_TOOLCHAIN_USES_UCLIBC
comment "tbb needs exception_ptr"
depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
config BR2_PACKAGE_OPENCV4_WITH_TIFF
bool "tiff support"
select BR2_PACKAGE_TIFF

View File

@ -155,8 +155,7 @@ OPENCV4_CONF_OPTS += \
-DBUILD_WITH_DYNAMIC_IPP=OFF \
-DWITH_INTELPERC=OFF \
-DWITH_IPP=OFF \
-DWITH_IPP_A=OFF \
-DWITH_TBB=OFF
-DWITH_IPP_A=OFF
# Smartek stuff
OPENCV4_CONF_OPTS += -DWITH_GIGEAPI=OFF
@ -313,6 +312,13 @@ else
OPENCV4_CONF_OPTS += -DWITH_QT=OFF
endif
ifeq ($(BR2_PACKAGE_OPENCV4_WITH_TBB),y)
OPENCV4_CONF_OPTS += -DWITH_TBB=ON
OPENCV4_DEPENDENCIES += tbb
else
OPENCV4_CONF_OPTS += -DWITH_TBB=OFF
endif
ifeq ($(BR2_PACKAGE_OPENCV4_WITH_TIFF),y)
OPENCV4_CONF_OPTS += -DWITH_TIFF=ON
OPENCV4_DEPENDENCIES += tiff