]> git.dujemihanovic.xyz Git - u-boot.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)
commit5c044ff52362f379b5a9296e724df9546ae98b34
treedb6ab3b85941ef4044f74d8b679cfc9ba88e0968
parent523cde0637f264380eeaaf0cfa82fdbbd99a261f
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