[PATCH 09/24] dtoc: Support reading a list of arguments

Simon Glass sjg at chromium.org
Wed Feb 23 03:35:02 CET 2022


On 08/02/2022 21:49, Simon Glass wrote:
> 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

Would be clearer as ['-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 at chromium.org>
> ---
>
>  tools/dtoc/fdt_util.py               | 12 ++++++++++++
>  tools/dtoc/test/dtoc_test_simple.dts |  1 +
>  tools/dtoc/test_fdt.py               | 15 +++++++++++++++
>  3 files changed, 28 insertions(+)
>
Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list