package/opencv3: properly propagate Config.in comment dependencies
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 1 May 2020 12:35:39 +0000 (14:35 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 1 May 2020 12:35:39 +0000 (14:35 +0200)
Python support in OpenCV3 indeed requires a glibc or musl toolchain,
but is only available if Python 3.x is enabled, and if we're on an
architecture with Numpy support.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/opencv3/Config.in

index 18c390c5157e5cddcdf81655450d68edbbad781e..f45d678d223069c2297d5859b80323b157a06610 100644 (file)
@@ -165,6 +165,8 @@ config BR2_PACKAGE_OPENCV3_LIB_PYTHON
          python example is installed.
 
 comment "python support needs glibc or musl"
+       depends on BR2_PACKAGE_PYTHON3
+       depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
        depends on !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)
 
 config BR2_PACKAGE_OPENCV3_LIB_SHAPE