1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-12 21:46:44 +02:00
Files
u-boot-megous/lib
Gerald Van Baren c71b64f361 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>

From git://git.jdl.com/software/dtc.git patch hash be6026838 with
adaptations to include/libfdt.h and lib/libfdt/Makefile for the U-Boot
environment.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
2012-10-15 22:24:36 -04:00
..
2012-03-28 09:54:08 +02:00
2012-05-25 09:15:10 +02:00
2012-05-15 08:31:37 +02:00
2012-03-29 08:12:47 +02:00
2012-09-29 07:26:08 -07:00
2012-10-01 10:02:14 -07:00
2012-10-01 10:02:14 -07:00
2012-04-29 14:14:08 +02:00
2012-07-07 14:07:32 +02:00
2012-01-26 16:09:02 -06:00
2012-04-10 23:35:32 +02:00