1# 2# (C) Copyright 2006 3# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4# 5# SPDX-License-Identifier: GPL-2.0+ 6# 7 8include $(TOPDIR)/config.mk 9 10LIB := $(obj)libspi_flash.o 11 12ifdef CONFIG_SPL_BUILD 13COBJS-$(CONFIG_SPL_SPI_LOAD) += spi_spl_load.o 14COBJS-$(CONFIG_SPL_SPI_BOOT) += fsl_espi_spl.o 15endif 16 17COBJS-$(CONFIG_SPI_FLASH) += spi_flash.o 18COBJS-$(CONFIG_SPI_FLASH_ATMEL) += atmel.o 19COBJS-$(CONFIG_SPI_FLASH_EON) += eon.o 20COBJS-$(CONFIG_SPI_FLASH_GIGADEVICE) += gigadevice.o 21COBJS-$(CONFIG_SPI_FLASH_MACRONIX) += macronix.o 22COBJS-$(CONFIG_SPI_FLASH_SPANSION) += spansion.o 23COBJS-$(CONFIG_SPI_FLASH_SST) += sst.o 24COBJS-$(CONFIG_SPI_FLASH_STMICRO) += stmicro.o 25COBJS-$(CONFIG_SPI_FLASH_WINBOND) += winbond.o 26COBJS-$(CONFIG_SPI_FRAM_RAMTRON) += ramtron.o 27COBJS-$(CONFIG_SPI_M95XXX) += eeprom_m95xxx.o 28 29COBJS := $(COBJS-y) 30SRCS := $(COBJS:.o=.c) 31OBJS := $(addprefix $(obj),$(COBJS)) 32 33all: $(LIB) 34 35$(LIB): $(obj).depend $(OBJS) 36 $(call cmd_link_o_target, $(OBJS)) 37 38######################################################################### 39 40# defines $(obj).depend target 41include $(SRCTREE)/rules.mk 42 43sinclude $(obj).depend 44 45######################################################################### 46