3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # SPDX-License-Identifier: GPL-2.0+
8 include $(TOPDIR)/config.mk
10 LIB := $(obj)libspi_flash.o
12 ifdef CONFIG_SPL_BUILD
13 COBJS-$(CONFIG_SPL_SPI_LOAD) += spi_spl_load.o
16 COBJS-$(CONFIG_SPI_FLASH) += spi_flash.o
17 COBJS-$(CONFIG_SPI_FLASH_ATMEL) += atmel.o
18 COBJS-$(CONFIG_SPI_FLASH_EON) += eon.o
19 COBJS-$(CONFIG_SPI_FLASH_GIGADEVICE) += gigadevice.o
20 COBJS-$(CONFIG_SPI_FLASH_MACRONIX) += macronix.o
21 COBJS-$(CONFIG_SPI_FLASH_SPANSION) += spansion.o
22 COBJS-$(CONFIG_SPI_FLASH_SST) += sst.o
23 COBJS-$(CONFIG_SPI_FLASH_STMICRO) += stmicro.o
24 COBJS-$(CONFIG_SPI_FLASH_WINBOND) += winbond.o
25 COBJS-$(CONFIG_SPI_FRAM_RAMTRON) += ramtron.o
26 COBJS-$(CONFIG_SPI_M95XXX) += eeprom_m95xxx.o
29 SRCS := $(COBJS:.o=.c)
30 OBJS := $(addprefix $(obj),$(COBJS))
34 $(LIB): $(obj).depend $(OBJS)
35 $(call cmd_link_o_target, $(OBJS))
37 #########################################################################
39 # defines $(obj).depend target
40 include $(SRCTREE)/rules.mk
42 sinclude $(obj).depend
44 #########################################################################