1# SPDX-License-Identifier: GPL-2.0 2# 3# link order is important here 4# 5 6ccflags-y := -Idrivers/ide 7 8ide-core-y += ide.o ide-ioctls.o ide-io.o ide-iops.o ide-lib.o ide-probe.o \ 9 ide-taskfile.o ide-pm.o ide-park.o ide-sysfs.o ide-devsets.o \ 10 ide-io-std.o ide-eh.o 11 12# core IDE code 13ide-core-$(CONFIG_IDE_XFER_MODE) += ide-pio-blacklist.o ide-xfer-mode.o 14ide-core-$(CONFIG_IDE_TIMINGS) += ide-timings.o 15ide-core-$(CONFIG_IDE_ATAPI) += ide-atapi.o 16ide-core-$(CONFIG_BLK_DEV_IDEPCI) += setup-pci.o 17ide-core-$(CONFIG_BLK_DEV_IDEDMA) += ide-dma.o 18ide-core-$(CONFIG_BLK_DEV_IDEDMA_SFF) += ide-dma-sff.o 19ide-core-$(CONFIG_IDE_PROC_FS) += ide-proc.o 20ide-core-$(CONFIG_BLK_DEV_IDEACPI) += ide-acpi.o 21ide-core-$(CONFIG_IDE_LEGACY) += ide-legacy.o 22 23obj-$(CONFIG_IDE) += ide-core.o 24 25obj-$(CONFIG_BLK_DEV_ALI14XX) += ali14xx.o 26obj-$(CONFIG_BLK_DEV_UMC8672) += umc8672.o 27obj-$(CONFIG_BLK_DEV_DTC2278) += dtc2278.o 28obj-$(CONFIG_BLK_DEV_HT6560B) += ht6560b.o 29obj-$(CONFIG_BLK_DEV_QD65XX) += qd65xx.o 30obj-$(CONFIG_BLK_DEV_4DRIVES) += ide-4drives.o 31 32obj-$(CONFIG_BLK_DEV_GAYLE) += gayle.o 33obj-$(CONFIG_BLK_DEV_FALCON_IDE) += falconide.o 34obj-$(CONFIG_BLK_DEV_MAC_IDE) += macide.o 35obj-$(CONFIG_BLK_DEV_Q40IDE) += q40ide.o 36obj-$(CONFIG_BLK_DEV_BUDDHA) += buddha.o 37 38obj-$(CONFIG_BLK_DEV_AEC62XX) += aec62xx.o 39obj-$(CONFIG_BLK_DEV_ALI15X3) += alim15x3.o 40obj-$(CONFIG_BLK_DEV_AMD74XX) += amd74xx.o 41obj-$(CONFIG_BLK_DEV_ATIIXP) += atiixp.o 42obj-$(CONFIG_BLK_DEV_CMD64X) += cmd64x.o 43obj-$(CONFIG_BLK_DEV_CS5520) += cs5520.o 44obj-$(CONFIG_BLK_DEV_CS5530) += cs5530.o 45obj-$(CONFIG_BLK_DEV_CS5535) += cs5535.o 46obj-$(CONFIG_BLK_DEV_CS5536) += cs5536.o 47obj-$(CONFIG_BLK_DEV_SC1200) += sc1200.o 48obj-$(CONFIG_BLK_DEV_CY82C693) += cy82c693.o 49obj-$(CONFIG_BLK_DEV_DELKIN) += delkin_cb.o 50obj-$(CONFIG_BLK_DEV_HPT366) += hpt366.o 51obj-$(CONFIG_BLK_DEV_IT8172) += it8172.o 52obj-$(CONFIG_BLK_DEV_IT8213) += it8213.o 53obj-$(CONFIG_BLK_DEV_IT821X) += it821x.o 54obj-$(CONFIG_BLK_DEV_JMICRON) += jmicron.o 55obj-$(CONFIG_BLK_DEV_NS87415) += ns87415.o 56obj-$(CONFIG_BLK_DEV_OPTI621) += opti621.o 57obj-$(CONFIG_BLK_DEV_PDC202XX_OLD) += pdc202xx_old.o 58obj-$(CONFIG_BLK_DEV_PDC202XX_NEW) += pdc202xx_new.o 59obj-$(CONFIG_BLK_DEV_PIIX) += piix.o 60obj-$(CONFIG_BLK_DEV_RZ1000) += rz1000.o 61obj-$(CONFIG_BLK_DEV_SVWKS) += serverworks.o 62obj-$(CONFIG_BLK_DEV_SIIMAGE) += siimage.o 63obj-$(CONFIG_BLK_DEV_SIS5513) += sis5513.o 64obj-$(CONFIG_BLK_DEV_SL82C105) += sl82c105.o 65obj-$(CONFIG_BLK_DEV_SLC90E66) += slc90e66.o 66obj-$(CONFIG_BLK_DEV_TC86C001) += tc86c001.o 67obj-$(CONFIG_BLK_DEV_TRIFLEX) += triflex.o 68obj-$(CONFIG_BLK_DEV_TRM290) += trm290.o 69obj-$(CONFIG_BLK_DEV_VIA82CXXX) += via82cxxx.o 70 71# Must appear at the end of the block 72obj-$(CONFIG_BLK_DEV_GENERIC) += ide-pci-generic.o 73 74obj-$(CONFIG_IDEPCI_PCIBUS_ORDER) += ide-scan-pci.o 75 76obj-$(CONFIG_BLK_DEV_CMD640) += cmd640.o 77 78obj-$(CONFIG_BLK_DEV_IDE_PMAC) += pmac.o 79 80obj-$(CONFIG_IDE_GENERIC) += ide-generic.o 81obj-$(CONFIG_BLK_DEV_IDEPNP) += ide-pnp.o 82 83ide-gd_mod-y += ide-gd.o 84ide-cd_mod-y += ide-cd.o ide-cd_ioctl.o ide-cd_verbose.o 85 86ifeq ($(CONFIG_IDE_GD_ATA), y) 87 ide-gd_mod-y += ide-disk.o ide-disk_ioctl.o 88ifeq ($(CONFIG_IDE_PROC_FS), y) 89 ide-gd_mod-y += ide-disk_proc.o 90endif 91endif 92 93ifeq ($(CONFIG_IDE_GD_ATAPI), y) 94 ide-gd_mod-y += ide-floppy.o ide-floppy_ioctl.o 95ifeq ($(CONFIG_IDE_PROC_FS), y) 96 ide-gd_mod-y += ide-floppy_proc.o 97endif 98endif 99 100obj-$(CONFIG_IDE_GD) += ide-gd_mod.o 101obj-$(CONFIG_BLK_DEV_IDECD) += ide-cd_mod.o 102obj-$(CONFIG_BLK_DEV_IDETAPE) += ide-tape.o 103 104obj-$(CONFIG_BLK_DEV_IDECS) += ide-cs.o 105 106obj-$(CONFIG_BLK_DEV_PLATFORM) += ide_platform.o 107 108obj-$(CONFIG_BLK_DEV_IDE_ICSIDE) += icside.o 109obj-$(CONFIG_BLK_DEV_IDE_RAPIDE) += rapide.o 110obj-$(CONFIG_BLK_DEV_PALMCHIP_BK3710) += palm_bk3710.o 111 112obj-$(CONFIG_BLK_DEV_IDE_AU1XXX) += au1xxx-ide.o 113 114obj-$(CONFIG_BLK_DEV_IDE_TX4938) += tx4938ide.o 115obj-$(CONFIG_BLK_DEV_IDE_TX4939) += tx4939ide.o 116