From: Felix Fietkau Date: Fri, 20 Jul 2007 22:25:14 +0000 (+0000) Subject: disable kmod packages where the KCONFIG options are =y X-Git-Tag: reboot~28581 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7ff45c5adb195cdd4e39e4ef115135e32fd432c9;p=oweals%2Fopenwrt.git disable kmod packages where the KCONFIG options are =y SVN-Revision: 8086 --- 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)))