Haavard Skinnemoen | 2f5bfb7 | 2008-05-16 11:10:33 +0200 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Haavard Skinnemoen | 2f5bfb7 | 2008-05-16 11:10:33 +0200 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB := $(obj)libspi_flash.o |
Haavard Skinnemoen | 2f5bfb7 | 2008-05-16 11:10:33 +0200 | [diff] [blame] | 11 | |
Christian Riesch | 23f16a8 | 2011-12-09 09:47:35 +0000 | [diff] [blame] | 12 | ifdef CONFIG_SPL_BUILD |
| 13 | COBJS-$(CONFIG_SPL_SPI_LOAD) += spi_spl_load.o |
| 14 | endif |
| 15 | |
Haavard Skinnemoen | 2f5bfb7 | 2008-05-16 11:10:33 +0200 | [diff] [blame] | 16 | COBJS-$(CONFIG_SPI_FLASH) += spi_flash.o |
| 17 | COBJS-$(CONFIG_SPI_FLASH_ATMEL) += atmel.o |
Chong Huang | c71e6dc | 2010-11-30 03:33:25 -0500 | [diff] [blame] | 18 | COBJS-$(CONFIG_SPI_FLASH_EON) += eon.o |
Rajeshwari Shinde | 22ea934 | 2013-01-22 20:30:18 +0000 | [diff] [blame] | 19 | COBJS-$(CONFIG_SPI_FLASH_GIGADEVICE) += gigadevice.o |
Prafulla Wadaskar | 0956907 | 2009-04-06 21:24:43 +0530 | [diff] [blame] | 20 | COBJS-$(CONFIG_SPI_FLASH_MACRONIX) += macronix.o |
Mingkai Hu | 2ba690b | 2009-03-31 14:09:41 +0800 | [diff] [blame] | 21 | COBJS-$(CONFIG_SPI_FLASH_SPANSION) += spansion.o |
Mike Frysinger | f1cb7c8 | 2009-03-27 19:27:58 -0400 | [diff] [blame] | 22 | COBJS-$(CONFIG_SPI_FLASH_SST) += sst.o |
TsiChung Liew | 8dd593a | 2008-08-06 16:08:41 -0500 | [diff] [blame] | 23 | COBJS-$(CONFIG_SPI_FLASH_STMICRO) += stmicro.o |
Jason McMullan | 64e5f3a | 2009-10-09 17:12:23 -0400 | [diff] [blame] | 24 | COBJS-$(CONFIG_SPI_FLASH_WINBOND) += winbond.o |
Reinhard Meyer | 52cb0a7 | 2010-10-05 16:56:40 +0200 | [diff] [blame] | 25 | COBJS-$(CONFIG_SPI_FRAM_RAMTRON) += ramtron.o |
Albin Tonnerre | 626e02a | 2009-08-07 12:37:36 +0200 | [diff] [blame] | 26 | COBJS-$(CONFIG_SPI_M95XXX) += eeprom_m95xxx.o |
Haavard Skinnemoen | 2f5bfb7 | 2008-05-16 11:10:33 +0200 | [diff] [blame] | 27 | |
| 28 | COBJS := $(COBJS-y) |
| 29 | SRCS := $(COBJS:.o=.c) |
| 30 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 31 | |
| 32 | all: $(LIB) |
| 33 | |
| 34 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 35 | $(call cmd_link_o_target, $(OBJS)) |
Haavard Skinnemoen | 2f5bfb7 | 2008-05-16 11:10:33 +0200 | [diff] [blame] | 36 | |
| 37 | ######################################################################### |
| 38 | |
| 39 | # defines $(obj).depend target |
| 40 | include $(SRCTREE)/rules.mk |
| 41 | |
| 42 | sinclude $(obj).depend |
| 43 | |
| 44 | ######################################################################### |