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:
parent
1a1db54c30
commit
5ac65831d5
@ -91,7 +91,7 @@ config BR2_PACKAGE_LIBIIO_BINDINGS_CSHARP
|
||||
|
||||
config BR2_PACKAGE_LIBIIO_BINDINGS_PYTHON
|
||||
bool "Install Python bindings"
|
||||
depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
|
||||
depends on BR2_PACKAGE_PYTHON3
|
||||
help
|
||||
Install the Python bindings.
|
||||
|
||||
|
@ -73,14 +73,10 @@ LIBIIO_CONF_OPTS += -DHAVE_DNS_SD=OFF
|
||||
endif
|
||||
|
||||
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_CONF_OPTS += -DPYTHON_EXECUTABLE=$(HOST_DIR)/bin/python3
|
||||
endif
|
||||
LIBIIO_CONF_OPTS += -DPYTHON_BINDINGS=ON
|
||||
LIBIIO_CONF_OPTS += \
|
||||
-DPYTHON_BINDINGS=ON
|
||||
-DPYTHON_EXECUTABLE=$(HOST_DIR)/bin/python3
|
||||
else
|
||||
LIBIIO_CONF_OPTS += -DPYTHON_BINDINGS=OFF
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user