]> git.ipfire.org Git - thirdparty/u-boot.git/commit
test: spl: Add functions to create filesystems
authorSean Anderson <seanga2@gmail.com>
Sat, 14 Oct 2023 20:48:00 +0000 (16:48 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 18 Oct 2023 00:50:52 +0000 (20:50 -0400)
commit59b36334914608ac636e79c56a02fbb3d6a25746
tree2aadb02310867f231e287313fa52a0693d20285c
parentb93cc1e73e1173774a40535e96f4049e3b281eda
test: spl: Add functions to create filesystems

Add some functions for creating fat/ext2 filesystems with a single file and
a test for them. Filesystems require block devices, and it is easiest to
just use MMC for this. To get an MMC, we must also pull in the test device
tree. SPL_TIMER is necessary for SPL_MMC, perhaps because it uses a timeout.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
configs/sandbox_noinst_defconfig
include/test/spl.h
test/image/Kconfig
test/image/Makefile
test/image/spl_load_fs.c [new file with mode: 0644]