more dependency fixes
[openwrt/svn-archive/archive.git] / package / kernel / modules / block.mk
1 BLMENU:=Block Devices
2
3 define KernelPackage/ide-core
4 TITLE:=Kernel support for IDE
5 DESCRIPTION:=\
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 KCONFIG:=CONFIG_IDE
13 SUBMENU:=$(BLMENU)
14 endef
15 define KernelPackage/ide-core/2.4
16 FILES:= \
17 $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
18 $(LINUX_DIR)/drivers/ide/ide-detect.$(LINUX_KMOD_SUFFIX) \
19 $(LINUX_DIR)/drivers/ide/ide-disk.$(LINUX_KMOD_SUFFIX)
20 AUTOLOAD:=$(call AutoLoad,20,ide-core) $(call AutoLoad,90,ide-detect ide-disk)
21 endef
22 define KernelPackage/ide-core/2.6
23 FILES:= \
24 $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
25 $(LINUX_DIR)/drivers/ide/ide-generic.$(LINUX_KMOD_SUFFIX) \
26 $(LINUX_DIR)/drivers/ide/ide-detect.$(LINUX_KMOD_SUFFIX) \
27 $(LINUX_DIR)/drivers/ide/ide-disk.$(LINUX_KMOD_SUFFIX)
28 AUTOLOAD:=$(call AutoLoad,20,ide-core) $(call AutoLoad,90,ide-generic ide-detect ide-disk)
29 endef
30 $(eval $(call KernelPackage,ide-core))
31
32 define KernelPackage/ide-pdc202xx
33 TITLE:=PDC202xx IDE driver
34 SUBMENU:=$(BLMENU)
35 DEPENDS:=@LINUX_2_4
36 KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
37 FILES:=$(LINUX_DIR)/drivers/ide/pci/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
38 AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old)
39 endef
40 $(eval $(call KernelPackage,ide-pdc202xx))
41
42 define KernelPackage/ide-aec62xx
43 TITLE:=AEC62xx IDE driver
44 SUBMENU:=$(BLMENU)
45 KCONFIG:=CONFIG_BLK_DEV_AEC62XX
46 FILES:=$(LINUX_DIR)/drivers/ide/pci/aec62xx.$(LINUX_KMOD_SUFFIX)
47 AUTOLOAD:=$(call AutoLoad,30,aec62xx)
48 endef
49 $(eval $(call KernelPackage,ide-aec62xx))
50
51 define KernelPackage/scsi-core
52 TITLE:=Kernel support for SCSI
53 SUBMENU:=$(BLMENU)
54 KCONFIG:=CONFIG_SCSI CONFIG_BLK_DEV_SD
55 FILES:= \
56 $(LINUX_DIR)/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX) \
57 $(LINUX_DIR)/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX)
58 endef
59 $(eval $(call KernelPackage,scsi-core))
60
61 define KernelPackage/libata
62 TITLE:=libata
63 DESCRIPTION:=libata
64 KCONFIG:=CONFIG_ATA
65 SUBMENU:=$(BLMENU)
66 FILES:=$(LINUX_DIR)/drivers/ata/libata.$(LINUX_KMOD_SUFFIX)
67 DEPENDS:=@PCI_SUPPORT @LINUX_2_6
68 endef
69 $(eval $(call KernelPackage,libata))
70
71 define KernelPackage/ata-piix
72 TITLE:=ata-piix
73 DESCRIPTION:=Kernel module for Intel PIIX SATA controller
74 KCONFIG:=CONFIG_ATA_PIIX
75 SUBMENU:=$(BLMENU)
76 AUTOLOAD:=$(call AutoLoad,30,scsi_mod libata sd_mod ata_piix)
77 FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.$(LINUX_KMOD_SUFFIX)
78 DEPENDS:=+kmod-libata +kmod-ide-core +kmod-scsi-core
79 endef
80 $(eval $(call KernelPackage,ata-piix))
81
82 define KernelPackage/pata-artop
83 TITLE:=pata-artop
84 DESCRIPTION:=Kernel module for ARTOP PATA controller
85 KCONFIG:=CONFIG_PATA_ARTOP
86 SUBMENU:=$(BLMENU)
87 AUTOLOAD:=$(call AutoLoad,30,scsi_mod libata sd_mod pata_artop)
88 FILES:=$(LINUX_DIR)/drivers/ata/pata_artop.$(LINUX_KMOD_SUFFIX)
89 DEPENDS:=kmod-libata +kmod-scsi-core
90 endef
91 $(eval $(call KernelPackage,pata-artop))
92
93