package/libiio: drop python2 support

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Peter Korsgaard
2022-02-09 17:50:50 +01:00
committed by Yann E. MORIN
parent 1a1db54c30
commit 5ac65831d5
2 changed files with 4 additions and 8 deletions

View File

@@ -91,7 +91,7 @@ config BR2_PACKAGE_LIBIIO_BINDINGS_CSHARP
config BR2_PACKAGE_LIBIIO_BINDINGS_PYTHON config BR2_PACKAGE_LIBIIO_BINDINGS_PYTHON
bool "Install Python bindings" bool "Install Python bindings"
depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3 depends on BR2_PACKAGE_PYTHON3
help help
Install the Python bindings. Install the Python bindings.

View File

@@ -73,14 +73,10 @@ LIBIIO_CONF_OPTS += -DHAVE_DNS_SD=OFF
endif endif
ifeq ($(BR2_PACKAGE_LIBIIO_BINDINGS_PYTHON),y) ifeq ($(BR2_PACKAGE_LIBIIO_BINDINGS_PYTHON),y)
ifeq ($(BR2_PACKAGE_PYTHON),y)
LIBIIO_DEPENDENCIES += host-python-setuptools python
LIBIIO_CONF_OPTS += -DPYTHON_EXECUTABLE=$(HOST_DIR)/bin/python
else ifeq ($(BR2_PACKAGE_PYTHON3),y)
LIBIIO_DEPENDENCIES += host-python3-setuptools python3 LIBIIO_DEPENDENCIES += host-python3-setuptools python3
LIBIIO_CONF_OPTS += -DPYTHON_EXECUTABLE=$(HOST_DIR)/bin/python3 LIBIIO_CONF_OPTS += \
endif -DPYTHON_BINDINGS=ON
LIBIIO_CONF_OPTS += -DPYTHON_BINDINGS=ON -DPYTHON_EXECUTABLE=$(HOST_DIR)/bin/python3
else else
LIBIIO_CONF_OPTS += -DPYTHON_BINDINGS=OFF LIBIIO_CONF_OPTS += -DPYTHON_BINDINGS=OFF
endif endif