[PATCH v3 0/7] Provide classes for building disk images with FS partitions
Simon Glass
sjg at chromium.org
Fri Mar 6 20:08:06 CET 2026
Create a class around mk_fs() to handle the common tasks of image
creation, such as managing scratch directories and cleaning up. Add a
helper class for creating disk images with partition tables.
Start with a few small cleanups to mk_fs(), then convert a test over
to use the new classes.
Changes in v3:
- Rewrite the commit message as suggested by Tom Rini
- Make the class a thin wrapper that delegates to mk_fs()
- Remove cur_dir parameter from DiskHelper as suggested by Tom Rini
- Remove editorialising from commit message
Changes in v2:
- Split the quiet flag into a separate commit
- Fix fs_img to accept only a leaf name, always under persistent_data_dir
- Add new patch to split the quiet flag out of the previous patch
- Split the pylint fix into a separate commit
- Explain why setup_image() is left to later
Simon Glass (7):
test: fs_helper: Allow passing the image filename
test: fs_helper: Add a quiet flag to mk_fs()
test: Update comment for fs_helper.setup_image()
test: fs_helper: Drop the size_gran argument
test: Convert fs_helper to use a class
test: Add a helper class to create disk images
test: Convert test_efi_bootmgr to use FsHelper
test/py/tests/fs_helper.py | 205 ++++++++++++++++++++++++++++--
test/py/tests/test_efi_bootmgr.py | 38 ++----
2 files changed, 211 insertions(+), 32 deletions(-)
--
2.43.0
base-commit: c0ca147ac6228949a6d6497531c9f2f4a0dc6c67
branch: testfs3
More information about the U-Boot
mailing list