allow platform support directories to add and modify kernel module packages

SVN-Revision: 5184
This commit is contained in:
Felix Fietkau 2006-10-17 13:28:44 +00:00
parent ce19a369af
commit fc8abe2dfa
3 changed files with 15 additions and 2 deletions

View file

@ -59,6 +59,7 @@ define KernelPackage
$(eval $(call KernelPackage/Defaults)) $(eval $(call KernelPackage/Defaults))
$(eval $(call KernelPackage/$(1))) $(eval $(call KernelPackage/$(1)))
$(eval $(call KernelPackage/$(1)/$(KERNEL))) $(eval $(call KernelPackage/$(1)/$(KERNEL)))
$(eval $(call KernelPackage/$(1)/$(BOARD)-$(KERNEL)))
define Package/kmod-$(1) define Package/kmod-$(1)
TITLE:=$(TITLE) TITLE:=$(TITLE)
@ -88,4 +89,5 @@ define AutoLoad
add_module $(1) "$(2)"; add_module $(1) "$(2)";
endef endef
include $(TOPDIR)/target/linux/*/modules.mk
include ./modules/*.mk include ./modules/*.mk

View file

@ -69,13 +69,11 @@ define KernelPackage/lp
KCONFIG:=$(CONFIG_PARPORT) KCONFIG:=$(CONFIG_PARPORT)
FILES:= \ FILES:= \
$(MODULES_DIR)/kernel/drivers/parport/parport.$(LINUX_KMOD_SUFFIX) \ $(MODULES_DIR)/kernel/drivers/parport/parport.$(LINUX_KMOD_SUFFIX) \
$(MODULES_DIR)/kernel/drivers/parport/parport_*.$(LINUX_KMOD_SUFFIX) \
$(MODULES_DIR)/kernel/drivers/char/lp.$(LINUX_KMOD_SUFFIX) \ $(MODULES_DIR)/kernel/drivers/char/lp.$(LINUX_KMOD_SUFFIX) \
$(MODULES_DIR)/kernel/drivers/char/ppdev.$(LINUX_KMOD_SUFFIX) $(MODULES_DIR)/kernel/drivers/char/ppdev.$(LINUX_KMOD_SUFFIX)
SUBMENU:=$(EMENU) SUBMENU:=$(EMENU)
AUTOLOAD:=$(call AutoLoad,50, \ AUTOLOAD:=$(call AutoLoad,50, \
parport \ parport \
parport_splink \
lp \ lp \
) )
endef endef

View file

@ -0,0 +1,13 @@
define KernelPackage/lp/brcm-2.4
FILES:= \
$(MODULES_DIR)/kernel/drivers/parport/parport.$(LINUX_KMOD_SUFFIX) \
$(MODULES_DIR)/kernel/drivers/parport/parport_*.$(LINUX_KMOD_SUFFIX) \
$(MODULES_DIR)/kernel/drivers/char/lp.$(LINUX_KMOD_SUFFIX) \
$(MODULES_DIR)/kernel/drivers/char/ppdev.$(LINUX_KMOD_SUFFIX)
AUTOLOAD:=$(call AutoLoad,50, \
parport \
parport_splink \
lp \
)
endef