From: Travis Kemen Date: Thu, 15 May 2008 00:57:50 +0000 (+0000) Subject: This patch makes kernel modules check if config is defined and creates a config passt... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7c7bd6f61c5a47b06928f821dcec7f07a4fb4221;p=openwrt%2Fstaging%2Frmilecki.git 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 SVN-Revision: 11139 --- diff --git a/include/kernel.mk b/include/kernel.mk index b80c3b63ff8..7d986e4597e 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