0ae0cb7b50
Add a simple test for SPI that uses SPI flash. It operates by creating a SPI flash file and using the 'sf test' command to test that all operations work correctly. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
24 lines
632 B
Makefile
24 lines
632 B
Makefile
#
|
|
# Copyright (c) 2013 Google, Inc
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
|
|
obj-$(CONFIG_CMD_DM) += cmd_dm.o
|
|
obj-$(CONFIG_DM_TEST) += bus.o
|
|
obj-$(CONFIG_DM_TEST) += test-driver.o
|
|
obj-$(CONFIG_DM_TEST) += test-fdt.o
|
|
obj-$(CONFIG_DM_TEST) += test-main.o
|
|
obj-$(CONFIG_DM_TEST) += test-uclass.o
|
|
obj-$(CONFIG_DM_TEST) += ut.o
|
|
|
|
# Tests for particular subsystems - when enabling driver model for a new
|
|
# subsystem you must add sandbox tests here.
|
|
obj-$(CONFIG_DM_TEST) += core.o
|
|
obj-$(CONFIG_DM_TEST) += ut.o
|
|
ifneq ($(CONFIG_SANDBOX),)
|
|
obj-$(CONFIG_DM_GPIO) += gpio.o
|
|
obj-$(CONFIG_DM_SPI) += spi.o
|
|
obj-$(CONFIG_DM_SPI_FLASH) += sf.o
|
|
endif
|