]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs: Create functions to load and allocate a file
authorSimon Glass <sjg@chromium.org>
Thu, 1 Jun 2023 16:22:38 +0000 (10:22 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 14 Jul 2023 16:54:51 +0000 (12:54 -0400)
commitde7b5a8a1ac0b711db683711b3ccd800e00c4c46
treef5f12491c203eb5d1156936434293e3ecc9f9ef0
parent5904d953a1183e191e9ec4ab15c31c6522f625ad
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>
boot/bootmeth-uclass.c
fs/fs.c
include/fs.h