summaryrefslogtreecommitdiff
path: root/tools/env/fw_env.h
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2010-05-24 12:08:16 +0200
committerWolfgang Denk <wd@denx.de>2010-06-29 22:43:27 +0200
commitbd7b26f879413aa5a662718c09dab65d3a24a201 (patch)
treec8f9939fac2b3c1da7aae7604bedc1d344d5191e /tools/env/fw_env.h
parent3746a5e65ceeccf7e766df6263d2994b9abcc60e (diff)
Tools: set multiple variable with fw_setenv utility
Add a sort of batch mode to fw_setenv, allowing to set multiple variables in one shot, without updating the flash after each set as now. It is added the possibility to pass a config file with a list of pairs <variable, value> to be set, separated by a TAB character. Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'tools/env/fw_env.h')
-rw-r--r--tools/env/fw_env.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/env/fw_env.h b/tools/env/fw_env.h
index c04da541fb..8130fa150c 100644
--- a/tools/env/fw_env.h
+++ b/tools/env/fw_env.h
@@ -50,5 +50,9 @@
extern int fw_printenv(int argc, char *argv[]);
extern char *fw_getenv (char *name);
extern int fw_setenv (int argc, char *argv[]);
+extern int fw_parse_script(char *fname);
+extern int fw_env_open(void);
+extern int fw_env_write(char *name, char *value);
+extern int fw_env_close(void);
extern unsigned long crc32 (unsigned long, const unsigned char *, unsigned);