2 # Makefile for the kernel block device drivers.
4 # Note! Dependencies are done automagically by 'make dep', which also
5 # removes any old dependencies. DON'T put your own dependencies here
6 # unless it's something special (ie not a .c file).
8 # Note 2! The CFLAGS definition is now inherited from the
13 # Note : at this point, these files are compiled on all systems.
14 # In the future, some of these should be built conditionally.
18 MOD_SUB_DIRS
:= $(SUB_DIRS
)
19 ALL_SUB_DIRS
:= $(SUB_DIRS
) paride
25 MOD_LIST_NAME
:= BLOCK_MODULES
26 LX_OBJS
:= ll_rw_blk.o blkpg.o
29 ifeq ($(CONFIG_MAC_FLOPPY
),y
)
33 ifeq ($(CONFIG_BLK_DEV_FD
),y
)
36 ifeq ($(CONFIG_BLK_DEV_FD
),m
)
41 ifeq ($(CONFIG_AMIGA_FLOPPY
),y
)
44 ifeq ($(CONFIG_AMIGA_FLOPPY
),m
)
49 ifeq ($(CONFIG_ATARI_FLOPPY
),y
)
52 ifeq ($(CONFIG_ATARI_FLOPPY
),m
)
57 ifeq ($(CONFIG_ATARI_ACSI
),y
)
60 ifeq ($(CONFIG_ATARI_ACSI
),m
)
65 ifeq ($(CONFIG_ATARI_SLM
),y
)
68 ifeq ($(CONFIG_ATARI_SLM
),m
)
73 ifeq ($(CONFIG_AMIGA_Z2RAM
),y
)
76 ifeq ($(CONFIG_AMIGA_Z2RAM
),m
)
81 ifeq ($(CONFIG_BLK_DEV_RAM
),y
)
84 ifeq ($(CONFIG_BLK_DEV_RAM
),m
)
89 ifeq ($(CONFIG_BLK_DEV_LOOP
),y
)
92 ifeq ($(CONFIG_BLK_DEV_LOOP
),m
)
97 ifeq ($(CONFIG_BLK_DEV_HD
),y
)
101 ifeq ($(CONFIG_BLK_DEV_RZ1000
),y
)
105 ifeq ($(CONFIG_BLK_DEV_CMD640
),y
)
109 ifeq ($(CONFIG_BLK_DEV_IDE_PMAC
),y
)
110 IDE_OBJS
+= ide-pmac.o
113 ifeq ($(CONFIG_BLK_DEV_IDEPCI
),y
)
114 IDE_OBJS
+= ide-pci.o
117 ifeq ($(CONFIG_BLK_DEV_IDEDMA
),y
)
118 IDE_OBJS
+= ide-dma.o
121 ifeq ($(CONFIG_BLK_DEV_DTC2278
),y
)
122 IDE_OBJS
+= dtc2278.o
125 ifeq ($(CONFIG_BLK_DEV_HT6560B
),y
)
126 IDE_OBJS
+= ht6560b.o
129 ifeq ($(CONFIG_BLK_DEV_QD6580
),y
)
133 ifeq ($(CONFIG_BLK_DEV_UMC8672
),y
)
134 IDE_OBJS
+= umc8672.o
137 ifeq ($(CONFIG_BLK_DEV_ALI14XX
),y
)
138 IDE_OBJS
+= ali14xx.o
141 ifeq ($(CONFIG_BLK_DEV_PDC4030
),y
)
142 IDE_OBJS
+= pdc4030.o
145 ifeq ($(CONFIG_BLK_DEV_TRM290
),y
)
149 ifeq ($(CONFIG_BLK_DEV_OPTI621
),y
)
150 IDE_OBJS
+= opti621.o
153 ifeq ($(CONFIG_BLK_DEV_NS87415
),y
)
154 IDE_OBJS
+= ns87415.o
157 ifeq ($(CONFIG_BLK_DEV_VIA82C586
),y
)
158 IDE_OBJS
+= via82c586.o
161 ifeq ($(CONFIG_BLK_DEV_GAYLE
),y
)
165 ifeq ($(CONFIG_BLK_DEV_FALCON_IDE
),y
)
166 IDE_OBJS
+= falconide.o
169 ifeq ($(CONFIG_BLK_DEV_MAC_IDE
),y
)
173 ifeq ($(CONFIG_BLK_DEV_BUDDHA
),y
)
177 ifeq ($(CONFIG_BLK_DEV_CMD646
),y
)
181 ifeq ($(CONFIG_BLK_DEV_SL82C105
),y
)
182 IDE_OBJS
+= sl82c105.o
185 ifeq ($(CONFIG_BLK_DEV_ALI15X3
),y
)
186 IDE_OBJS
+= alim15x3.o
189 ifeq ($(CONFIG_BLK_DEV_CY82C693
),y
)
190 IDE_OBJS
+= cy82c693.o
193 ifeq ($(CONFIG_BLK_DEV_PIIX
),y
)
197 ifeq ($(CONFIG_BLK_DEV_PDC202XX
),y
)
198 IDE_OBJS
+= pdc202xx.o
201 ifeq ($(CONFIG_BLK_DEV_AEC6210
),y
)
202 IDE_OBJS
+= aec6210.o
205 ifeq ($(CONFIG_BLK_DEV_HPT343
),y
)
209 ### if CONFIG_BLK_DEV_IDE is n, IDE_OBJS will be ignored
211 ifeq ($(CONFIG_PROC_FS
),y
)
212 IDE_OBJS
+= ide-proc.o
217 ifeq ($(CONFIG_BLK_DEV_IDE
),y
)
219 L_OBJS
+= ide-probe.o
$(IDE_OBJS
)
221 ifeq ($(CONFIG_BLK_DEV_IDE
),m
)
222 MIX_OBJS
+= ide.o
$(IDE_OBJS
)
223 M_OBJS
+= ide-mod.o ide-probe.o
229 ifeq ($(CONFIG_BLK_DEV_IDEDISK
),y
)
232 ifeq ($(CONFIG_BLK_DEV_IDEDISK
),m
)
237 ifeq ($(CONFIG_BLK_DEV_IDECD
),y
)
240 ifeq ($(CONFIG_BLK_DEV_IDECD
),m
)
245 ifeq ($(CONFIG_BLK_DEV_IDETAPE
),y
)
248 ifeq ($(CONFIG_BLK_DEV_IDETAPE
),m
)
253 ifeq ($(CONFIG_BLK_DEV_IDEFLOPPY
),y
)
254 L_OBJS
+= ide-floppy.o
256 ifeq ($(CONFIG_BLK_DEV_IDEFLOPPY
),m
)
257 M_OBJS
+= ide-floppy.o
261 ifeq ($(CONFIG_BLK_DEV_PS2
),y
)
264 ifeq ($(CONFIG_BLK_DEV_PS2
),m
)
269 ifeq ($(CONFIG_BLK_DEV_XD
),y
)
272 ifeq ($(CONFIG_BLK_DEV_XD
),m
)
277 ifeq ($(CONFIG_BLK_DEV_MD
),y
)
280 ifeq ($(CONFIG_MD_LINEAR
),y
)
283 ifeq ($(CONFIG_MD_LINEAR
),m
)
288 ifeq ($(CONFIG_MD_STRIPED
),y
)
291 ifeq ($(CONFIG_MD_STRIPED
),m
)
296 ifeq ($(CONFIG_MD_MIRRORING
),y
)
299 ifeq ($(CONFIG_MD_MIRRORING
),m
)
304 ifeq ($(CONFIG_MD_RAID5
),y
)
307 ifeq ($(CONFIG_MD_RAID5
),m
)
314 ifeq ($(CONFIG_BLK_DEV_NBD
),y
)
317 ifeq ($(CONFIG_BLK_DEV_NBD
),m
)
322 ifeq ($(CONFIG_PARIDE
),y
)
324 MOD_IN_SUB_DIRS
+= paride
326 ifeq ($(CONFIG_PARIDE
),m
)
327 MOD_IN_SUB_DIRS
+= paride
331 include $(TOPDIR
)/Rules.make
333 ide-mod.o
: ide.o
$(IDE_OBJS
)
334 $(LD
) $(LD_RFLAG
) -r
-o
$@ ide.o
$(IDE_OBJS
)