diff options
author | Wolfgang Denk <wd@denx.de> | 2011-11-06 22:49:44 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-11-08 13:20:42 +0100 |
commit | 37f2fe7472a34531e7d585eb7e0730b4f8e1f213 (patch) | |
tree | df4a0306161ef740045c011f6847ed50fb47a120 /common/env_sf.c | |
parent | 5721385b187b3154c7768e6c182501022f4e2e45 (diff) | |
download | u-boot-midas-37f2fe7472a34531e7d585eb7e0730b4f8e1f213.tar.gz u-boot-midas-37f2fe7472a34531e7d585eb7e0730b4f8e1f213.tar.bz2 u-boot-midas-37f2fe7472a34531e7d585eb7e0730b4f8e1f213.zip |
env: allow to export only selected variables
New syntax:
env export [-t | -b | -c] [-s size] addr [var ...]
With this change it is possible to provide a list of variables names
that shall be exported. Whenno arguments are given, the whole
environment gets exported.
NOTE: The new handling of the "size" argument means a change to the
user API.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'common/env_sf.c')
-rw-r--r-- | common/env_sf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/env_sf.c b/common/env_sf.c index d3b36d0105..a1ff297ba7 100644 --- a/common/env_sf.c +++ b/common/env_sf.c @@ -91,7 +91,7 @@ int saveenv(void) } res = (char *)&env_new.data; - len = hexport_r(&env_htab, '\0', &res, ENV_SIZE); + len = hexport_r(&env_htab, '\0', &res, ENV_SIZE, 0, NULL); if (len < 0) { error("Cannot export environment: errno = %d\n", errno); return 1; @@ -293,7 +293,7 @@ int saveenv(void) } res = (char *)&env_new.data; - len = hexport_r(&env_htab, '\0', &res, ENV_SIZE); + len = hexport_r(&env_htab, '\0', &res, ENV_SIZE, 0, NULL); if (len < 0) { error("Cannot export environment: errno = %d\n", errno); goto done; |