aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adam Duskett <Aduskett@gmail.com>2020-03-30 16:46:12 -0700
committerGravatar Yann E. MORIN <yann.morin.1998@free.fr>2020-04-01 22:16:51 +0200
commitd6f33d36af353668fe09a93a111c529e4ac5eaa7 (patch)
tree27503ad1df05b85e854223b3c46b97c2801a952a
parentf77b149a36b5dbaf51d7b8ea35752b6924d1b62d (diff)
downloadbuildroot-d6f33d36af353668fe09a93a111c529e4ac5eaa7.tar.gz
buildroot-d6f33d36af353668fe09a93a111c529e4ac5eaa7.tar.bz2
package/nftables: check for python
If python or python3 is selected, nftables should depend on the package and set the --enable-python option, otherwise set --disable-python Signed-off-by: Adam Duskett <Aduskett@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
-rw-r--r--package/nftables/nftables.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/nftables/nftables.mk b/package/nftables/nftables.mk
index 11ef6844ce..210e950c11 100644
--- a/package/nftables/nftables.mk
+++ b/package/nftables/nftables.mk
@@ -27,6 +27,13 @@ else
NFTABLES_CONF_OPTS += --without-json
endif
+ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y)
+NFTABLES_CONF_OPTS += --enable-python
+NFTABLES_DEPENDENCIES += $(if $(BR2_PACKAGE_PYTHON),python,python3)
+else
+NFTABLES_CONF_OPTS += --disable-python
+endif
+
ifeq ($(BR2_STATIC_LIBS)$(BR2_PACKAGE_LIBNFTNL_JSON),yy)
NFTABLES_LIBS += -ljansson -lm
endif