cosmetic fixes: rearrange KernelPackage definitions
[openwrt/svn-archive/archive.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 DESCRIPTION:=\
7 Useful for usb mass storage devices (e.g. on WL-HDD)\\\
8 \\\
9 Includes: \\\
10 - ide-core \\\
11 - ide-detect \\\
12 - ide-disk
13 KCONFIG:=CONFIG_IDE CONFIG_BLK_DEV_IDE CONFIG_IDE_GENERIC CONFIG_BLK_DEV_IDEDISK
14 endef
15
16 define KernelPackage/ide-core/2.4
17 FILES:= \
18 $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
19 $(LINUX_DIR)/drivers/ide/ide-detect.$(LINUX_KMOD_SUFFIX) \
20 $(LINUX_DIR)/drivers/ide/ide-disk.$(LINUX_KMOD_SUFFIX)
21 AUTOLOAD:=$(call AutoLoad,20,ide-core) $(call AutoLoad,90,ide-detect ide-disk)
22 endef
23
24 define KernelPackage/ide-core/2.6
25 FILES:= \
26 $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
27 $(LINUX_DIR)/drivers/ide/ide-generic.$(LINUX_KMOD_SUFFIX) \
28 $(LINUX_DIR)/drivers/ide/ide-disk.$(LINUX_KMOD_SUFFIX)
29 AUTOLOAD:=$(call AutoLoad,20,ide-core) $(call AutoLoad,90,ide-generic ide-disk)
30 endef
31
32 $(eval $(call KernelPackage,ide-core))
33
34
35 define KernelPackage/ide-pdc202xx
36 SUBMENU:=$(BLMENU)
37 TITLE:=PDC202xx IDE driver
38 DEPENDS:=@LINUX_2_4
39 KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
40 FILES:=$(LINUX_DIR)/drivers/ide/pci/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
41 AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old)
42 endef
43
44 $(eval $(call KernelPackage,ide-pdc202xx))
45
46
47 define KernelPackage/ide-aec62xx
48 SUBMENU:=$(BLMENU)
49 TITLE:=AEC62xx IDE driver
50 KCONFIG:=CONFIG_BLK_DEV_AEC62XX
51 FILES:=$(LINUX_DIR)/drivers/ide/pci/aec62xx.$(LINUX_KMOD_SUFFIX)
52 AUTOLOAD:=$(call AutoLoad,30,aec62xx)
53 endef
54
55 $(eval $(call KernelPackage,ide-aec62xx))
56
57
58 define KernelPackage/scsi-core
59 SUBMENU:=$(BLMENU)
60 TITLE:=Kernel support for SCSI
61 KCONFIG:=CONFIG_SCSI CONFIG_BLK_DEV_SD
62 FILES:= \
63 $(LINUX_DIR)/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX) \
64 $(LINUX_DIR)/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX)
65 endef
66
67 $(eval $(call KernelPackage,scsi-core))
68
69
70 define KernelPackage/libata
71 SUBMENU:=$(BLMENU)
72 TITLE:=libata
73 DESCRIPTION:=libata
74 DEPENDS:=@PCI_SUPPORT @LINUX_2_6
75 KCONFIG:=CONFIG_ATA
76 FILES:=$(LINUX_DIR)/drivers/ata/libata.$(LINUX_KMOD_SUFFIX)
77 endef
78
79 $(eval $(call KernelPackage,libata))
80
81
82 define KernelPackage/ata-piix
83 SUBMENU:=$(BLMENU)
84 TITLE:=ata-piix
85 DESCRIPTION:=Kernel module for Intel PIIX SATA controller
86 DEPENDS:=+kmod-libata +kmod-ide-core +kmod-scsi-core
87 KCONFIG:=CONFIG_ATA_PIIX
88 FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.$(LINUX_KMOD_SUFFIX)
89 AUTOLOAD:=$(call AutoLoad,30,scsi_mod libata sd_mod ata_piix)
90 endef
91
92 $(eval $(call KernelPackage,ata-piix))
93
94
95 define KernelPackage/pata-artop
96 SUBMENU:=$(BLMENU)
97 TITLE:=pata-artop
98 DESCRIPTION:=Kernel module for ARTOP PATA controller
99 DEPENDS:=kmod-libata +kmod-scsi-core
100 KCONFIG:=CONFIG_PATA_ARTOP
101 FILES:=$(LINUX_DIR)/drivers/ata/pata_artop.$(LINUX_KMOD_SUFFIX)
102 AUTOLOAD:=$(call AutoLoad,30,scsi_mod libata sd_mod pata_artop)
103 endef
104
105 $(eval $(call KernelPackage,pata-artop))