diff options
author | Simon Glass <sjg@chromium.org> | 2017-04-01 09:31:41 -0600 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-04-02 13:38:46 +1000 |
commit | 580a9f6c288079e952eae6707c267644338f7c7b (patch) | |
tree | 321228483d231b74d52952476f5455f8b104690d /tests/trees.S | |
parent | ab15256d8d027fc379438a18a8bd85e7765557c6 (diff) | |
download | dtc-580a9f6c288079e952eae6707c267644338f7c7b.zip dtc-580a9f6c288079e952eae6707c267644338f7c7b.tar.gz dtc-580a9f6c288079e952eae6707c267644338f7c7b.tar.bz2 |
Add a libfdt function to write a property placeholder
The existing function to add a new property to a tree being built requires
that the entire contents of the new property be passed in. For some
applications it is more convenient to be able to add the property contents
later, perhaps by reading from a file. This avoids double-buffering of the
contents.
Add a new function to support this and adjust the existing fdt_property() to
use it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests/trees.S')
-rw-r--r-- | tests/trees.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/trees.S b/tests/trees.S index 3d24aa2..9854d1d 100644 --- a/tests/trees.S +++ b/tests/trees.S @@ -102,6 +102,7 @@ test_tree1_struct: BEGIN_NODE("subsubnode") PROP_STR(test_tree1, compatible, "subsubnode1\0subsubnode") + PROP_STR(test_tree1, placeholder, "this is a placeholder string\0string2") PROP_INT(test_tree1, prop_int, TEST_VALUE_1) END_NODE @@ -141,6 +142,7 @@ test_tree1_strings: STRING(test_tree1, linux_phandle, "linux,phandle") STRING(test_tree1, phandle, "phandle") STRING(test_tree1, reg, "reg") + STRING(test_tree1, placeholder, "placeholder") STRING(test_tree1, address_cells, "#address-cells") STRING(test_tree1, size_cells, "#size-cells") test_tree1_strings_end: |