diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-03-31 12:43:59 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-04-12 09:54:56 +0200 |
commit | 9640c2b4a5f911a7ddd897df948ef2ffcb6723f5 (patch) | |
tree | 56f25028f3c4fc47b3d7e8340feafbce024e8e1a /common/startup.c | |
parent | c75ab7876339bbe9c3987bc426cf60ff9b2d03f0 (diff) | |
download | barebox-9640c2b4a5f911a7ddd897df948ef2ffcb6723f5.tar.gz barebox-9640c2b4a5f911a7ddd897df948ef2ffcb6723f5.tar.xz |
environment: make default env path configurable
Normally the default path to save the environment is /dev/env0. However,
we can't map a file in a fat filesystem to /dev/env0. So if we want to
store the environment in a file in fat we have to make it configurable.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/startup.c')
-rw-r--r-- | common/startup.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common/startup.c b/common/startup.c index 38087093b0..00bc9a0038 100644 --- a/common/startup.c +++ b/common/startup.c @@ -144,10 +144,11 @@ void start_barebox (void) display_meminfo(); #ifdef CONFIG_ENV_HANDLING - if (envfs_load("/dev/env0", "/env")) { + if (envfs_load(default_environment_path, "/env")) { #ifdef CONFIG_DEFAULT_ENVIRONMENT - printf("no valid environment found on /dev/env0. " - "Using default environment\n"); + printf("no valid environment found on %s. " + "Using default environment\n", + default_environment_path); envfs_load("/dev/defaultenv", "/env"); #endif } |