package/libftdi1: 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:49 +01:00 committed by Yann E. MORIN
parent 538dc7f027
commit 1a1db54c30
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ comment "libftdipp1 needs a toolchain w/ C++, wchar"
config BR2_PACKAGE_LIBFTDI1_PYTHON_BINDINGS
bool "python bindings"
depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
depends on BR2_PACKAGE_PYTHON3
help
Python bindings for libftdi

View File

@ -24,7 +24,7 @@ LIBFTDI1_CONF_OPTS += -DFTDIPP=OFF
endif
ifeq ($(BR2_PACKAGE_LIBFTDI1_PYTHON_BINDINGS),y)
LIBFTDI1_DEPENDENCIES += $(if $(BR2_PACKAGE_PYTHON),python,python3) host-swig
LIBFTDI1_DEPENDENCIES += python3 host-swig
LIBFTDI1_CONF_OPTS += -DPYTHON_BINDINGS=ON
else
LIBFTDI1_CONF_OPTS += -DPYTHON_BINDINGS=OFF