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
..
2011-11-09 16:35:27 +08:00
2012-09-21 21:11:25 +02:00
2011-10-09 22:20:44 +02:00
2012-10-12 12:16:29 -07:00
2011-09-04 18:03:02 -05:00
2011-07-28 21:27:36 +02:00
2012-09-21 14:53:13 -07:00
2012-08-13 14:34:35 +02:00
2011-11-09 16:35:27 +08:00
2012-09-29 07:26:08 -07:00
2012-09-01 16:21:53 +02:00
2012-08-09 23:42:20 +02:00
2011-05-12 21:07:06 +02:00
2011-11-15 23:58:26 +01:00
2011-08-01 15:19:40 +02:00
2012-07-06 17:30:32 -05:00
2012-05-15 08:31:37 +02:00
2012-05-15 08:31:30 +02:00
2011-08-04 23:34:02 +02:00
2011-08-01 15:19:40 +02:00
2011-11-15 23:58:27 +01:00
2010-10-26 21:05:30 +02:00
2012-03-18 20:10:02 +01:00
2012-06-05 11:19:02 +02:00
2012-03-13 14:29:14 +01:00
2012-09-01 14:26:02 +02:00
2012-10-01 10:02:14 -07:00
2012-03-27 22:05:28 +02:00
2012-09-25 14:43:19 -07:00
2012-09-29 07:26:08 -07:00
2011-07-28 21:27:36 +02:00
2011-11-22 08:39:24 +01:00
2012-08-09 23:42:20 +02:00
2011-04-13 15:56:43 -04:00
2011-07-26 14:10:14 +02:00
2012-06-20 20:26:16 +02:00
2011-11-11 07:48:59 -06:00
2012-10-01 10:02:14 -07:00
2012-09-01 14:58:10 +02:00
2011-11-27 19:46:27 +01:00
2012-08-23 12:16:55 -05:00
2012-09-01 16:21:50 +02:00
2012-05-15 08:31:34 +02:00
2011-10-22 01:22:21 +02:00
2012-09-18 12:01:52 -07:00
2010-09-19 19:29:47 +02:00
2011-12-06 20:52:35 +01:00
2012-10-03 18:21:33 -07:00
2012-09-25 14:46:55 -07:00
2012-09-26 11:11:32 -07:00
2011-08-04 23:34:02 +02:00
2012-02-15 16:50:14 -06:00
2012-09-21 16:22:18 -07:00
2012-09-03 11:24:27 +02:00
2012-08-23 10:24:18 -05:00
2011-08-01 15:19:40 +02:00
2011-08-04 22:55:33 +02:00
2012-09-01 14:58:30 +02:00
2011-05-19 22:22:44 +02:00
2012-09-17 19:51:45 -05:00
2012-05-15 08:31:34 +02:00
2012-09-01 16:21:50 +02:00
2012-04-30 15:01:29 +02:00
2011-10-17 22:25:34 +02:00
2011-01-19 22:58:23 -06:00
2012-09-17 09:39:50 +02:00
2012-10-08 11:12:08 -07:00
2012-10-15 19:20:32 -04:00
2012-05-15 08:31:39 +02:00
2010-12-09 10:24:09 +01:00
2012-09-24 10:48:19 +02:00
2012-05-15 08:31:39 +02:00
2012-03-04 21:56:15 +01:00
2012-09-01 14:58:24 +02:00
2010-10-21 22:25:04 +02:00
2012-10-15 22:24:36 -04:00
2012-05-25 09:15:10 +02:00
2012-06-19 22:35:10 +02:00
2012-09-26 11:08:32 -07:00
2012-05-15 08:31:29 +02:00
2012-05-15 08:31:28 +02:00
2011-02-02 00:54:43 +01:00
2012-02-12 10:11:27 +01:00
2011-12-06 23:59:39 +01:00
2012-02-12 10:11:24 +01:00
2012-02-27 21:19:25 +01:00
2012-03-18 20:11:22 +01:00
2012-09-07 13:54:31 -07:00
2011-07-28 21:27:36 +02:00
2012-09-01 14:19:02 +02:00
2011-11-03 18:27:55 -05:00
2011-09-29 19:01:04 -05:00
2011-10-09 17:57:54 -05:00
2011-07-28 21:27:36 +02:00
2012-09-27 12:21:56 -05:00
2010-12-16 23:02:43 +01:00
2012-09-17 17:33:43 -05:00
2012-09-24 13:55:44 -05:00
2012-09-26 12:36:32 -05:00
2012-09-01 14:58:10 +02:00
2011-11-15 22:24:50 +01:00
2012-03-12 11:06:48 -04:00
2012-09-25 15:05:44 -07:00
2011-11-18 14:04:25 +01:00
2012-09-02 14:18:52 +02:00
2012-03-30 22:46:00 +02:00
2012-03-26 23:09:23 +02:00
2012-02-27 21:19:25 +01:00
2012-05-15 08:31:34 +02:00
2011-10-05 22:03:11 +02:00
2011-03-27 19:19:54 +02:00
2012-09-25 14:49:18 -07:00
2012-05-20 08:32:32 +02:00
2012-09-05 17:33:26 -05:00
2012-09-18 12:01:52 -07:00
2011-08-04 23:34:02 +02:00
2012-10-04 16:46:18 +02:00
2012-08-08 10:24:41 +09:00
2012-10-03 02:04:24 +02:00
2011-08-04 23:34:02 +02:00
2011-08-01 15:19:40 +02:00
2012-01-05 16:18:30 +01:00
2011-12-24 10:23:30 +01:00
2011-04-29 07:34:09 -05:00
2012-10-01 10:02:14 -07:00
2011-10-01 21:57:13 +02:00
2011-06-22 20:00:51 +02:00
2012-05-15 08:31:40 +02:00
2011-10-17 23:57:00 +02:00
2011-12-07 08:45:51 +01:00
2012-05-15 08:31:37 +02:00
2011-04-29 07:32:48 -05:00
2011-12-09 17:28:28 +01:00
2011-09-30 22:00:55 +02:00
2012-05-15 08:31:25 +02:00
2011-07-27 23:45:37 +02:00
2012-09-26 12:36:29 -05:00
2012-07-18 14:43:29 +02:00
2012-03-28 16:31:08 +02:00
2012-03-28 16:31:08 +02:00
2011-10-17 23:57:00 +02:00
2011-11-15 23:58:26 +01:00
2011-11-15 23:58:26 +01:00
2012-05-25 09:15:09 +02:00
2011-08-01 15:19:40 +02:00
2011-12-17 23:34:01 +01:00
2011-08-01 15:19:40 +02:00
2012-09-25 14:49:17 -07:00