blob: 45b6e8c52e6e5f9d69c74a69503d6e9cca6c4db7 [file] [log] [blame]
Sean Andersonc56468a62023-10-14 16:47:57 -04001# SPDX-License-Identifier: GPL-2.0+
2# Copyright (C) 2023 Sean Anderson <seanga2@gmail.com>
3
4config 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
11if SPL_UT_LOAD
12
Sean Anderson59b36332023-10-14 16:48:00 -040013config SPL_UT_LOAD_FS
14 bool "Unit tests for filesystems"
15 depends on SANDBOX && SPL_OF_REAL
16 depends on FS_LOADER
Sean Anderson6c5d0d92023-10-14 16:48:01 -040017 depends on SPL_BLK_FS
Sean Anderson59b36332023-10-14 16:48:00 -040018 depends on SPL_FS_FAT
19 depends on SPL_FS_EXT4
20 depends on SPL_MMC_WRITE
Sean Anderson6ba8eca2023-10-14 16:48:02 -040021 depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
Sean Anderson59b36332023-10-14 16:48:00 -040022 default y
23 help
Sean Anderson6c5d0d92023-10-14 16:48:01 -040024 Test filesystems and the various load methods which use them.
Sean Anderson59b36332023-10-14 16:48:00 -040025
Sean Anderson8502b5b2023-11-04 16:37:53 -040026config SPL_UT_LOAD_NAND
27 bool "Test loading from NAND flash"
28 depends on SANDBOX && SPL_OF_REAL
29 depends on SPL_NAND_SUPPORT
30 depends on SPL_MTD
31 default y
32 help
33 Test the NAND flash load method.
34
Sean Anderson53d8bf82023-10-14 16:48:03 -040035config SPL_UT_LOAD_NET
36 bool "Test loading over TFTP"
37 depends on SANDBOX && SPL_OF_REAL
38 depends on SPL_ETH
39 depends on USE_BOOTFILE
40 default y
41 help
42 Test loading images over TFTP using the NET image load method.
43
Sean Anderson60d76e32023-10-14 16:48:05 -040044config SPL_UT_LOAD_SPI
45 bool "Test loading from SPI Flash"
46 depends on SANDBOX && SPL_OF_REAL
47 depends on SPL_SPI_LOAD
48 default y
49 help
50 Test the SPI flash image load metod.
51
Sean Andersonc56468a62023-10-14 16:47:57 -040052config SPL_UT_LOAD_OS
53 bool "Test loading from the host OS"
54 depends on SANDBOX && SPL_LOAD_FIT
Sean Anderson5271e352023-11-08 11:48:43 -050055 select SPL_LOAD_BLOCK
Sean Andersonc56468a62023-10-14 16:47:57 -040056 default y
57 help
58 Smoke test to ensure that loading U-boot works in sandbox.
59
60endif