fix KCONFIG in packages: move back all KCONFIG from package variants to the main...
[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 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 KCONFIG:=CONFIG_BLK_DEV_AEC62XX
56 FILES:=$(LINUX_DIR)/drivers/ide/pci/aec62xx.$(LINUX_KMOD_SUFFIX)
57 AUTOLOAD:=$(call AutoLoad,30,aec62xx)
58 endef
59
60 $(eval $(call KernelPackage,ide-aec62xx))
61
62
63 define KernelPackage/scsi-core
64 SUBMENU:=$(BLMENU)
65 TITLE:=Kernel support for SCSI
66 KCONFIG:= \
67 CONFIG_SCSI \
68 CONFIG_BLK_DEV_SD
69 FILES:= \
70 $(LINUX_DIR)/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX) \
71 $(LINUX_DIR)/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX)
72 AUTOLOAD:=$(call AutoLoad,20,scsi_mod) $(call AutoLoad,40,sd_mod)
73 endef
74
75 $(eval $(call KernelPackage,scsi-core))
76
77
78 define KernelPackage/libata
79 SUBMENU:=$(BLMENU)
80 TITLE:=libata
81 DEPENDS:=@PCI_SUPPORT @LINUX_2_6
82 KCONFIG:=CONFIG_ATA
83 FILES:=$(LINUX_DIR)/drivers/ata/libata.$(LINUX_KMOD_SUFFIX)
84 AUTOLOAD:=$(call AutoLoad,21,libata)
85 endef
86
87 $(eval $(call KernelPackage,libata))
88
89
90 define KernelPackage/ata-piix
91 SUBMENU:=$(BLMENU)
92 TITLE:=ata-piix
93 DEPENDS:=+kmod-libata +kmod-ide-core +kmod-scsi-core
94 KCONFIG:=CONFIG_ATA_PIIX
95 FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.$(LINUX_KMOD_SUFFIX)
96 AUTOLOAD:=$(call AutoLoad,41,ata_piix)
97 endef
98
99 define KernelPackage/ata-piix/description
100 Kernel module for Intel PIIX SATA controller
101 endef
102
103 $(eval $(call KernelPackage,ata-piix))
104
105
106 define KernelPackage/pata-artop
107 SUBMENU:=$(BLMENU)
108 TITLE:=pata-artop
109 DEPENDS:=+kmod-libata +kmod-scsi-core
110 KCONFIG:=CONFIG_PATA_ARTOP
111 FILES:=$(LINUX_DIR)/drivers/ata/pata_artop.$(LINUX_KMOD_SUFFIX)
112 AUTOLOAD:=$(call AutoLoad,41,pata_artop)
113 endef
114
115 define KernelPackage/pata-artop/description
116 Kernel module for ARTOP PATA controller
117 endef
118
119 $(eval $(call KernelPackage,pata-artop))