summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-08-03 17:07:32 +0200
committerFelix Fietkau <nbd@nbd.name>2016-08-03 19:16:32 +0200
commitfa85ee1d4ef6bbbc75c8159c4bc1c3b52e2b889b (patch)
tree966d0ec0bfb9b7e5ae3dfa6478f09362a28ac4c8 /package
parenta5c32a1f1996f4f75504c4a9abd1c99eaa598df1 (diff)
downloadmtk-20170518-fa85ee1d4ef6bbbc75c8159c4bc1c3b52e2b889b.zip
mtk-20170518-fa85ee1d4ef6bbbc75c8159c4bc1c3b52e2b889b.tar.gz
mtk-20170518-fa85ee1d4ef6bbbc75c8159c4bc1c3b52e2b889b.tar.bz2
kernel: modularize bridge netfilter support a bit further to get rid of some kernel bloat
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package')
-rw-r--r--package/kernel/linux/modules/netfilter.mk23
1 files changed, 19 insertions, 4 deletions
diff --git a/package/kernel/linux/modules/netfilter.mk b/package/kernel/linux/modules/netfilter.mk
index 353de3e..6876f24 100644
--- a/package/kernel/linux/modules/netfilter.mk
+++ b/package/kernel/linux/modules/netfilter.mk
@@ -579,7 +579,7 @@ define KernelPackage/ipt-extra
KCONFIG:=$(KCONFIG_IPT_EXTRA)
FILES:=$(foreach mod,$(IPT_EXTRA-m),$(LINUX_DIR)/net/$(mod).ko)
AUTOLOAD:=$(call AutoProbe,$(notdir $(IPT_EXTRA-m)))
- $(call AddDepends/ipt)
+ $(call AddDepends/ipt,+kmod-br-netfilter)
endef
define KernelPackage/ipt-extra/description
@@ -644,12 +644,27 @@ endef
$(eval $(call KernelPackage,arptables))
+define KernelPackage/br-netfilter
+ SUBMENU:=$(NF_MENU)
+ TITLE:=Bridge netfilter support modules
+ HIDDEN:=1
+ DEPENDS:=+kmod-ipt-core +kmod-bridge
+ FILES:=$(LINUX_DIR)/net/bridge/br_netfilter.ko
+ KCONFIG:=CONFIG_BRIDGE_NETFILTER
+ AUTOLOAD:=$(call AutoProbe,br_netfilter)
+endef
+
+$(eval $(call KernelPackage,br-netfilter))
+
+
define KernelPackage/ebtables
SUBMENU:=$(NF_MENU)
TITLE:=Bridge firewalling modules
- DEPENDS:=+kmod-ipt-core +kmod-bridge
- FILES:=$(foreach mod,$(EBTABLES-m),$(LINUX_DIR)/net/$(mod).ko)
- KCONFIG:=CONFIG_BRIDGE_NETFILTER=y \
+ DEPENDS:=+kmod-ipt-core +kmod-bridge +kmod-br-netfilter
+ FILES:= \
+ $(LINUX_DIR)/net/bridge/br_netfilter.ko \
+ $(foreach mod,$(EBTABLES-m),$(LINUX_DIR)/net/$(mod).ko)
+ KCONFIG:=CONFIG_BRIDGE_NETFILTER \
$(KCONFIG_EBTABLES)
AUTOLOAD:=$(call AutoProbe,$(notdir $(EBTABLES-m)))
endef