xref: /openbmc/u-boot/drivers/mtd/spi/Makefile (revision 32b11273)
1d25ce7d2SHaavard Skinnemoen#
2d25ce7d2SHaavard Skinnemoen# (C) Copyright 2006
3d25ce7d2SHaavard Skinnemoen# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4d25ce7d2SHaavard Skinnemoen#
5d25ce7d2SHaavard Skinnemoen# See file CREDITS for list of people who contributed to this
6d25ce7d2SHaavard Skinnemoen# project.
7d25ce7d2SHaavard Skinnemoen#
8d25ce7d2SHaavard Skinnemoen# This program is free software; you can redistribute it and/or
9d25ce7d2SHaavard Skinnemoen# modify it under the terms of the GNU General Public License as
10d25ce7d2SHaavard Skinnemoen# published by the Free Software Foundation; either version 2 of
11d25ce7d2SHaavard Skinnemoen# the License, or (at your option) any later version.
12d25ce7d2SHaavard Skinnemoen#
13d25ce7d2SHaavard Skinnemoen# This program is distributed in the hope that it will be useful,
14d25ce7d2SHaavard Skinnemoen# but WITHOUT ANY WARRANTY; without even the implied warranty of
15d25ce7d2SHaavard Skinnemoen# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the
16d25ce7d2SHaavard Skinnemoen# GNU General Public License for more details.
17d25ce7d2SHaavard Skinnemoen#
18d25ce7d2SHaavard Skinnemoen# You should have received a copy of the GNU General Public License
19d25ce7d2SHaavard Skinnemoen# along with this program; if not, write to the Free Software
20d25ce7d2SHaavard Skinnemoen# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21d25ce7d2SHaavard Skinnemoen# MA 02111-1307 USA
22d25ce7d2SHaavard Skinnemoen#
23d25ce7d2SHaavard Skinnemoen
24d25ce7d2SHaavard Skinnemoeninclude $(TOPDIR)/config.mk
25d25ce7d2SHaavard Skinnemoen
266d8962e8SSebastien CarlierLIB	:= $(obj)libspi_flash.o
27d25ce7d2SHaavard Skinnemoen
28*32b11273SChristian Rieschifdef CONFIG_SPL_BUILD
29*32b11273SChristian RieschCOBJS-$(CONFIG_SPL_SPI_LOAD)	+= spi_spl_load.o
30*32b11273SChristian Rieschendif
31*32b11273SChristian Riesch
32d25ce7d2SHaavard SkinnemoenCOBJS-$(CONFIG_SPI_FLASH)	+= spi_flash.o
33d25ce7d2SHaavard SkinnemoenCOBJS-$(CONFIG_SPI_FLASH_ATMEL)	+= atmel.o
34d1d90656SChong HuangCOBJS-$(CONFIG_SPI_FLASH_EON)	+= eon.o
357ce6031aSPrafulla WadaskarCOBJS-$(CONFIG_SPI_FLASH_MACRONIX)	+= macronix.o
366805e4bfSMingkai HuCOBJS-$(CONFIG_SPI_FLASH_SPANSION)	+= spansion.o
371c587437SMike FrysingerCOBJS-$(CONFIG_SPI_FLASH_SST)	+= sst.o
387b7a869aSTsiChung LiewCOBJS-$(CONFIG_SPI_FLASH_STMICRO)	+= stmicro.o
39d394a779SJason McMullanCOBJS-$(CONFIG_SPI_FLASH_WINBOND)	+= winbond.o
40e0987e25SReinhard MeyerCOBJS-$(CONFIG_SPI_FRAM_RAMTRON)	+= ramtron.o
413ac374c0SAlbin TonnerreCOBJS-$(CONFIG_SPI_M95XXX) += eeprom_m95xxx.o
42d25ce7d2SHaavard Skinnemoen
43d25ce7d2SHaavard SkinnemoenCOBJS	:= $(COBJS-y)
44d25ce7d2SHaavard SkinnemoenSRCS	:= $(COBJS:.o=.c)
45d25ce7d2SHaavard SkinnemoenOBJS	:= $(addprefix $(obj),$(COBJS))
46d25ce7d2SHaavard Skinnemoen
47d25ce7d2SHaavard Skinnemoenall:	$(LIB)
48d25ce7d2SHaavard Skinnemoen
49d25ce7d2SHaavard Skinnemoen$(LIB): $(obj).depend $(OBJS)
506d8962e8SSebastien Carlier	$(call cmd_link_o_target, $(OBJS))
51d25ce7d2SHaavard Skinnemoen
52d25ce7d2SHaavard Skinnemoen#########################################################################
53d25ce7d2SHaavard Skinnemoen
54d25ce7d2SHaavard Skinnemoen# defines $(obj).depend target
55d25ce7d2SHaavard Skinnemoeninclude $(SRCTREE)/rules.mk
56d25ce7d2SHaavard Skinnemoen
57d25ce7d2SHaavard Skinnemoensinclude $(obj).depend
58d25ce7d2SHaavard Skinnemoen
59d25ce7d2SHaavard Skinnemoen#########################################################################
60