]> git.baikalelectronics.ru Git - uboot.git/commit
binman: Support a list of strings with the mkimage etype
authorSimon Glass <sjg@chromium.org>
Tue, 8 Feb 2022 18:49:58 +0000 (11:49 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 22 Feb 2022 17:05:44 +0000 (10:05 -0700)
commit1dad60048893073bcf45e692f5e2f032579d4e44
treedb6ab3b85941ef4044f74d8b679cfc9ba88e0968
parent1fd4068293aecbdea5f752223a73dab23c283f40
binman: Support a list of strings with the mkimage etype

At present the 'args' property of the mkimage entry type is a string. This
makes it difficult to include CONFIG options in that property. In
particular, this does not work:

   args = "-n CONFIG_SYS_SOC -E"

since the preprocessor does not operate within strings, nor does this:

   args = "-n" CONFIG_SYS_SOC" "-E"

since the device tree compiler does not understand string concatenation.

With this new feature, we can do:

   args = "-n", CONFIG_SYS_SOC, "-E";

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/elf_test.py
tools/binman/entries.rst
tools/binman/etype/mkimage.py