add support for new modules.mk format (no autogenerated Config.in yet)
[openwrt/svn-archive/archive.git] / openwrt / include / modules.mk
1 include $(TOPDIR)/include/kernel.mk
2
3 define KernelPackage/ide-core
4 TITLE:=Kernel support for IDE
5 DESCRIPTION:=Kernel modules for IDE support\\\
6 useful for usb mass storage devices (e.g. on WL-HDD)\\\
7 \\\
8 Includes: \\\
9 - ide-core \\\
10 - ide-detect \\\
11 - ide-disk \\\
12 - pdc202xx_old
13 KCONFIG:=CONFIG_IDE
14 FILES:=$(MODULES_DIR)/kernel/drivers/ide/*.$(LINUX_KMOD_SUFFIX)
15 MODULES:=$(call AutoLoad,20,ide-core) $(call AutoLoad,90,ide-detect ide-disk)
16 endef
17 $(eval $(call KernelPackage,ide-core))
18
19 define KernelPackage/ide-pdc202xx
20 TITLE:=PDC202xx IDE driver
21 DESCRIPTION:=PDC202xx IDE driver
22 KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
23 FILES:=$(MODULES_DIR)/kernel/drivers/ide/pci/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
24 MODULES:=$(call AutoLoad,30,pdc202xx_old)
25 endef
26 $(eval $(call KernelPackage,ide-pdc202xx))
27