From: Fabrice Fontaine Date: Sun, 3 Feb 2019 18:04:16 +0000 (+0100) Subject: package/systemd: add optional iptables dependency X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9fe205c59be863fa8a4a1609ae9099423a908adb;p=buildroot.git package/systemd: add optional iptables dependency Signed-off-by: Fabrice Fontaine Acked-by: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- 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