blob: 06e7867052d33ff68d8fd918676e185c906ac6e6 [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 Zolnierkiewicz05236ea2008-10-10 22:39:33 +02007ide-core-y += ide.o ide-ioctls.o ide-io.o ide-iops.o ide-lib.o ide-probe.o \
8 ide-taskfile.o 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
Bartlomiej Zolnierkiewicz452a8ed2008-10-13 21:39:33 +020018obj-$(CONFIG_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
Bartlomiej Zolnierkiewicz452a8ed2008-10-13 21:39:33 +020025obj-$(CONFIG_IDE) += legacy/ pci/
Bartlomiej Zolnierkiewiczade2daf2008-01-26 20:13:07 +010026
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
Bartlomiej Zolnierkiewicz452a8ed2008-10-13 21:39:33 +020034obj-$(CONFIG_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 Zolnierkiewicz01278542008-10-10 22:39:38 +020040ide-floppy_mod-y += ide-floppy.o ide-floppy_ioctl.o
Bartlomiej Zolnierkiewicz972560f2008-02-01 23:09:23 +010041
Bartlomiej Zolnierkiewiczb9103da2008-10-13 21:39:44 +020042ifeq ($(CONFIG_IDE_PROC_FS), y)
43 ide-floppy_mod-y += ide-floppy_proc.o
44endif
45
Linus Torvalds1da177e2005-04-16 15:20:36 -070046obj-$(CONFIG_BLK_DEV_IDEDISK) += ide-disk.o
Bartlomiej Zolnierkiewicz972560f2008-02-01 23:09:23 +010047obj-$(CONFIG_BLK_DEV_IDECD) += ide-cd_mod.o
Bartlomiej Zolnierkiewicz01278542008-10-10 22:39:38 +020048obj-$(CONFIG_BLK_DEV_IDEFLOPPY) += ide-floppy_mod.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070049obj-$(CONFIG_BLK_DEV_IDETAPE) += ide-tape.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070050
Bartlomiej Zolnierkiewiczade2daf2008-01-26 20:13:07 +010051ifeq ($(CONFIG_BLK_DEV_IDECS), y)
52 ide-cs-core-y += legacy/ide-cs.o
53 obj-y += ide-cs-core.o
54endif
55
56ifeq ($(CONFIG_BLK_DEV_PLATFORM), y)
57 ide-platform-core-y += legacy/ide_platform.o
58 obj-y += ide-platform-core.o
59endif
60
Bartlomiej Zolnierkiewicz452a8ed2008-10-13 21:39:33 +020061obj-$(CONFIG_IDE) += arm/ mips/