move package description to a separate definition, remove it when DESCRIPTION=TITLE
[openwrt/openwrt.git] / package / kernel / modules / block.mk
1 BLMENU:=Block Devices
2
3 define KernelPackage/ide-core
4 SUBMENU:=$(BLMENU)
5 TITLE:=Kernel support for IDE
6 KCONFIG:= \
7 CONFIG_IDE \
8 CONFIG_BLK_DEV_IDE \
9 CONFIG_BLK_DEV_IDEDISK
10 FILES:= \
11 $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
12 $(LINUX_DIR)/drivers/ide/ide-disk.$(LINUX_KMOD_SUFFIX)
13 AUTOLOAD:=$(call AutoLoad,20,ide-core) $(call AutoLoad,40,ide-disk)
14 endef
15
16 define KernelPackage/ide-core/2.4
17 FILES+=$(LINUX_DIR)/drivers/ide/ide-detect.$(LINUX_KMOD_SUFFIX)
18 AUTOLOAD+=$(call AutoLoad,30,ide-detect)
19 endef
20
21 define KernelPackage/ide-core/2.6
22 KCONFIG+=CONFIG_IDE_GENERIC
23 FILES+=$(LINUX_DIR)/drivers/ide/ide-generic.$(LINUX_KMOD_SUFFIX)
24 AUTOLOAD+=$(call AutoLoad,30,ide-generic)
25 endef
26
27 define KernelPackage/ide-core/description
28 Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
29 Includes:
30 - ide-core
31 - ide-detect
32 - ide-disk
33 endef
34
35 $(eval $(call KernelPackage,ide-core))
36
37
38 define KernelPackage/ide-pdc202xx
39 SUBMENU:=$(BLMENU)
40 TITLE:=PDC202xx IDE driver
41 DEPENDS:=@LINUX_2_4
42 KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
43 FILES:=$(LINUX_DIR)/drivers/ide/pci/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
44 AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old)
45 endef
46
47 $(eval $(call KernelPackage,ide-pdc202xx))
48
49
50 define KernelPackage/ide-aec62xx
51 SUBMENU:=$(BLMENU)
52 TITLE:=AEC62xx IDE driver
53 KCONFIG:=CONFIG_BLK_DEV_AEC62XX
54 FILES:=$(LINUX_DIR)/drivers/ide/pci/aec62xx.$(LINUX_KMOD_SUFFIX)
55 AUTOLOAD:=$(call AutoLoad,30,aec62xx)
56 endef
57
58 $(eval $(call KernelPackage,ide-aec62xx))
59
60
61 define KernelPackage/scsi-core
62 SUBMENU:=$(BLMENU)
63 TITLE:=Kernel support for SCSI
64 KCONFIG:= \
65 CONFIG_SCSI \
66 CONFIG_BLK_DEV_SD
67 FILES:= \
68 $(LINUX_DIR)/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX) \
69 $(LINUX_DIR)/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX)
70 AUTOLOAD:=$(call AutoLoad,20,scsi_mod) $(call AutoLoad,40,sd_mod)
71 endef
72
73 $(eval $(call KernelPackage,scsi-core))
74
75
76 define KernelPackage/libata
77 SUBMENU:=$(BLMENU)
78 TITLE:=libata
79 DEPENDS:=@PCI_SUPPORT @LINUX_2_6
80 KCONFIG:=CONFIG_ATA
81 FILES:=$(LINUX_DIR)/drivers/ata/libata.$(LINUX_KMOD_SUFFIX)
82 AUTOLOAD:=$(call AutoLoad,21,libata)
83 endef
84
85 $(eval $(call KernelPackage,libata))
86
87
88 define KernelPackage/ata-piix
89 SUBMENU:=$(BLMENU)
90 TITLE:=ata-piix
91 DEPENDS:=+kmod-libata +kmod-ide-core +kmod-scsi-core
92 KCONFIG:=CONFIG_ATA_PIIX
93 FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.$(LINUX_KMOD_SUFFIX)
94 AUTOLOAD:=$(call AutoLoad,41,ata_piix)
95 endef
96
97 define KernelPackage/ata-piix/description
98 Kernel module for Intel PIIX SATA controller
99 endef
100
101 $(eval $(call KernelPackage,ata-piix))
102
103
104 define KernelPackage/pata-artop
105 SUBMENU:=$(BLMENU)
106 TITLE:=pata-artop
107 DEPENDS:=+kmod-libata +kmod-scsi-core
108 KCONFIG:=CONFIG_PATA_ARTOP
109 FILES:=$(LINUX_DIR)/drivers/ata/pata_artop.$(LINUX_KMOD_SUFFIX)
110 AUTOLOAD:=$(call AutoLoad,41,pata_artop)
111 endef
112
113 define KernelPackage/pata-artop/description
114 Kernel module for ARTOP PATA controller
115 endef
116
117 $(eval $(call KernelPackage,pata-artop))