This patch makes kernel modules check if config is defined and creates a config
passthrough target which will evaluate the original config in the generated
package. This is done so kernel modules can have configuration menus like
busybox, etc...

Signed-off-by: Axel Gembe <[EMAIL PROTECTED]>
---
 include/kernel.mk |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/include/kernel.mk b/include/kernel.mk
index 52355dc..6d03683 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -120,6 +120,12 @@ $(call KernelPackage/$(1)/description)
     endef
   endif
 
+  ifdef KernelPackage/$(1)/config
+    define Package/kmod-$(1)/config
+$(call KernelPackage/$(1)/config)
+    endef
+  endif
+
   ifneq ($(if $(KCONFIG),$(filter m,$(foreach c,$(filter-out %=y %=n 
%=m,$(KCONFIG)),$($(c)))),.),)
     ifneq ($(strip $(FILES)),)
       define Package/kmod-$(1)/install
-- 
1.5.5.1

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to