commit | e6c49fc7ac2424cb7586371319016f07a182f7d6 | [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 | b2c4034f2978f8a070f4f08946c9a78c6f619357 [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>