[PATCH v2 6/7] test: Add a helper class to create disk images

Tom Rini trini at konsulko.com
Mon Mar 2 17:04:17 CET 2026


On Sat, Feb 28, 2026 at 11:22:46AM -0700, Simon Glass wrote:
> From: Simon Glass <simon.glass at canonical.com>
> 
> Provide a way to create disk images which consist of multiple filesystem
> images.
> 
> Provide an option to use the current directory for images, instead of
> persistent-data directory. This makes it easy for C tests to locate the
> image.

This is something we don't want, however. We need to not be adding more
files to the source directory as part of tests. This is a general bad
practice.

And in the likely event that you're going to note that python is slow,
please try your suggestion of 2019[1] and see about making U-Boot be a
python library, and if that doesn't work, look for other ways to speed
up python? Given all of the real time machine learning demos that are
built upon Python, it seems like piping data around fast should be
something that can be solved.

> The setup_image() function is used from a lot of places and that code
> itself needs some work, so this is left for a future series.

You're back to editoralizing in commit messages, and since you do
provide a helper for mk_fs you also simply could for setup_image.

[1]: https://lists.denx.de/pipermail/u-boot/2019-October/388732.html

-- 
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/20260302/39d32fef/attachment.sig>


More information about the U-Boot mailing list