blob: 093d3248ca898359b1e874fd9a9d4153eb21eed7 [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 \
Elias Oltmanns4abdc6e2008-10-13 21:39:50 +02008 ide-taskfile.o ide-park.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 Zolnierkiewicz2dbe7e92008-10-13 21:39:47 +020015ide-core-$(CONFIG_BLK_DEV_IDEDMA_SFF) += ide-dma-sff.o
Bartlomiej Zolnierkiewiczecfd80e2007-05-10 00:01:09 +020016ide-core-$(CONFIG_IDE_PROC_FS) += ide-proc.o
Hannes Reineckee3a59b42007-02-07 18:19:37 +010017ide-core-$(CONFIG_BLK_DEV_IDEACPI) += ide-acpi.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070018
Bartlomiej Zolnierkiewicz452a8ed2008-10-13 21:39:33 +020019obj-$(CONFIG_IDE) += ide-core.o
Bartlomiej Zolnierkiewiczade2daf2008-01-26 20:13:07 +010020
21ifeq ($(CONFIG_IDE_ARM), y)
22 ide-arm-core-y += arm/ide_arm.o
23 obj-y += ide-arm-core.o
24endif
25
Bartlomiej Zolnierkiewicz452a8ed2008-10-13 21:39:33 +020026obj-$(CONFIG_IDE) += legacy/ pci/
Bartlomiej Zolnierkiewiczade2daf2008-01-26 20:13:07 +010027
28obj-$(CONFIG_IDEPCI_PCIBUS_ORDER) += ide-scan-pci.o
29
30ifeq ($(CONFIG_BLK_DEV_CMD640), y)
31 cmd640-core-y += pci/cmd640.o
32 obj-y += cmd640-core.o
33endif
34
Bartlomiej Zolnierkiewicz452a8ed2008-10-13 21:39:33 +020035obj-$(CONFIG_IDE) += ppc/
Bartlomiej Zolnierkiewiczade2daf2008-01-26 20:13:07 +010036obj-$(CONFIG_IDE_H8300) += h8300/
Linus Torvalds1da177e2005-04-16 15:20:36 -070037obj-$(CONFIG_IDE_GENERIC) += ide-generic.o
Bartlomiej Zolnierkiewicz2625cd52008-04-18 00:46:21 +020038obj-$(CONFIG_BLK_DEV_IDEPNP) += ide-pnp.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070039
Bartlomiej Zolnierkiewicz806f80a2008-10-17 18:09:14 +020040ide-gd_mod-y += ide-gd.o
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +010041ide-cd_mod-y += ide-cd.o ide-cd_ioctl.o ide-cd_verbose.o
Bartlomiej Zolnierkiewicz972560f2008-02-01 23:09:23 +010042
Bartlomiej Zolnierkiewicz806f80a2008-10-17 18:09:14 +020043ifeq ($(CONFIG_IDE_GD_ATA), y)
44 ide-gd_mod-y += ide-disk.o ide-disk_ioctl.o
Bartlomiej Zolnierkiewiczb9103da2008-10-13 21:39:44 +020045ifeq ($(CONFIG_IDE_PROC_FS), y)
Bartlomiej Zolnierkiewicz806f80a2008-10-17 18:09:14 +020046 ide-gd_mod-y += ide-disk_proc.o
47endif
Bartlomiej Zolnierkiewiczb9103da2008-10-13 21:39:44 +020048endif
49
Bartlomiej Zolnierkiewicz806f80a2008-10-17 18:09:14 +020050ifeq ($(CONFIG_IDE_GD_ATAPI), y)
51 ide-gd_mod-y += ide-floppy.o ide-floppy_ioctl.o
52ifeq ($(CONFIG_IDE_PROC_FS), y)
53 ide-gd_mod-y += ide-floppy_proc.o
54endif
55endif
56
57obj-$(CONFIG_IDE_GD) += ide-gd_mod.o
Bartlomiej Zolnierkiewicz972560f2008-02-01 23:09:23 +010058obj-$(CONFIG_BLK_DEV_IDECD) += ide-cd_mod.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070059obj-$(CONFIG_BLK_DEV_IDETAPE) += ide-tape.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070060
Bartlomiej Zolnierkiewiczade2daf2008-01-26 20:13:07 +010061ifeq ($(CONFIG_BLK_DEV_IDECS), y)
62 ide-cs-core-y += legacy/ide-cs.o
63 obj-y += ide-cs-core.o
64endif
65
66ifeq ($(CONFIG_BLK_DEV_PLATFORM), y)
67 ide-platform-core-y += legacy/ide_platform.o
68 obj-y += ide-platform-core.o
69endif
70
Bartlomiej Zolnierkiewicz452a8ed2008-10-13 21:39:33 +020071obj-$(CONFIG_IDE) += arm/ mips/