diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-07-20 22:25:14 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-07-20 22:25:14 +0000 |
commit | 7ff45c5adb195cdd4e39e4ef115135e32fd432c9 (patch) | |
tree | 72d0939d8ea7166a04f4e891256718f45360c850 /include | |
parent | 075883e85b5d65416feac61957b247cdaa2dcc0f (diff) | |
download | upstream-7ff45c5adb195cdd4e39e4ef115135e32fd432c9.tar.gz upstream-7ff45c5adb195cdd4e39e4ef115135e32fd432c9.tar.bz2 upstream-7ff45c5adb195cdd4e39e4ef115135e32fd432c9.zip |
disable kmod packages where the KCONFIG options are =y
SVN-Revision: 8086
Diffstat (limited to 'include')
-rw-r--r-- | include/kernel.mk | 16 |
1 files 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))) |