2023-10-14 20:47:57 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
|
|
# Copyright (C) 2023 Sean Anderson <seanga2@gmail.com>
|
|
|
|
|
|
|
|
config SPL_UT_LOAD
|
|
|
|
bool "Unit tests for SPL load methods"
|
|
|
|
depends on SPL_UNIT_TEST
|
|
|
|
default y if SANDBOX
|
|
|
|
help
|
|
|
|
Test various SPL load methods.
|
|
|
|
|
|
|
|
if SPL_UT_LOAD
|
|
|
|
|
2023-10-14 20:48:00 +00:00
|
|
|
config SPL_UT_LOAD_FS
|
|
|
|
bool "Unit tests for filesystems"
|
|
|
|
depends on SANDBOX && SPL_OF_REAL
|
|
|
|
depends on FS_LOADER
|
2023-10-14 20:48:01 +00:00
|
|
|
depends on SPL_BLK_FS
|
2023-10-14 20:48:00 +00:00
|
|
|
depends on SPL_FS_FAT
|
|
|
|
depends on SPL_FS_EXT4
|
|
|
|
depends on SPL_MMC_WRITE
|
2023-10-14 20:48:02 +00:00
|
|
|
depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
|
2023-10-14 20:48:00 +00:00
|
|
|
default y
|
|
|
|
help
|
2023-10-14 20:48:01 +00:00
|
|
|
Test filesystems and the various load methods which use them.
|
2023-10-14 20:48:00 +00:00
|
|
|
|
2023-10-14 20:48:03 +00:00
|
|
|
config SPL_UT_LOAD_NET
|
|
|
|
bool "Test loading over TFTP"
|
|
|
|
depends on SANDBOX && SPL_OF_REAL
|
|
|
|
depends on SPL_ETH
|
|
|
|
depends on USE_BOOTFILE
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Test loading images over TFTP using the NET image load method.
|
|
|
|
|
2023-10-14 20:48:05 +00:00
|
|
|
config SPL_UT_LOAD_SPI
|
|
|
|
bool "Test loading from SPI Flash"
|
|
|
|
depends on SANDBOX && SPL_OF_REAL
|
|
|
|
depends on SPL_SPI_LOAD
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Test the SPI flash image load metod.
|
|
|
|
|
2023-10-14 20:47:57 +00:00
|
|
|
config SPL_UT_LOAD_OS
|
|
|
|
bool "Test loading from the host OS"
|
|
|
|
depends on SANDBOX && SPL_LOAD_FIT
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Smoke test to ensure that loading U-boot works in sandbox.
|
|
|
|
|
|
|
|
endif
|