]> git.dujemihanovic.xyz Git - u-boot.git/commit
libfdt: Add a function to write a property placeholder
authorSimon Glass <sjg@chromium.org>
Tue, 23 Feb 2016 05:55:39 +0000 (22:55 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 14 Mar 2016 18:19:11 +0000 (14:19 -0400)
commitf8a2d7a4162d2c8ca6adbb1fe0ef7d2a9765c923
tree34545d4396f01a984035300d3891b453466205d0
parentcc7a64447bc3e90a8133b2fce98d7526089a7033
libfdt: Add a function to write a property placeholder

The existing function to add a new property to a tree being built requires
that the entire contents of the new property be passed in. For some
applications it is more convenient to be able to add the property contents
later, perhaps by reading from a file. This avoids double-buffering of the
contents.

Add a new function to support this and adust the existing fdt_property() to
use it.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/libfdt.h
lib/libfdt/fdt_sw.c