allow platform support directories to add and modify kernel module packages
authorFelix Fietkau <nbd@openwrt.org>
Tue, 17 Oct 2006 13:28:44 +0000 (13:28 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 17 Oct 2006 13:28:44 +0000 (13:28 +0000)
SVN-Revision: 5184

package/kernel/Makefile
package/kernel/modules/other.mk
target/linux/brcm-2.4/modules.mk [new file with mode: 0644]

index 7c81cda0ae96dcc068f124351d66b9feb9e87a2b..f755bed96f9c0a3d9ac257b648f1855eabf35d3b 100644 (file)
@@ -59,6 +59,7 @@ define KernelPackage
   $(eval $(call KernelPackage/Defaults))
   $(eval $(call KernelPackage/$(1)))
   $(eval $(call KernelPackage/$(1)/$(KERNEL)))
+  $(eval $(call KernelPackage/$(1)/$(BOARD)-$(KERNEL)))
 
   define Package/kmod-$(1)
     TITLE:=$(TITLE)
@@ -88,4 +89,5 @@ define AutoLoad
   add_module $(1) "$(2)";
 endef
 
+include $(TOPDIR)/target/linux/*/modules.mk
 include ./modules/*.mk
index 0670a3ce1ca940131197076da846f1539d6a153f..c9264ed7c406262e63e9f123f89bcc777becb140 100644 (file)
@@ -69,13 +69,11 @@ define KernelPackage/lp
   KCONFIG:=$(CONFIG_PARPORT)
   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)
   SUBMENU:=$(EMENU)
   AUTOLOAD:=$(call AutoLoad,50, \
        parport \
-       parport_splink \
        lp \
   )
 endef
diff --git a/target/linux/brcm-2.4/modules.mk b/target/linux/brcm-2.4/modules.mk
new file mode 100644 (file)
index 0000000..6c4ecae
--- /dev/null
@@ -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
+