diff options
author | Simon Glass <sjg@chromium.org> | 2012-12-26 09:53:35 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-03-04 14:19:56 -0500 |
commit | 92ccc96bf3cd6c6a3a9a56e03d5ceb4874735d22 (patch) | |
tree | 7dda0f2132ce0b85cb574ca33ac85a9ac5727fd7 /fs/fs.c | |
parent | 62584db191013f13133be0f6702d0c935a7c85a6 (diff) | |
download | u-boot-imx-92ccc96bf3cd6c6a3a9a56e03d5ceb4874735d22.zip u-boot-imx-92ccc96bf3cd6c6a3a9a56e03d5ceb4874735d22.tar.gz u-boot-imx-92ccc96bf3cd6c6a3a9a56e03d5ceb4874735d22.tar.bz2 |
sandbox: Add host filesystem
This allows reading of files from the host filesystem in sandbox.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'fs/fs.c')
-rw-r--r-- | fs/fs.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -20,6 +20,7 @@ #include <ext4fs.h> #include <fat.h> #include <fs.h> +#include <sandboxfs.h> #include <asm/io.h> DECLARE_GLOBAL_DATA_PTR; @@ -78,6 +79,15 @@ static struct fstype_info fstypes[] = { .read = ext4_read_file, }, #endif +#ifdef CONFIG_SANDBOX + { + .fstype = FS_TYPE_SANDBOX, + .probe = sandbox_fs_set_blk_dev, + .close = sandbox_fs_close, + .ls = sandbox_fs_ls, + .read = fs_read_sandbox, + }, +#endif { .fstype = FS_TYPE_ANY, .probe = fs_probe_unsupported, |