summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Fontaine <fontaine.fabrice@gmail.com>2019-02-03 19:04:16 +0100
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2019-02-04 11:25:26 +0100
commit9fe205c59be863fa8a4a1609ae9099423a908adb (patch)
tree8b54e83cc0ef871647ff8c3617f5cd8fb960af3a
parentbf48bf86295bc4628bcd14fd4ca415d6971c8ab8 (diff)
downloadbuildroot-9fe205c59be863fa8a4a1609ae9099423a908adb.tar.gz
buildroot-9fe205c59be863fa8a4a1609ae9099423a908adb.zip
package/systemd: add optional iptables dependency
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/systemd/systemd.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
index 15db1969e5..f9df66b039 100644
--- a/package/systemd/systemd.mk
+++ b/package/systemd/systemd.mk
@@ -64,6 +64,13 @@ else
SYSTEMD_CONF_OPTS += -Delfutils=false
endif
+ifeq ($(BR2_PACKAGE_IPTABLES),y)
+SYSTEMD_DEPENDENCIES += iptables
+SYSTEMD_CONF_OPTS += -Dlibiptc=true
+else
+SYSTEMD_CONF_OPTS += -Dlibiptc=false
+endif
+
# Both options can't be selected at the same time so prefer libidn2
ifeq ($(BR2_PACKAGE_LIBIDN2),y)
SYSTEMD_DEPENDENCIES += libidn2
OpenPOWER on IntegriCloud