require all CONFIG_* symbols listed in its KCONFIG to be set to m in order to actuall...
[openwrt/staging/yousong.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:= \
14 CONFIG_IDE \
15 CONFIG_BLK_DEV_IDE \
16 CONFIG_BLK_DEV_IDEDISK
17 FILES:= \
18 $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
19 $(LINUX_DIR)/drivers/ide/ide-disk.$(LINUX_KMOD_SUFFIX)
20 AUTOLOAD:=$(call AutoLoad,20,ide-core) $(call AutoLoad,40,ide-disk)
21 endef
22
23 define KernelPackage/ide-core/2.4
24 FILES+=$(LINUX_DIR)/drivers/ide/ide-detect.$(LINUX_KMOD_SUFFIX)
25 AUTOLOAD+=$(call AutoLoad,30,ide-detect)
26 endef
27
28 define KernelPackage/ide-core/2.6
29 KCONFIG+=CONFIG_IDE_GENERIC
30 FILES+=$(LINUX_DIR)/drivers/ide/ide-generic.$(LINUX_KMOD_SUFFIX)
31 AUTOLOAD+=$(call AutoLoad,30,ide-generic)
32 endef
33
34 $(eval $(call KernelPackage,ide-core))
35
36
37 define KernelPackage/ide-pdc202xx
38 SUBMENU:=$(BLMENU)
39 TITLE:=PDC202xx IDE driver
40 DEPENDS:=@LINUX_2_4
41 KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
42 FILES:=$(LINUX_DIR)/drivers/ide/pci/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
43 AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old)
44 endef
45
46 $(eval $(call KernelPackage,ide-pdc202xx))
47
48
49 define KernelPackage/ide-aec62xx
50 SUBMENU:=$(BLMENU)
51 TITLE:=AEC62xx IDE driver
52 KCONFIG:=CONFIG_BLK_DEV_AEC62XX
53 FILES:=$(LINUX_DIR)/drivers/ide/pci/aec62xx.$(LINUX_KMOD_SUFFIX)
54 AUTOLOAD:=$(call AutoLoad,30,aec62xx)
55 endef
56
57 $(eval $(call KernelPackage,ide-aec62xx))
58
59
60 define KernelPackage/scsi-core
61 SUBMENU:=$(BLMENU)
62 TITLE:=Kernel support for SCSI
63 KCONFIG:= \
64 CONFIG_SCSI \
65 CONFIG_BLK_DEV_SD
66 FILES:= \
67 $(LINUX_DIR)/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX) \
68 $(LINUX_DIR)/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX)
69 AUTOLOAD:=$(call AutoLoad,20,scsi_mod) $(call AutoLoad,40,sd_mod)
70 endef
71
72 $(eval $(call KernelPackage,scsi-core))
73
74
75 define KernelPackage/libata
76 SUBMENU:=$(BLMENU)
77 TITLE:=libata
78 DEPENDS:=@PCI_SUPPORT @LINUX_2_6
79 KCONFIG:=CONFIG_ATA
80 FILES:=$(LINUX_DIR)/drivers/ata/libata.$(LINUX_KMOD_SUFFIX)
81 AUTOLOAD:=$(call AutoLoad,21,libata)
82 endef
83
84 $(eval $(call KernelPackage,libata))
85
86
87 define KernelPackage/ata-piix
88 SUBMENU:=$(BLMENU)
89 TITLE:=ata-piix
90 DESCRIPTION:=Kernel module for Intel PIIX SATA controller
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 $(eval $(call KernelPackage,ata-piix))
98
99
100 define KernelPackage/pata-artop
101 SUBMENU:=$(BLMENU)
102 TITLE:=pata-artop
103 DESCRIPTION:=Kernel module for ARTOP PATA controller
104 DEPENDS:=+kmod-libata +kmod-scsi-core
105 KCONFIG:=CONFIG_PATA_ARTOP
106 FILES:=$(LINUX_DIR)/drivers/ata/pata_artop.$(LINUX_KMOD_SUFFIX)
107 AUTOLOAD:=$(call AutoLoad,41,pata_artop)
108 endef
109
110 $(eval $(call KernelPackage,pata-artop))