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
23 L_OBJS
:= genhd.o ide-geometry.o
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_BLK_DEV_SWIM_IOP
),y
)
61 ifeq ($(CONFIG_ATARI_ACSI
),y
)
64 ifeq ($(CONFIG_ATARI_ACSI
),m
)
69 ifeq ($(CONFIG_ATARI_SLM
),y
)
72 ifeq ($(CONFIG_ATARI_SLM
),m
)
77 ifeq ($(CONFIG_AMIGA_Z2RAM
),y
)
80 ifeq ($(CONFIG_AMIGA_Z2RAM
),m
)
85 ifeq ($(CONFIG_BLK_DEV_RAM
),y
)
88 ifeq ($(CONFIG_BLK_DEV_RAM
),m
)
93 ifeq ($(CONFIG_BLK_DEV_LOOP
),y
)
96 ifeq ($(CONFIG_BLK_DEV_LOOP
),m
)
105 ifeq ($(CONFIG_BLK_DEV_AEC6210
),y
)
106 IDE_OBJS
+= aec6210.o
109 ifeq ($(CONFIG_BLK_DEV_ALI14XX
),y
)
110 IDE_OBJS
+= ali14xx.o
113 ifeq ($(CONFIG_BLK_DEV_ALI15X3
),y
)
114 IDE_OBJS
+= alim15x3.o
117 ifeq ($(CONFIG_BLK_DEV_BUDDHA
),y
)
121 ifeq ($(CONFIG_BLK_DEV_CMD640
),y
)
125 ifeq ($(CONFIG_BLK_DEV_CMD646
),y
)
129 ifeq ($(CONFIG_BLK_DEV_CY82C693
),y
)
130 IDE_OBJS
+= cy82c693.o
133 ifeq ($(CONFIG_BLK_DEV_DTC2278
),y
)
134 IDE_OBJS
+= dtc2278.o
137 ifeq ($(CONFIG_BLK_DEV_FALCON_IDE
),y
)
138 IDE_OBJS
+= falconide.o
141 ifeq ($(CONFIG_BLK_DEV_GAYLE
),y
)
145 ifeq ($(CONFIG_BLK_DEV_Q40IDE
),y
)
149 ifeq ($(CONFIG_BLK_DEV_HD
),y
)
153 ifeq ($(CONFIG_BLK_DEV_HPT34X
),y
)
157 ifeq ($(CONFIG_BLK_DEV_HPT366
),y
)
161 ifeq ($(CONFIG_BLK_DEV_HT6560B
),y
)
162 IDE_OBJS
+= ht6560b.o
165 ifeq ($(CONFIG_BLK_DEV_IDE_ICSIDE
),y
)
169 ifeq ($(CONFIG_BLK_DEV_IDEDMA
),y
)
170 IDE_OBJS
+= ide-dma.o
173 ifeq ($(CONFIG_BLK_DEV_IDEPCI
),y
)
174 IDE_OBJS
+= ide-pci.o
177 ifeq ($(CONFIG_BLK_DEV_IDE_PMAC
),y
)
178 IDE_OBJS
+= ide-pmac.o
181 ifeq ($(CONFIG_BLK_DEV_MAC_IDE
),y
)
185 ifeq ($(CONFIG_BLK_DEV_NS87415
),y
)
186 IDE_OBJS
+= ns87415.o
189 ifeq ($(CONFIG_BLK_DEV_OPTI621
),y
)
190 IDE_OBJS
+= opti621.o
193 ifeq ($(CONFIG_BLK_DEV_PDC202XX
),y
)
194 IDE_OBJS
+= pdc202xx.o
197 ifeq ($(CONFIG_BLK_DEV_PDC4030
),y
)
198 IDE_OBJS
+= pdc4030.o
201 ifeq ($(CONFIG_BLK_DEV_PIIX
),y
)
205 ifeq ($(CONFIG_BLK_DEV_QD6580
),y
)
209 ifeq ($(CONFIG_BLK_DEV_IDE_RAPIDE
),y
)
213 ifeq ($(CONFIG_BLK_DEV_RZ1000
),y
)
217 ifeq ($(CONFIG_BLK_DEV_SIS5513
),y
)
218 IDE_OBJS
+= sis5513.o
221 ifeq ($(CONFIG_BLK_DEV_SL82C105
),y
)
222 IDE_OBJS
+= sl82c105.o
225 ifeq ($(CONFIG_BLK_DEV_TRM290
),y
)
229 ifeq ($(CONFIG_BLK_DEV_UMC8672
),y
)
230 IDE_OBJS
+= umc8672.o
233 ifeq ($(CONFIG_BLK_DEV_VIA82C586
),y
)
234 IDE_OBJS
+= via82c586.o
237 ### if CONFIG_BLK_DEV_IDE is n, IDE_OBJS will be ignored
239 ifeq ($(CONFIG_PROC_FS
),y
)
240 IDE_OBJS
+= ide-proc.o
245 ifeq ($(CONFIG_BLK_DEV_IDE
),y
)
247 L_OBJS
+= ide-probe.o
$(IDE_OBJS
)
249 ifeq ($(CONFIG_BLK_DEV_IDE
),m
)
250 MIX_OBJS
+= ide.o
$(IDE_OBJS
)
251 M_OBJS
+= ide-mod.o ide-probe-mod.o
257 ifeq ($(CONFIG_BLK_DEV_IDEDISK
),y
)
260 ifeq ($(CONFIG_BLK_DEV_IDEDISK
),m
)
265 ifeq ($(CONFIG_BLK_DEV_IDECD
),y
)
268 ifeq ($(CONFIG_BLK_DEV_IDECD
),m
)
273 ifeq ($(CONFIG_BLK_DEV_IDETAPE
),y
)
276 ifeq ($(CONFIG_BLK_DEV_IDETAPE
),m
)
281 ifeq ($(CONFIG_BLK_DEV_IDEFLOPPY
),y
)
282 L_OBJS
+= ide-floppy.o
284 ifeq ($(CONFIG_BLK_DEV_IDEFLOPPY
),m
)
285 M_OBJS
+= ide-floppy.o
289 ifeq ($(CONFIG_BLK_DEV_PS2
),y
)
292 ifeq ($(CONFIG_BLK_DEV_PS2
),m
)
297 ifeq ($(CONFIG_BLK_DEV_XD
),y
)
300 ifeq ($(CONFIG_BLK_DEV_XD
),m
)
305 ifeq ($(CONFIG_BLK_CPQ_DA
),y
)
308 ifeq ($(CONFIG_BLK_CPQ_DA
),m
)
313 ifeq ($(CONFIG_BLK_DEV_DAC960
),y
)
316 ifeq ($(CONFIG_BLK_DEV_DAC960
),m
)
321 ifeq ($(CONFIG_BLK_DEV_MD
),y
)
324 ifeq ($(CONFIG_MD_LINEAR
),y
)
327 ifeq ($(CONFIG_MD_LINEAR
),m
)
332 ifeq ($(CONFIG_MD_STRIPED
),y
)
335 ifeq ($(CONFIG_MD_STRIPED
),m
)
340 ifeq ($(CONFIG_MD_MIRRORING
),y
)
343 ifeq ($(CONFIG_MD_MIRRORING
),m
)
348 ifeq ($(CONFIG_MD_RAID5
),y
)
351 ifeq ($(CONFIG_MD_RAID5
),m
)
358 ifeq ($(CONFIG_BLK_DEV_NBD
),y
)
361 ifeq ($(CONFIG_BLK_DEV_NBD
),m
)
366 ifeq ($(CONFIG_PARIDE
),y
)
368 MOD_IN_SUB_DIRS
+= paride
370 ifeq ($(CONFIG_PARIDE
),m
)
371 MOD_IN_SUB_DIRS
+= paride
375 include $(TOPDIR
)/Rules.make
377 ide-mod.o
: ide.o
$(IDE_OBJS
)
378 $(LD
) $(LD_RFLAG
) -r
-o
$@ ide.o
$(IDE_OBJS
)
380 ide-probe-mod.o
: ide-probe.o ide-geometry.o
381 $(LD
) $(LD_RFLAG
) -r
-o
$@ ide-probe.o ide-geometry.o