From 2f879293a9579524e905e1f08dd3e7c2bbb2826d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 20 Jul 2007 22:25:14 +0000 Subject: [PATCH] disable kmod packages where the KCONFIG options are =y SVN-Revision: 8086 --- include/kernel.mk | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/include/kernel.mk b/include/kernel.mk index d27f8ac6ac..b758f1db22 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -97,13 +97,15 @@ define KernelPackage $(call KernelPackage/$(1)/$(BOARD)-$(KERNEL)) endef - ifneq ($(strip $(FILES)),) - define Package/kmod-$(1)/install - mkdir -p $$(1)/lib/modules/$(LINUX_VERSION) - $(CP) -L $$(FILES) $$(1)/lib/modules/$(LINUX_VERSION)/ - $(call ModuleAutoLoad,$(1),$$(1),$(AUTOLOAD)) - $(call KernelPackage/$(1)/install,$$(1)) - endef + ifeq ($(filter y,$(foreach c,$(filter-out %=y %=n %=m,$(KCONFIG)),$($(c)))),) + ifneq ($(strip $(FILES)),) + define Package/kmod-$(1)/install + mkdir -p $$(1)/lib/modules/$(LINUX_VERSION) + $(CP) -L $$(FILES) $$(1)/lib/modules/$(LINUX_VERSION)/ + $(call ModuleAutoLoad,$(1),$$(1),$(AUTOLOAD)) + $(call KernelPackage/$(1)/install,$$(1)) + endef + endif endif $$(eval $$(call BuildPackage,kmod-$(1))) -- 2.30.2