blob: 2016e98440ceb0e09f6be0bc919733c71b6c07c4 [file] [log] [blame]
Jean-Christophe PLAGNIOL-VILLARD33daf5b2007-11-24 21:13:59 +01001#
2# (C) Copyright 2000-2007
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Jean-Christophe PLAGNIOL-VILLARD33daf5b2007-11-24 21:13:59 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB := $(obj)libblock.o
Jean-Christophe PLAGNIOL-VILLARD33daf5b2007-11-24 21:13:59 +010011
Albert Aribaud4fc7d282010-08-08 05:17:05 +053012COBJS-$(CONFIG_SCSI_AHCI) += ahci.o
Jean-Christophe PLAGNIOL-VILLARD1a028062008-08-13 01:40:39 +020013COBJS-$(CONFIG_ATA_PIIX) += ata_piix.o
Stefano Babic9f472e62012-02-22 00:24:39 +000014COBJS-$(CONFIG_DWC_AHSATA) += dwc_ahsata.o
Dave Liufd0b1fe2008-03-26 22:55:32 +080015COBJS-$(CONFIG_FSL_SATA) += fsl_sata.o
Macpaul Lin4bed7262011-05-01 21:28:56 +000016COBJS-$(CONFIG_IDE_FTIDE020) += ftide020.o
Dave Liuffc664e2008-03-26 22:51:44 +080017COBJS-$(CONFIG_LIBATA) += libata.o
Albert Aribaud39419ce2010-08-08 05:17:06 +053018COBJS-$(CONFIG_MVSATA_IDE) += mvsata_ide.o
Marek Vasut76f260d2011-01-13 07:27:55 +000019COBJS-$(CONFIG_MX51_PATA) += mxc_ata.o
Sonic Zhang8a6b2722008-11-26 22:16:45 -050020COBJS-$(CONFIG_PATA_BFIN) += pata_bfin.o
Kazuaki Ichinohee405afa2009-06-12 18:10:12 +090021COBJS-$(CONFIG_SATA_DWC) += sata_dwc.o
Tor Krillf1352652008-05-29 10:40:17 +020022COBJS-$(CONFIG_SATA_SIL3114) += sata_sil3114.o
Tang Yuantian83c484d2011-10-07 19:26:58 +000023COBJS-$(CONFIG_SATA_SIL) += sata_sil.o
Albert Aribaud4fc7d282010-08-08 05:17:05 +053024COBJS-$(CONFIG_IDE_SIL680) += sil680.o
Jean-Christophe PLAGNIOL-VILLARD1a028062008-08-13 01:40:39 +020025COBJS-$(CONFIG_SCSI_SYM53C8XX) += sym53c8xx.o
26COBJS-$(CONFIG_SYSTEMACE) += systemace.o
Jean-Christophe PLAGNIOL-VILLARD33daf5b2007-11-24 21:13:59 +010027
28COBJS := $(COBJS-y)
Wolfgang Denk53677ef2008-05-20 16:00:29 +020029SRCS := $(COBJS:.o=.c)
30OBJS := $(addprefix $(obj),$(COBJS))
Jean-Christophe PLAGNIOL-VILLARD33daf5b2007-11-24 21:13:59 +010031
32all: $(LIB)
33
34$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010035 $(call cmd_link_o_target, $(OBJS))
Jean-Christophe PLAGNIOL-VILLARD33daf5b2007-11-24 21:13:59 +010036
37#########################################################################
38
39# defines $(obj).depend target
40include $(SRCTREE)/rules.mk
41
42sinclude $(obj).depend
43
44#########################################################################