diff options
author | Simon Glass <sjg@chromium.org> | 2019-07-08 13:18:40 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-07-23 20:27:57 -0700 |
commit | aa88b50d8267d0ff53cd6a1300d78004fa40d2c8 (patch) | |
tree | c99ae7802850d3044589435f62244242165664e3 /tools/binman/README.entries | |
parent | cf54904a99ae06e5b38fb670b09dfa60fe1855d5 (diff) | |
download | u-boot-aa88b50d8267d0ff53cd6a1300d78004fa40d2c8.zip u-boot-aa88b50d8267d0ff53cd6a1300d78004fa40d2c8.tar.gz u-boot-aa88b50d8267d0ff53cd6a1300d78004fa40d2c8.tar.bz2 |
binman: Allow text directly in the node
At present text entries use an indirect method to specify the text to use,
with a label pointing to the text itself.
Allow the text to be directly written into the node. This is more
convenient in cases where the text is constant.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/README.entries')
-rw-r--r-- | tools/binman/README.entries | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/binman/README.entries b/tools/binman/README.entries index 702fc9f..9cbdbba 100644 --- a/tools/binman/README.entries +++ b/tools/binman/README.entries @@ -312,6 +312,8 @@ Properties / Entry arguments: that contains the string to place in the entry <xxx> (actual name is the value of text-label): contains the string to place in the entry. + <text>: The text to place in the entry (overrides the above mechanism). + This is useful when the text is constant. Example node: @@ -334,6 +336,13 @@ It is also possible to put the string directly in the node: message = "a message directly in the node" }; +or just: + + text { + size = <8>; + text = "some text directly in the node" + }; + The text is not itself nul-terminated. This can be achieved, if required, by setting the size of the entry to something larger than the text. |