mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 17:07:38 +00:00
0c1f4a9fb1
Add a bootdev for SPI flash so that these devices can be used with standard boot. It only supports loading a script. Add a special case for the label, since we want to use "spi", not "spi_flash". Enable the new bootdev on sandbox. Signed-off-by: Simon Glass <sjg@chromium.org>
24 lines
672 B
Makefile
24 lines
672 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2006
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)DM_SPI_FLASH) += sf-uclass.o
|
|
spi-nor-y := sf_probe.o spi-nor-ids.o
|
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
obj-$(CONFIG_SPL_SPI_BOOT) += fsl_espi_spl.o
|
|
ifeq ($(CONFIG_$(SPL_TPL_)SPI_FLASH_TINY),y)
|
|
spi-nor-y += spi-nor-tiny.o
|
|
else
|
|
spi-nor-y += spi-nor-core.o
|
|
endif
|
|
else
|
|
spi-nor-y += spi-nor-core.o
|
|
endif
|
|
|
|
obj-$(CONFIG_SPI_FLASH) += spi-nor.o
|
|
obj-$(CONFIG_SPI_FLASH_DATAFLASH) += sf_dataflash.o
|
|
obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_MTD) += sf_mtd.o
|
|
obj-$(CONFIG_SPI_FLASH_SANDBOX) += sandbox.o
|
|
obj-$(CONFIG_$(SPL_TPL_)BOOTDEV_SPI_FLASH) += sf_bootdev.o
|