Sean Anderson | c56468a6 | 2023-10-14 16:47:57 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
| 2 | # Copyright (C) 2023 Sean Anderson <seanga2@gmail.com> |
| 3 | |
| 4 | config SPL_UT_LOAD |
| 5 | bool "Unit tests for SPL load methods" |
| 6 | depends on SPL_UNIT_TEST |
| 7 | default y if SANDBOX |
| 8 | help |
| 9 | Test various SPL load methods. |
| 10 | |
| 11 | if SPL_UT_LOAD |
| 12 | |
Sean Anderson | 59b3633 | 2023-10-14 16:48:00 -0400 | [diff] [blame] | 13 | config SPL_UT_LOAD_FS |
| 14 | bool "Unit tests for filesystems" |
| 15 | depends on SANDBOX && SPL_OF_REAL |
| 16 | depends on FS_LOADER |
Sean Anderson | 6c5d0d9 | 2023-10-14 16:48:01 -0400 | [diff] [blame] | 17 | depends on SPL_BLK_FS |
Sean Anderson | 59b3633 | 2023-10-14 16:48:00 -0400 | [diff] [blame] | 18 | depends on SPL_FS_FAT |
| 19 | depends on SPL_FS_EXT4 |
| 20 | depends on SPL_MMC_WRITE |
Sean Anderson | 6ba8eca | 2023-10-14 16:48:02 -0400 | [diff] [blame] | 21 | depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR |
Sean Anderson | 59b3633 | 2023-10-14 16:48:00 -0400 | [diff] [blame] | 22 | default y |
| 23 | help |
Sean Anderson | 6c5d0d9 | 2023-10-14 16:48:01 -0400 | [diff] [blame] | 24 | Test filesystems and the various load methods which use them. |
Sean Anderson | 59b3633 | 2023-10-14 16:48:00 -0400 | [diff] [blame] | 25 | |
Sean Anderson | 53d8bf8 | 2023-10-14 16:48:03 -0400 | [diff] [blame] | 26 | config SPL_UT_LOAD_NET |
| 27 | bool "Test loading over TFTP" |
| 28 | depends on SANDBOX && SPL_OF_REAL |
| 29 | depends on SPL_ETH |
| 30 | depends on USE_BOOTFILE |
| 31 | default y |
| 32 | help |
| 33 | Test loading images over TFTP using the NET image load method. |
| 34 | |
Sean Anderson | 60d76e3 | 2023-10-14 16:48:05 -0400 | [diff] [blame] | 35 | config SPL_UT_LOAD_SPI |
| 36 | bool "Test loading from SPI Flash" |
| 37 | depends on SANDBOX && SPL_OF_REAL |
| 38 | depends on SPL_SPI_LOAD |
| 39 | default y |
| 40 | help |
| 41 | Test the SPI flash image load metod. |
| 42 | |
Sean Anderson | c56468a6 | 2023-10-14 16:47:57 -0400 | [diff] [blame] | 43 | config SPL_UT_LOAD_OS |
| 44 | bool "Test loading from the host OS" |
| 45 | depends on SANDBOX && SPL_LOAD_FIT |
| 46 | default y |
| 47 | help |
| 48 | Smoke test to ensure that loading U-boot works in sandbox. |
| 49 | |
| 50 | endif |