bootconfig: Add append value operator support
authorMasami Hiramatsu <mhiramat@kernel.org>
Fri, 21 Feb 2020 08:13:52 +0000 (17:13 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 21 Feb 2020 14:59:39 +0000 (09:59 -0500)
commit5f811c57c99205e048926293bb812c750a6ea562
treec5d42ee18f3be934f401afb43894bc8203b9623a
parent4e4694d8729f7cd6381f6691e8f83e378fce3160
bootconfig: Add append value operator support

Add append value operator "+=" support to bootconfig syntax.
With this operator, user can add new value to the key as
an entry of array instead of overwriting.
For example,

  foo = bar
  ...
  foo += baz

Then the key "foo" has "bar" and "baz" values as an array.

Link: http://lkml.kernel.org/r/158227283195.12842.8310503105963275584.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Documentation/admin-guide/bootconfig.rst
lib/bootconfig.c
tools/bootconfig/test-bootconfig.sh