summaryrefslogtreecommitdiffstats
path: root/common/startup.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-04-07 17:47:20 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-04-11 12:36:08 +0200
commit4b935522de7b9a66d45687337617513aa8c2be88 (patch)
tree6fcdb3e5cebe4b613dbbe057d382fe7781881c94 /common/startup.c
parent5b27fcbde4ac3b55cc9c305bc9592687570d4ca0 (diff)
downloadbarebox-4b935522de7b9a66d45687337617513aa8c2be88.tar.gz
barebox-4b935522de7b9a66d45687337617513aa8c2be88.tar.xz
startup: we can only mount root and devfs when compiled in
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/startup.c')
-rw-r--r--common/startup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/startup.c b/common/startup.c
index aa76cb75af..b487c5b027 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)
{