summaryrefslogtreecommitdiff
path: root/include/kernel.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-07-20 22:25:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-07-20 22:25:14 +0000
commit7ff45c5adb195cdd4e39e4ef115135e32fd432c9 (patch)
tree72d0939d8ea7166a04f4e891256718f45360c850 /include/kernel.mk
parent075883e85b5d65416feac61957b247cdaa2dcc0f (diff)
downloadmtk-20170518-7ff45c5adb195cdd4e39e4ef115135e32fd432c9.zip
mtk-20170518-7ff45c5adb195cdd4e39e4ef115135e32fd432c9.tar.gz
mtk-20170518-7ff45c5adb195cdd4e39e4ef115135e32fd432c9.tar.bz2
disable kmod packages where the KCONFIG options are =y
SVN-Revision: 8086
Diffstat (limited to 'include/kernel.mk')
-rw-r--r--include/kernel.mk16
1 files changed, 9 insertions, 7 deletions
diff --git a/include/kernel.mk b/include/kernel.mk
index d27f8ac..b758f1d 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)))