]> git.baikalelectronics.ru Git - uboot.git/commit
sandbox: Add a function to read a host file
authorSimon Glass <sjg@chromium.org>
Tue, 6 Nov 2018 22:21:25 +0000 (15:21 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Nov 2018 02:14:22 +0000 (19:14 -0700)
commit026df094dfb82b49ed84bd83c099abc3894d212e
tree7e964e22c7aeda92a9a6e72ce3df124e971033a8
parent082ccdccee0f9ae2e844ee6818a81e0843ef32a8
sandbox: Add a function to read a host file

Add a way to read a file from the host filesystem. This can be useful for
reading test data, for example. Also fix up the writing function which was
not the right version, and drop the debugging lines.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/os.c
include/os.h