Skip to contentSkip to conversation

opencv: Disable tbb on riscv/musl

PATCH New Khem Raj 1 participant 1 message May 20, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 opencv: Disable tbb on riscv/musl

getcontext|setcontext functionality is provided via libucontext for musl but this library is not yet ported to RISCV

---
 meta-oe/recipes-support/opencv/opencv_4.5.2.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-support/opencv/opencv_4.5.2.bb +3 -0
index 1dcd8586cd..226bad5778 100644
@@ -108,6 +108,9 @@ PACKAGECONFIG ??= "gapi python3 eigen jpeg png tiff v4l libv4l gstreamer samples
 
 # TBB does not build for powerpc so disable that package config
 PACKAGECONFIG_remove_powerpc = "tbb"
+# tbb now needs getcontect/setcontext which is not there for all arches on musl
+PACKAGECONFIG_remove_libc-musl_riscv64 = "tbb"
+PACKAGECONFIG_remove_libc-musl_riscv32 = "tbb"
 
 PACKAGECONFIG[gapi] = "-DWITH_ADE=ON -Dade_DIR=${STAGING_LIBDIR},-DWITH_ADE=OFF,ade"
 PACKAGECONFIG[amdblas] = "-DWITH_OPENCLAMDBLAS=ON,-DWITH_OPENCLAMDBLAS=OFF,libclamdblas,"
Signature · 1 line
2.31.1