xref: /openbmc/u-boot/drivers/mtd/spi/Makefile (revision 50e24381)
183d290c5STom Rini# SPDX-License-Identifier: GPL-2.0+
2d25ce7d2SHaavard Skinnemoen#
3d25ce7d2SHaavard Skinnemoen# (C) Copyright 2006
4d25ce7d2SHaavard Skinnemoen# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5d25ce7d2SHaavard Skinnemoen
64c2dbefdSSimon Glassobj-$(CONFIG_DM_SPI_FLASH) += sf-uclass.o
7*778572d7SVignesh Rspi-nor-y := sf_probe.o spi-nor-ids.o
84c2dbefdSSimon Glass
932b11273SChristian Rieschifdef CONFIG_SPL_BUILD
102fc7ef61SMasahiro Yamadaobj-$(CONFIG_SPL_SPI_BOOT)	+= fsl_espi_spl.o
11*778572d7SVignesh Rifeq ($(CONFIG_SPL_SPI_FLASH_TINY),y)
12*778572d7SVignesh Rspi-nor-y += spi-nor-tiny.o
13*778572d7SVignesh Relse
14*778572d7SVignesh Rspi-nor-y += spi-nor-core.o
15*778572d7SVignesh Rendif
16*778572d7SVignesh Relse
17*778572d7SVignesh Rspi-nor-y += spi-nor-core.o
1832b11273SChristian Rieschendif
1932b11273SChristian Riesch
20*778572d7SVignesh Robj-$(CONFIG_SPI_FLASH) += spi-nor.o
21c4e88623SVignesh Robj-$(CONFIG_SPI_FLASH_DATAFLASH) += sf_dataflash.o sf.o
229fe6d871SDaniel Schwierzeckobj-$(CONFIG_SPI_FLASH_MTD) += sf_mtd.o
23ffdb20beSMike Frysingerobj-$(CONFIG_SPI_FLASH_SANDBOX) += sandbox.o
24