2 # Makefile for the kernel ata, atapi, and ide block device drivers.
4 # 12 September 2000, Bartlomiej Zolnierkiewicz <bkz@linux-ide.org>
5 # Rewritten to use lists instead of if-statements.
7 # Note : at this point, these files are compiled on all systems.
8 # In the future, some of these should be built conditionally.
11 O_TARGET := idedriver.o
13 export-objs := ide-iops.o ide-taskfile.o ide-proc.o ide.o ide-probe.o ide-dma.o ide-lib.o setup-pci.o ide-io.o
15 all-subdirs := arm legacy pci ppc raid
16 mod-subdirs := arm legacy pci ppc raid
22 obj-$(CONFIG_IBM_OCP_IDE) += ibm_ocp_ide.o
23 obj-$(CONFIG_BLK_DEV_REDWOOD_IDE) += ocp_stbxxxxx.o
25 subdir-$(CONFIG_BLK_DEV_IDE) += legacy ppc arm raid pci
27 # First come modules that register themselves with the core
29 ifeq ($(CONFIG_BLK_DEV_IDE),y)
30 obj-y += pci/idedriver-pci.o
33 # Core IDE code - must come before legacy
35 obj-$(CONFIG_BLK_DEV_IDE) += ide-probe.o ide-geometry.o ide-iops.o ide-taskfile.o ide.o ide-lib.o ide-io.o
36 obj-$(CONFIG_BLK_DEV_IDEDISK) += ide-disk.o
37 obj-$(CONFIG_BLK_DEV_IDECD) += ide-cd.o
38 obj-$(CONFIG_BLK_DEV_IDETAPE) += ide-tape.o
39 obj-$(CONFIG_BLK_DEV_IDEFLOPPY) += ide-floppy.o
41 obj-$(CONFIG_BLK_DEV_IDEPCI) += setup-pci.o
42 obj-$(CONFIG_BLK_DEV_IDEDMA_PCI) += ide-dma.o
43 obj-$(CONFIG_BLK_DEV_ISAPNP) += ide-pnp.o
46 ifeq ($(CONFIG_BLK_DEV_IDE),y)
47 obj-$(CONFIG_PROC_FS) += ide-proc.o
50 ifeq ($(CONFIG_BLK_DEV_IDE),y)
51 obj-y += legacy/idedriver-legacy.o
52 obj-y += ppc/idedriver-ppc.o
53 obj-y += arm/idedriver-arm.o
57 ifeq ($(CONFIG_BLK_DEV_IDE),y)
58 # RAID must be last of all
59 obj-y += raid/idedriver-raid.o
62 include $(TOPDIR)/Rules.make