1d25ce7d2SHaavard Skinnemoen# 2d25ce7d2SHaavard Skinnemoen# (C) Copyright 2006 3d25ce7d2SHaavard Skinnemoen# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4d25ce7d2SHaavard Skinnemoen# 5*1a459660SWolfgang Denk# SPDX-License-Identifier: GPL-2.0+ 6d25ce7d2SHaavard Skinnemoen# 7d25ce7d2SHaavard Skinnemoen 8d25ce7d2SHaavard Skinnemoeninclude $(TOPDIR)/config.mk 9d25ce7d2SHaavard Skinnemoen 106d8962e8SSebastien CarlierLIB := $(obj)libspi_flash.o 11d25ce7d2SHaavard Skinnemoen 1232b11273SChristian Rieschifdef CONFIG_SPL_BUILD 1332b11273SChristian RieschCOBJS-$(CONFIG_SPL_SPI_LOAD) += spi_spl_load.o 1432b11273SChristian Rieschendif 1532b11273SChristian Riesch 16d25ce7d2SHaavard SkinnemoenCOBJS-$(CONFIG_SPI_FLASH) += spi_flash.o 17d25ce7d2SHaavard SkinnemoenCOBJS-$(CONFIG_SPI_FLASH_ATMEL) += atmel.o 18d1d90656SChong HuangCOBJS-$(CONFIG_SPI_FLASH_EON) += eon.o 19f10b4c0eSRajeshwari ShindeCOBJS-$(CONFIG_SPI_FLASH_GIGADEVICE) += gigadevice.o 207ce6031aSPrafulla WadaskarCOBJS-$(CONFIG_SPI_FLASH_MACRONIX) += macronix.o 216805e4bfSMingkai HuCOBJS-$(CONFIG_SPI_FLASH_SPANSION) += spansion.o 221c587437SMike FrysingerCOBJS-$(CONFIG_SPI_FLASH_SST) += sst.o 237b7a869aSTsiChung LiewCOBJS-$(CONFIG_SPI_FLASH_STMICRO) += stmicro.o 24d394a779SJason McMullanCOBJS-$(CONFIG_SPI_FLASH_WINBOND) += winbond.o 25e0987e25SReinhard MeyerCOBJS-$(CONFIG_SPI_FRAM_RAMTRON) += ramtron.o 263ac374c0SAlbin TonnerreCOBJS-$(CONFIG_SPI_M95XXX) += eeprom_m95xxx.o 27d25ce7d2SHaavard Skinnemoen 28d25ce7d2SHaavard SkinnemoenCOBJS := $(COBJS-y) 29d25ce7d2SHaavard SkinnemoenSRCS := $(COBJS:.o=.c) 30d25ce7d2SHaavard SkinnemoenOBJS := $(addprefix $(obj),$(COBJS)) 31d25ce7d2SHaavard Skinnemoen 32d25ce7d2SHaavard Skinnemoenall: $(LIB) 33d25ce7d2SHaavard Skinnemoen 34d25ce7d2SHaavard Skinnemoen$(LIB): $(obj).depend $(OBJS) 356d8962e8SSebastien Carlier $(call cmd_link_o_target, $(OBJS)) 36d25ce7d2SHaavard Skinnemoen 37d25ce7d2SHaavard Skinnemoen######################################################################### 38d25ce7d2SHaavard Skinnemoen 39d25ce7d2SHaavard Skinnemoen# defines $(obj).depend target 40d25ce7d2SHaavard Skinnemoeninclude $(SRCTREE)/rules.mk 41d25ce7d2SHaavard Skinnemoen 42d25ce7d2SHaavard Skinnemoensinclude $(obj).depend 43d25ce7d2SHaavard Skinnemoen 44d25ce7d2SHaavard Skinnemoen######################################################################### 45