From 46c88dfcca9aedda24364e082374dba1f6182a53 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Wed, 14 Mar 2007 11:02:40 +1100 Subject: Add support for flat device tree format version 17 libfdt defined a new version of the flattened device tree format, version 17. It is backwards compatible with version 16, just adding an extra header field giving the size of the blob's structure blob. This patch adds support to dtc allowing it to read and write version 17 blobs. It also makes version 17 the default output version for blobs. At the same time we change the code to consistently using decimal numbers for versions. Previously we sometimes used 16 and sometimes 0x10 to refer to version 16. Signed-off-by: David Gibson --- dtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dtc.c') diff --git a/dtc.c b/dtc.c index fe4637c..f15d90f 100644 --- a/dtc.c +++ b/dtc.c @@ -113,7 +113,7 @@ int main(int argc, char *argv[]) int opt; FILE *inf = NULL; FILE *outf = NULL; - int outversion = 0x10; + int outversion = 17; int reservenum = 1; int boot_cpuid_phys = 0xfeedbeef; -- cgit v1.2.3-59-g8ed1b