mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
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> |
||
---|---|---|
.. | ||
libfdt | ||
lzma | ||
lzo | ||
tizen | ||
zlib | ||
addr_map.c | ||
aes.c | ||
asm-offsets.c | ||
bch.c | ||
bzlib.c | ||
bzlib_crctable.c | ||
bzlib_decompress.c | ||
bzlib_huffman.c | ||
bzlib_private.h | ||
bzlib_randtable.c | ||
circbuf.c | ||
crc7.c | ||
crc16.c | ||
crc32.c | ||
ctype.c | ||
display_options.c | ||
div64.c | ||
errno.c | ||
fdtdec.c | ||
fdtdec_test.c | ||
gunzip.c | ||
gzip.c | ||
hashtable.c | ||
ldiv.c | ||
lmb.c | ||
Makefile | ||
md5.c | ||
net_utils.c | ||
qsort.c | ||
rand.c | ||
rbtree.c | ||
sha1.c | ||
sha256.c | ||
string.c | ||
strmhz.c | ||
time.c | ||
uuid.c | ||
vsprintf.c |