summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSean Anderson <[email protected]>2023-10-14 16:48:00 -0400
committerTom Rini <[email protected]>2023-10-17 20:50:52 -0400
commit59b36334914608ac636e79c56a02fbb3d6a25746 (patch)
tree2aadb02310867f231e287313fa52a0693d20285c /include
parentb93cc1e73e1173774a40535e96f4049e3b281eda (diff)
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 <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/test/spl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/test/spl.h b/include/test/spl.h
index 4c6b789e478..7dba3f03d07 100644
--- a/include/test/spl.h
+++ b/include/test/spl.h
@@ -114,4 +114,7 @@ SPL_TEST(func##_##type, flags)
/* More than a couple blocks, and will not be aligned to anything */
#define SPL_TEST_DATA_SIZE 4099
+/* Flags necessary for accessing DM devices */
+#define DM_FLAGS (UT_TESTF_DM | UT_TESTF_SCAN_FDT)
+
#endif /* TEST_SPL_H */