diff options
author | Simon Glass <sjg@chromium.org> | 2011-06-30 18:56:53 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:58:41 -0700 |
commit | 2547049a5ab685e3f67dc81e58365cc55205fe1a (patch) | |
tree | 4e2f5fe2774033d7a81975e0ea9d45151a2e44ed /common/env_common.c | |
parent | 712fefa947cc9f2c96ef37fdbd360805ab11a6cc (diff) |
Add CONFIG_DELAY_ENVIRONMENT to delay environment loading
This option delays loading of the environment until later, so that only the
default environment will be available to U-Boot.
BUG=chromium-os:17055
TEST=build U-Boot with option enabled, see that environment is not available
Change-Id: I99a25b468fb5d14310b00eb3fd4c3e6a0c5cbe2b
Reviewed-on: http://gerrit.chromium.org/gerrit/3534
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/env_common.c')
-rw-r--r-- | common/env_common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/env_common.c b/common/env_common.c index c3e6388ac0..745cd51b38 100644 --- a/common/env_common.c +++ b/common/env_common.c @@ -246,6 +246,11 @@ void env_relocate (void) } } +void env_set_default(void) +{ + set_default_env(NULL); +} + #ifdef CONFIG_AUTO_COMPLETE int env_complete(char *var, int maxv, char *cmdv[], int bufsz, char *buf) { |