blob: ceaf779054eac07246702bf789b0ffbc6a97b7b3 [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 Zolnierkiewiczf8790482008-10-13 21:39:45 +020040ide-disk_mod-y += ide-disk.o ide-disk_ioctl.o
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +010041ide-cd_mod-y += ide-cd.o ide-cd_ioctl.o ide-cd_verbose.o
Bartlomiej Zolnierkiewicz01278542008-10-10 22:39:38 +020042ide-floppy_mod-y += ide-floppy.o ide-floppy_ioctl.o
Bartlomiej Zolnierkiewicz972560f2008-02-01 23:09:23 +010043
Bartlomiej Zolnierkiewiczb9103da2008-10-13 21:39:44 +020044ifeq ($(CONFIG_IDE_PROC_FS), y)
Bartlomiej Zolnierkiewicz06b89512008-10-13 21:39:45 +020045 ide-disk_mod-y += ide-disk_proc.o
Bartlomiej Zolnierkiewiczb9103da2008-10-13 21:39:44 +020046 ide-floppy_mod-y += ide-floppy_proc.o
47endif
48
Bartlomiej Zolnierkiewiczf8790482008-10-13 21:39:45 +020049obj-$(CONFIG_BLK_DEV_IDEDISK) += ide-disk_mod.o
Bartlomiej Zolnierkiewicz972560f2008-02-01 23:09:23 +010050obj-$(CONFIG_BLK_DEV_IDECD) += ide-cd_mod.o
Bartlomiej Zolnierkiewicz01278542008-10-10 22:39:38 +020051obj-$(CONFIG_BLK_DEV_IDEFLOPPY) += ide-floppy_mod.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070052obj-$(CONFIG_BLK_DEV_IDETAPE) += ide-tape.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070053
Bartlomiej Zolnierkiewiczade2daf2008-01-26 20:13:07 +010054ifeq ($(CONFIG_BLK_DEV_IDECS), y)
55 ide-cs-core-y += legacy/ide-cs.o
56 obj-y += ide-cs-core.o
57endif
58
59ifeq ($(CONFIG_BLK_DEV_PLATFORM), y)
60 ide-platform-core-y += legacy/ide_platform.o
61 obj-y += ide-platform-core.o
62endif
63
Bartlomiej Zolnierkiewicz452a8ed2008-10-13 21:39:33 +020064obj-$(CONFIG_IDE) += arm/ mips/