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