package/nftables: 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:56 +01:00 committed by Yann E. MORIN
parent 02a0676803
commit e45321b19c

View File

@ -35,9 +35,9 @@ else
NFTABLES_CONF_OPTS += --without-json NFTABLES_CONF_OPTS += --without-json
endif endif
ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y) ifeq ($(BR2_PACKAGE_PYTHON3),y)
NFTABLES_CONF_OPTS += --enable-python NFTABLES_CONF_OPTS += --enable-python
NFTABLES_DEPENDENCIES += $(if $(BR2_PACKAGE_PYTHON),python,python3) NFTABLES_DEPENDENCIES += python3
else else
NFTABLES_CONF_OPTS += --disable-python NFTABLES_CONF_OPTS += --disable-python
endif endif