mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-10-02 17:30:43 +03:00
disable kmod packages where the KCONFIG options are =y
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8086 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
bb85ff4f8d
commit
8ed41edf8e
@ -97,13 +97,15 @@ define KernelPackage
|
|||||||
$(call KernelPackage/$(1)/$(BOARD)-$(KERNEL))
|
$(call KernelPackage/$(1)/$(BOARD)-$(KERNEL))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ifneq ($(strip $(FILES)),)
|
ifeq ($(filter y,$(foreach c,$(filter-out %=y %=n %=m,$(KCONFIG)),$($(c)))),)
|
||||||
define Package/kmod-$(1)/install
|
ifneq ($(strip $(FILES)),)
|
||||||
mkdir -p $$(1)/lib/modules/$(LINUX_VERSION)
|
define Package/kmod-$(1)/install
|
||||||
$(CP) -L $$(FILES) $$(1)/lib/modules/$(LINUX_VERSION)/
|
mkdir -p $$(1)/lib/modules/$(LINUX_VERSION)
|
||||||
$(call ModuleAutoLoad,$(1),$$(1),$(AUTOLOAD))
|
$(CP) -L $$(FILES) $$(1)/lib/modules/$(LINUX_VERSION)/
|
||||||
$(call KernelPackage/$(1)/install,$$(1))
|
$(call ModuleAutoLoad,$(1),$$(1),$(AUTOLOAD))
|
||||||
endef
|
$(call KernelPackage/$(1)/install,$$(1))
|
||||||
|
endef
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
$$(eval $$(call BuildPackage,kmod-$(1)))
|
$$(eval $$(call BuildPackage,kmod-$(1)))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user