On Sat, Feb 28, 2026 at 11:22:45AM -0700, Simon Glass wrote: > From: Simon Glass <[email protected]> > > It is somewhat inconvenient that callers to mk_fs() must create their > own temporary directory. Convert it to a class so this can be handled > automatically, using a context manager.
Instead how about: 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. And I didn't try out a 'git show -w' to see if that makes it clear the underlying logic wasn't changed in mk_fs. -- Tom
signature.asc
Description: PGP signature

