summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2018-03-01 13:50:09 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2018-03-21 09:42:54 +0100
commit0940b3480a77e73bffe7fcc74221872eab5d6dbe (patch)
tree3d7848ddf629bb2689a51a254dd599b33fa17129
parent0a9da668912265e27df94ca302c999a1915930c3 (diff)
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> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-rw-r--r--tools/env/fw_env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index 862a0b1a02..b3d5c9f48c 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -131,7 +131,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;