startup: we can only mount root and devfs when compiled in
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
5b27fcbde4
commit
4b935522de
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue