[PATCH 08/16] startup: we can only mount root and devfs when compiled in
Sascha Hauer
s.hauer at pengutronix.de
Fri Apr 8 10:36:54 EDT 2011
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
common/startup.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/common/startup.c b/common/startup.c
index aa76cb7..b487c5b 100644
--- a/common/startup.c
+++ b/common/startup.c
@@ -103,6 +103,7 @@ static int register_default_env(void)
device_initcall(register_default_env);
#endif
+#if defined CONFIG_FS_RAMFS && defined CONFIG_FS_DEVFS
static int mount_root(void)
{
mount("none", "ramfs", "/");
@@ -111,6 +112,7 @@ static int mount_root(void)
return 0;
}
fs_initcall(mount_root);
+#endif
void start_barebox (void)
{
--
1.7.2.3
More information about the barebox
mailing list