blob: cca9c075966dd219a235d91a8bbf353126001008 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Makefile for the kernel ata, atapi, and ide block device drivers.
3#
4# 12 September 2000, Bartlomiej Zolnierkiewicz <bkz@linux-ide.org>
5# Rewritten to use lists instead of if-statements.
6#
7# Note : at this point, these files are compiled on all systems.
8# In the future, some of these should be built conditionally.
9#
10# First come modules that register themselves with the core
11
12EXTRA_CFLAGS += -Idrivers/ide
13
14obj-$(CONFIG_BLK_DEV_IDE) += pci/
15
16ide-core-y += ide.o ide-io.o ide-iops.o ide-lib.o ide-probe.o ide-taskfile.o
17
18ide-core-$(CONFIG_BLK_DEV_CMD640) += pci/cmd640.o
19
20# Core IDE code - must come before legacy
21ide-core-$(CONFIG_BLK_DEV_IDEPCI) += setup-pci.o
22ide-core-$(CONFIG_BLK_DEV_IDEDMA) += ide-dma.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070023ide-core-$(CONFIG_PROC_FS) += ide-proc.o
24ide-core-$(CONFIG_BLK_DEV_IDEPNP) += ide-pnp.o
25
26# built-in only drivers from arm/
27ide-core-$(CONFIG_IDE_ARM) += arm/ide_arm.o
28
29# built-in only drivers from legacy/
30ide-core-$(CONFIG_BLK_DEV_BUDDHA) += legacy/buddha.o
31ide-core-$(CONFIG_BLK_DEV_FALCON_IDE) += legacy/falconide.o
32ide-core-$(CONFIG_BLK_DEV_GAYLE) += legacy/gayle.o
33ide-core-$(CONFIG_BLK_DEV_MAC_IDE) += legacy/macide.o
34ide-core-$(CONFIG_BLK_DEV_Q40IDE) += legacy/q40ide.o
35
36# built-in only drivers from ppc/
37ide-core-$(CONFIG_BLK_DEV_MPC8xx_IDE) += ppc/mpc8xx.o
38ide-core-$(CONFIG_BLK_DEV_IDE_PMAC) += ppc/pmac.o
39
40# built-in only drivers from h8300/
41ide-core-$(CONFIG_H8300) += h8300/ide-h8300.o
42
43obj-$(CONFIG_BLK_DEV_IDE) += ide-core.o
44obj-$(CONFIG_IDE_GENERIC) += ide-generic.o
45
46obj-$(CONFIG_BLK_DEV_IDEDISK) += ide-disk.o
47obj-$(CONFIG_BLK_DEV_IDECD) += ide-cd.o
48obj-$(CONFIG_BLK_DEV_IDETAPE) += ide-tape.o
49obj-$(CONFIG_BLK_DEV_IDEFLOPPY) += ide-floppy.o
50
51obj-$(CONFIG_BLK_DEV_IDE) += legacy/ arm/
52obj-$(CONFIG_BLK_DEV_HD) += legacy/
53obj-$(CONFIG_ETRAX_IDE) += cris/