summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSean Anderson <[email protected]>2023-11-08 11:48:50 -0500
committerTom Rini <[email protected]>2023-11-16 13:49:14 -0500
commit5d3401a448353767c5e67246a79271c9ee6f3f73 (patch)
tree2c4cb2d976884f1ccbe439a48d135ddf6d28582c /test
parent682184e9b9a6f67b108209651ad2ce90aae9ec9d (diff)
spl: Convert mmc to spl_load
This converts the mmc loader to spl_load. Legacy images are handled by spl_load (via spl_parse_image_header), so mmc_load_legacy can be omitted. To accurately determine whether mmc_load_image_raw_sector is used (which might not be the case if SYS_MMCSD_FS_BOOT is enabled), we introduce a helper config SYS_MMCSD_RAW_MODE. This ensures we can inline spl_load correctly when a board only boots from filesystems. We still need to check for SPL_MMC, since some boards enable configure raw mode even without MMC support. Signed-off-by: Sean Anderson <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'test')
-rw-r--r--test/image/spl_load_fs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/image/spl_load_fs.c b/test/image/spl_load_fs.c
index 333df2dfb53..67c19da95e7 100644
--- a/test/image/spl_load_fs.c
+++ b/test/image/spl_load_fs.c
@@ -428,9 +428,6 @@ static int spl_test_mmc(struct unit_test_state *uts, const char *test_name,
if (spl_test_mmc_fs(uts, test_name, type, create_fat, false))
return CMD_RET_FAILURE;
- if (type == LEGACY_LZMA)
- return 0;
-
return do_spl_test_load(uts, test_name, type,
SPL_LOAD_IMAGE_GET(0, BOOT_DEVICE_MMC1,
spl_mmc_load_image),