summaryrefslogtreecommitdiffstats
path: root/common/environment.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-03-31 12:43:59 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-04-12 09:54:56 +0200
commit9640c2b4a5f911a7ddd897df948ef2ffcb6723f5 (patch)
tree56f25028f3c4fc47b3d7e8340feafbce024e8e1a /common/environment.c
parentc75ab7876339bbe9c3987bc426cf60ff9b2d03f0 (diff)
downloadbarebox-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/environment.c')
-rw-r--r--common/environment.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/environment.c b/common/environment.c
index e5f24ec201..0fdbd03e00 100644
--- a/common/environment.c
+++ b/common/environment.c
@@ -44,6 +44,8 @@
#define EXPORT_SYMBOL(x)
#endif
+char *default_environment_path = "/dev/env0";
+
int file_size_action(const char *filename, struct stat *statbuf,
void *userdata, int depth)
{