mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-30 22:08:52 +09:00
![Simon Glass](/assets/img/avatar_default.png)
It is useful to able to write an identifying string to the image within an entry. Add a 'text' entry type to handle this. The actual text is typically passed to binman on the command line. The text is not itself nul-terminated but this can be achieved if required by setting the size of the entry to something larger than the text. Signed-off-by: Simon Glass <sjg@chromium.org>
29 lines
427 B
Plaintext
29 lines
427 B
Plaintext
// SPDX-License-Identifier: GPL-2.0+
|
|
/dts-v1/;
|
|
|
|
/ {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
binman {
|
|
text {
|
|
size = <8>;
|
|
text-label = "test-id";
|
|
};
|
|
text2 {
|
|
type = "text";
|
|
text-label = "test-id2";
|
|
};
|
|
text3 {
|
|
type = "text";
|
|
text-label = "test-id3";
|
|
};
|
|
/* This one does not use command-line args */
|
|
text4 {
|
|
type = "text";
|
|
text-label = "test-id4";
|
|
test-id4 = "some text";
|
|
};
|
|
};
|
|
};
|