From 580a9f6c288079e952eae6707c267644338f7c7b Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 1 Apr 2017 09:31:41 -0600 Subject: 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 Signed-off-by: David Gibson --- tests/trees.S | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/trees.S') 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: -- cgit v1.1