From: Stefan Agner Date: Thu, 1 Mar 2018 13:06:32 +0000 (+0100) Subject: tools/env: allow equal sign as key value separation X-Git-Tag: v2018.03-rc4~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cd655514aa044c77fe3b895a51677ba47b26ba89;p=u-boot 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 --- 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;