dtoc: Support reading a list of arguments
authorSimon Glass <sjg@chromium.org>
Tue, 8 Feb 2022 18:49:53 +0000 (11:49 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 22 Feb 2022 17:05:44 +0000 (10:05 -0700)
commit7e4b66aa8743aca134883d0ebc42535ce43ecf25
treefaaab66a3d2a9c78335b929e24dc8b39101974f8
parentdd857ee7614fea27de3eb6dbd87749a9640c69b1
dtoc: Support reading a list of arguments

It is helpful to support a string or stringlist containing a list of
space-separated arguments, for example:

   args = "-n fred", "-a", "123";

This resolves to the list:

   -n fred -a 123

which can be passed to a program as arguments.

Add a helper to do the required processing.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/dtoc/fdt_util.py
tools/dtoc/test/dtoc_test_simple.dts
tools/dtoc/test_fdt.py