fix kmod-ipt-imq module generation (closes: #3896)
authorNicolas Thill <nico@openwrt.org>
Thu, 21 Aug 2008 13:17:47 +0000 (13:17 +0000)
committerNicolas Thill <nico@openwrt.org>
Thu, 21 Aug 2008 13:17:47 +0000 (13:17 +0000)
SVN-Revision: 12361

package/kernel/modules/netfilter.mk

index 31c6287a5d976fab7ecbb1b5f7846983b5fe8d41..345153a2531ac12ac21150dac76e0313f75fc980 100644 (file)
@@ -156,9 +156,18 @@ $(eval $(call KernelPackage,ipt-nathelper-extra))
 define KernelPackage/ipt-imq
   SUBMENU:=$(NF_MENU)
   TITLE:=Intermediate Queueing support
-  KCONFIG:=CONFIG_IP_NF_TARGET_IMQ
-  FILES:=$(LINUX_DIR)/net/ipv4/netfilter/*IMQ*.$(LINUX_KMOD_SUFFIX) $(LINUX_DIR)/drivers/net/imq.$(LINUX_KMOD_SUFFIX)
-  AUTOLOAD:=$(call AutoLoad,40,$(notdir $(patsubst %.ko,%,$(wildcard $(LINUX_DIR)/net/ipv4/netfilter/*IMQ*.$(LINUX_KMOD_SUFFIX) $(LINUX_DIR)/drivers/net/imq.$(LINUX_KMOD_SUFFIX)))))
+  KCONFIG:= \
+       CONFIG_IMQ \
+       CONFIG_IMQ_BEHAVIOR_BA=y \
+       CONFIG_IMQ_NUM_DEVS=2 \
+       CONFIG_IP_NF_TARGET_IMQ
+  FILES:= \
+       $(LINUX_DIR)/drivers/net/imq.$(LINUX_KMOD_SUFFIX) \
+       $(foreach mod,$(IPT_IMQ-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
+  AUTOLOAD:=$(call AutoLoad,40,$(notdir \
+       $(LINUX_DIR)/drivers/net/imq.$(LINUX_KMOD_SUFFIX) \
+       $(IPT_IMQ-m) \
+  ))
 endef
 
 define KernelPackage/ipt-imq/description