dtc/libfdt
David Gibson a041dcdc48 libfdt: Handle v16 and re-ordered trees for r/w
Currently all the read/write functions in libfdt require that the
given tree be v17, and further, that the tree has the memory
reservation block, structure block and strings block stored in that
physical order.

This patch eases these constraints, by making fdt_open_int() reorder
the blocks, and/or convert the tree to v17, so that it will then be
ready for the other read-write functions.

It also extends fdt_pack() to actually remove any gaps between blocks
that might be present.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2007-11-01 08:03:31 -05:00
..
Makefile.libfdt dtc: Refactor Makefiles 2007-10-15 08:28:07 -05:00
TODO Move everything into a subdirectory in preparation for merge into dtc. 2007-06-14 11:58:35 +10:00
fdt.c libfdt: Rename and publish _fdt_next_tag() 2007-10-24 09:56:27 -05:00
fdt.h Move everything into a subdirectory in preparation for merge into dtc. 2007-06-14 11:58:35 +10:00
fdt_ro.c libfdt: Rename and publish _fdt_next_tag() 2007-10-24 09:56:27 -05:00
fdt_rw.c libfdt: Handle v16 and re-ordered trees for r/w 2007-11-01 08:03:31 -05:00
fdt_strerror.c Move everything into a subdirectory in preparation for merge into dtc. 2007-06-14 11:58:35 +10:00
fdt_sw.c libfdt: Remove un-const-safe fdt_set_header macro 2007-10-25 09:49:18 -05:00
fdt_wip.c libfdt: Rename and publish _fdt_next_tag() 2007-10-24 09:56:27 -05:00
libfdt.h libfdt: Handle v16 and re-ordered trees for r/w 2007-11-01 08:03:31 -05:00
libfdt_env.h Move everything into a subdirectory in preparation for merge into dtc. 2007-06-14 11:58:35 +10:00
libfdt_internal.h libfdt: Rename and publish _fdt_check_header() 2007-10-24 07:58:13 -05:00