All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] tools/env: allow equal sign as key value separation
@ 2018-03-01 13:06 Stefan Agner
  2018-03-05 18:54 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Agner @ 2018-03-01 13:06 UTC (permalink / raw)
  To: u-boot

From: Stefan Agner <stefan.agner@toradex.com>

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>
---
 tools/env/fw_env.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index ca5507d4d7..ad9524b8ec 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;
-- 
2.16.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] tools/env: allow equal sign as key value separation
  2018-03-01 13:06 [U-Boot] [PATCH] tools/env: allow equal sign as key value separation Stefan Agner
@ 2018-03-05 18:54 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2018-03-05 18:54 UTC (permalink / raw)
  To: u-boot

On Thu, Mar 01, 2018 at 02:06:32PM +0100, Stefan Agner wrote:

> From: Stefan Agner <stefan.agner@toradex.com>
> 
> 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>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180305/6b3f6a06/attachment.sig>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-05 18:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-01 13:06 [U-Boot] [PATCH] tools/env: allow equal sign as key value separation Stefan Agner
2018-03-05 18:54 ` [U-Boot] " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.