platform_external_dtc/libfdt
David Gibson be6026838e libfdt: Add helper function to create a trivial, empty tree
The libfdt read/write functions are now usable enough that it's become a
moderately common pattern to use them to build and manipulate a device
tree from scratch.  For example, we do so ourself in our rw_tree1 testcase,
and qemu is starting to use this model when building device trees for some
targets such as e500.

However, the read/write functions require some sort of valid tree to begin
with, so this necessitates either having a trivial canned dtb to begin with
or, more commonly, creating an empty tree using the serial-write functions
first.

This patch adds a helper function which uses the serial-write functions to
create a trivial, empty but complete and valid tree in a supplied buffer,
ready for manipulation with the read/write functions.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2012-06-03 09:16:17 -05:00
..
fdt.c libfdt: Implement property iteration functions 2010-03-10 08:13:00 -06:00
fdt.h Fix whitespace in libfdt/fdt.h 2007-11-28 09:44:27 -06:00
fdt_empty_tree.c libfdt: Add helper function to create a trivial, empty tree 2012-06-03 09:16:17 -05:00
fdt_ro.c libfdt: Implement property iteration functions 2010-03-10 08:13:00 -06:00
fdt_rw.c libfdt: Add support for appending the values to a existing property 2011-12-05 10:17:58 -06:00
fdt_strerror.c libfdt: Increase namespace-pollution paranoia 2008-07-14 12:36:27 -05:00
fdt_sw.c Fix a possible overflow case detected by gcc 4.3.2 2009-02-23 13:33:00 -06:00
fdt_wip.c libfdt: Rework fdt_next_node() 2009-02-06 11:19:10 -06:00
libfdt.h libfdt: Add helper function to create a trivial, empty tree 2012-06-03 09:16:17 -05:00
libfdt_env.h Remove invalid macro starting with _ from libfdt_env.h 2012-04-10 11:08:22 -05:00
libfdt_internal.h libfdt: Implement property iteration functions 2010-03-10 08:13:00 -06:00
Makefile.libfdt libfdt: Add helper function to create a trivial, empty tree 2012-06-03 09:16:17 -05:00
TODO dtc: Update TODO files 2007-12-19 08:20:26 -06:00
version.lds libfdt: Add version.lds file 2009-01-02 08:56:42 -06:00