]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs: Add semihosting filesystem
authorSean Anderson <sean.anderson@seco.com>
Tue, 22 Mar 2022 20:59:20 +0000 (16:59 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 1 Apr 2022 19:03:13 +0000 (15:03 -0400)
commitf676b45151c33986501e5f8f9bcc64f4a9511089
tree7a893e7f077239f473c820069f054d25ec1d6d37
parent8e1c9fe243a31a0b0a40a80cc20fc3c06246d675
fs: Add semihosting filesystem

This adds a filesystem which is backed by the host's filesystem. It is
modeled off of sandboxfs, which has very similar aims. Semihosting
doesn't support listing directories (except with SYS_SYSTEM), so neither
do we. it's possible to optimize a bit for the common case of reading a
whole file by omitting a call to smh_seek, but this is left as a future
optimization.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
disk/part.c
fs/Makefile
fs/fs.c
fs/semihostingfs.c [new file with mode: 0644]
include/fs.h
include/semihostingfs.h [new file with mode: 0644]