diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2018-03-01 16:06:32 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-03-05 18:05:36 +0300 |
commit | cd655514aa044c77fe3b895a51677ba47b26ba89 (patch) | |
tree | e4f47e3e6a3a8305678e4f57cfa1c3877037466a /tools/env/fw_env.c | |
parent | b3f40703408e57cad492802b777448a068b1f671 (diff) | |
download | u-boot-cd655514aa044c77fe3b895a51677ba47b26ba89.tar.xz |
tools/env: allow equal sign as key value separation
Treat the first equal sign as a key/value separation too. This makes
the script files compatible with mkenvimage input file format. It
won't support variables with equal signs anymore, but this seems not
really like a loss.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'tools/env/fw_env.c')
-rw-r--r-- | tools/env/fw_env.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index 6b71acb28f..0e3e34321f 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c @@ -357,7 +357,7 @@ static int get_config (char *); static char *skip_chars(char *s) { for (; *s != '\0'; s++) { - if (isblank(*s)) + if (isblank(*s) || *s == '=') return s; } return NULL; |