Move MakeFatImage out of esp.cpp#2269
Conversation
3405691582
left a comment
There was a problem hiding this comment.
I have some thoughts but since the change is primarily code motion we should revisit them later.
|
No rush on this change, what are your thoughts? |
Bug: b/492644615
|
Specifically: one (easier), we should label the flags to NewfsMsdos and MkfsFat so they'll be shared and read together, and two (harder), we should just not shell out to these commands and see if there's a library that does this for us. Again: neither necessary for this change if you don't want to, since this is just code motion. |
|
From a quick look Elm FatFs seems like a promising library and has already been imported internally as well. I think we can also use it to replace the invocations to The relevant part for integration is that it expects users to implement a few functions declared in the FatFs headers, e.g. My preference would be an integration point around function pointers and opaque context objects rather than this I'll file an issue to track this conversion: b/493268636 |
Bug: b/492644615