commit | de7b5a8a1ac0b711db683711b3ccd800e00c4c46 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu Jun 01 10:22:38 2023 -0600 |
committer | Tom Rini <trini@konsulko.com> | Fri Jul 14 12:54:51 2023 -0400 |
tree | f5f12491c203eb5d1156936434293e3ecc9f9ef0 | |
parent | 5904d953a1183e191e9ec4ab15c31c6522f625ad [diff] |
fs: Create functions to load and allocate a file This functionality current sits in bootstd, but it is more generally useful. Add a function to load a file into memory, allocating it as needed. Adjust bootstd to use this version. Note: Tests are added in the subsequent patch which converts the 'cat' command to use this function. Signed-off-by: Simon Glass <sjg@chromium.org>