summaryrefslogtreecommitdiffstats
path: root/fs/fs.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-12-26 09:53:35 +0000
committerTom Rini <trini@ti.com>2013-03-04 14:19:56 -0500
commit92ccc96bf3cd6c6a3a9a56e03d5ceb4874735d22 (patch)
tree7dda0f2132ce0b85cb574ca33ac85a9ac5727fd7 /fs/fs.c
parent62584db191013f13133be0f6702d0c935a7c85a6 (diff)
downloadtalos-obmc-uboot-92ccc96bf3cd6c6a3a9a56e03d5ceb4874735d22.tar.gz
talos-obmc-uboot-92ccc96bf3cd6c6a3a9a56e03d5ceb4874735d22.zip
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.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/fs.c b/fs/fs.c
index 95c882e202..6f5063c3af 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -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,
OpenPOWER on IntegriCloud