mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-03 07:21:45 -09:00
The recent changes in freeswitch following the removal of OpenCV 3.x in commita6db6af9ff("package/freeswitch: remove optional dependency to opencv3") caused some invalid dependencies. Indeed, the new logic selects BR2_PACKAGE_OPENCV4_LIB_OBJDETECT as soon as BR2_PACKAGE_OPENCV4 is enabled, without worrying about the dependencies of BR2_PACKAGE_OPENCV4_LIB_OBJDETECT. This causes the following Kconfig warning: WARNING: unmet direct dependencies detected for BR2_PACKAGE_OPENCV4_LIB_OBJDETECT Depends on [n]: BR2_PACKAGE_OPENCV4 [=y] && !BR2_TOOLCHAIN_USES_UCLIBC [=n] && BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS [=y] && BR2_TOOLCHAIN_GCC_AT_LEAST_8 [=n] Selected by [y]: - BR2_PACKAGE_FREESWITCH [=y] && BR2_INSTALL_LIBSTDCPP [=y] && !BR2_STATIC_LIBS [=n] && BR2_TOOLCHAIN_HAS_THREADS [=y] && BR2_USE_MMU [=y] && BR2_USE_WCHAR [=y] && BR2_PACKAGE_OPENCV4 [=y] Since freeswitch as no visible sub-options to select extra features and we wanted to keep it this way, we introduce a hidden sub-option that informs freeswitch.mk whether OpenCV 4 support is usable. It makes it easier to express the dependencies that are needed for this OpenCV 4 to be usable. Fixes:a6db6af9ff("package/freeswitch: remove optional dependency to opencv3") Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Julien Olivain <ju.o@free.fr>