[PATCH v4 5/5] test: Convert fs_helper to use a class
Tom Rini
trini at konsulko.com
Mon Mar 9 16:26:15 CET 2026
On Mon, Mar 09, 2026 at 09:13:04AM -0600, Simon Glass wrote:
> From: Simon Glass <simon.glass at canonical.com>
>
> Create a class around mk_fs() (and later setup_image()) to handle the
> common tasks of image creation. Many callers of fs_helper.mk_fs()
> create their own scratch directories while users of
> fs_helper.setup_image() rely on one being returned. Unify this by
> adding 'srcdir' as a field while converting to a class.
>
> The class delegates to the existing mk_fs() function for the actual
> filesystem creation, adding lifecycle management for scratch
> directories and the image file.
>
> Signed-off-by: Simon Glass <simon.glass at canonical.com>
Reviewed-by: Tom Rini <trini at konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20260309/2c49aed9/attachment.sig>
More information about the U-Boot
mailing list