2008-05-16 09:10:33 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2006
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2008-05-16 09:10:33 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 14:48:07 +00:00
|
|
|
LIB := $(obj)libspi_flash.o
|
2008-05-16 09:10:33 +00:00
|
|
|
|
2011-12-09 09:47:35 +00:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
COBJS-$(CONFIG_SPL_SPI_LOAD) += spi_spl_load.o
|
2013-08-16 07:16:13 +00:00
|
|
|
COBJS-$(CONFIG_SPL_SPI_BOOT) += fsl_espi_spl.o
|
2011-12-09 09:47:35 +00:00
|
|
|
endif
|
|
|
|
|
2008-05-16 09:10:33 +00:00
|
|
|
COBJS-$(CONFIG_SPI_FLASH) += spi_flash.o
|
|
|
|
COBJS-$(CONFIG_SPI_FLASH_ATMEL) += atmel.o
|
2010-11-30 08:33:25 +00:00
|
|
|
COBJS-$(CONFIG_SPI_FLASH_EON) += eon.o
|
2013-01-22 20:30:18 +00:00
|
|
|
COBJS-$(CONFIG_SPI_FLASH_GIGADEVICE) += gigadevice.o
|
2009-04-06 15:54:43 +00:00
|
|
|
COBJS-$(CONFIG_SPI_FLASH_MACRONIX) += macronix.o
|
2009-03-31 06:09:41 +00:00
|
|
|
COBJS-$(CONFIG_SPI_FLASH_SPANSION) += spansion.o
|
2009-03-27 23:27:58 +00:00
|
|
|
COBJS-$(CONFIG_SPI_FLASH_SST) += sst.o
|
2008-08-06 21:08:41 +00:00
|
|
|
COBJS-$(CONFIG_SPI_FLASH_STMICRO) += stmicro.o
|
2009-10-09 21:12:23 +00:00
|
|
|
COBJS-$(CONFIG_SPI_FLASH_WINBOND) += winbond.o
|
2010-10-05 14:56:40 +00:00
|
|
|
COBJS-$(CONFIG_SPI_FRAM_RAMTRON) += ramtron.o
|
2009-08-07 10:37:36 +00:00
|
|
|
COBJS-$(CONFIG_SPI_M95XXX) += eeprom_m95xxx.o
|
2008-05-16 09:10:33 +00:00
|
|
|
|
|
|
|
COBJS := $(COBJS-y)
|
|
|
|
SRCS := $(COBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS))
|
|
|
|
|
|
|
|
all: $(LIB)
|
|
|
|
|
|
|
|
$(LIB): $(obj).depend $(OBJS)
|
2010-11-05 14:48:07 +00:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2008-05-16 09:10:33 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|