blob: 64e0ecdc4ed5dab46c7b07b1a5ae7b903f2d6416 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
Bartlomiej Zolnierkiewiczade2daf2008-01-26 20:13:07 +01002# link order is important here
Bartlomiej Zolnierkiewiczd0b53f62008-07-24 22:53:36 +02003#
Linus Torvalds1da177e2005-04-16 15:20:36 -07004
5EXTRA_CFLAGS += -Idrivers/ide
6
Bartlomiej Zolnierkiewicz9ad54092008-07-16 20:33:39 +02007ide-core-y += ide.o ide-io.o ide-iops.o ide-lib.o ide-probe.o ide-taskfile.o \
8 ide-pio-blacklist.o
Linus Torvalds1da177e2005-04-16 15:20:36 -07009
Bartlomiej Zolnierkiewiczade2daf2008-01-26 20:13:07 +010010# core IDE code
Bartlomiej Zolnierkiewiczf06ab342008-07-16 20:33:37 +020011ide-core-$(CONFIG_IDE_TIMINGS) += ide-timings.o
Bartlomiej Zolnierkiewicz594c16d2008-07-15 21:21:58 +020012ide-core-$(CONFIG_IDE_ATAPI) += ide-atapi.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070013ide-core-$(CONFIG_BLK_DEV_IDEPCI) += setup-pci.o
14ide-core-$(CONFIG_BLK_DEV_IDEDMA) += ide-dma.o
Bartlomiej Zolnierkiewiczecfd80e2007-05-10 00:01:09 +020015ide-core-$(CONFIG_IDE_PROC_FS) += ide-proc.o
Hannes Reineckee3a59b42007-02-07 18:19:37 +010016ide-core-$(CONFIG_BLK_DEV_IDEACPI) += ide-acpi.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070017
Linus Torvalds1da177e2005-04-16 15:20:36 -070018obj-$(CONFIG_BLK_DEV_IDE) += ide-core.o
Bartlomiej Zolnierkiewiczade2daf2008-01-26 20:13:07 +010019
20ifeq ($(CONFIG_IDE_ARM), y)
21 ide-arm-core-y += arm/ide_arm.o
22 obj-y += ide-arm-core.o
23endif
24
25obj-$(CONFIG_BLK_DEV_IDE) += legacy/ pci/
26
27obj-$(CONFIG_IDEPCI_PCIBUS_ORDER) += ide-scan-pci.o
28
29ifeq ($(CONFIG_BLK_DEV_CMD640), y)
30 cmd640-core-y += pci/cmd640.o
31 obj-y += cmd640-core.o
32endif
33
Adrian Bunk3f31b872008-04-28 23:44:42 +020034obj-$(CONFIG_BLK_DEV_IDE) += ppc/
Bartlomiej Zolnierkiewiczade2daf2008-01-26 20:13:07 +010035obj-$(CONFIG_IDE_H8300) += h8300/
Linus Torvalds1da177e2005-04-16 15:20:36 -070036obj-$(CONFIG_IDE_GENERIC) += ide-generic.o
Bartlomiej Zolnierkiewicz2625cd52008-04-18 00:46:21 +020037obj-$(CONFIG_BLK_DEV_IDEPNP) += ide-pnp.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070038
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +010039ide-cd_mod-y += ide-cd.o ide-cd_ioctl.o ide-cd_verbose.o
Bartlomiej Zolnierkiewicz972560f2008-02-01 23:09:23 +010040
Linus Torvalds1da177e2005-04-16 15:20:36 -070041obj-$(CONFIG_BLK_DEV_IDEDISK) += ide-disk.o
Bartlomiej Zolnierkiewicz972560f2008-02-01 23:09:23 +010042obj-$(CONFIG_BLK_DEV_IDECD) += ide-cd_mod.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070043obj-$(CONFIG_BLK_DEV_IDETAPE) += ide-tape.o
44obj-$(CONFIG_BLK_DEV_IDEFLOPPY) += ide-floppy.o
45
Bartlomiej Zolnierkiewiczade2daf2008-01-26 20:13:07 +010046ifeq ($(CONFIG_BLK_DEV_IDECS), y)
47 ide-cs-core-y += legacy/ide-cs.o
48 obj-y += ide-cs-core.o
49endif
50
51ifeq ($(CONFIG_BLK_DEV_PLATFORM), y)
52 ide-platform-core-y += legacy/ide_platform.o
53 obj-y += ide-platform-core.o
54endif
55
56obj-$(CONFIG_BLK_DEV_IDE) += arm/ mips/