summaryrefslogtreecommitdiff
path: root/lib/libfdt/Makefile
diff options
context:
space:
mode:
authorGerald Van Baren <gvb@unssw.com>2012-10-15 22:24:36 -0400
committerGerald Van Baren <gvb@unssw.com>2012-10-15 22:24:36 -0400
commitc71b64f3617b5a4362c6e4e0aefdd66d6ac6affd (patch)
tree947b4febb1b863d9028274c064da2f698b803120 /lib/libfdt/Makefile
parent8ac88f2d2818c8efc1558626a4e7fb47dcc18987 (diff)
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>
Diffstat (limited to 'lib/libfdt/Makefile')
-rw-r--r--lib/libfdt/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfdt/Makefile b/lib/libfdt/Makefile
index c965577dc0..0693d4bf55 100644
--- a/lib/libfdt/Makefile
+++ b/lib/libfdt/Makefile
@@ -27,7 +27,7 @@ LIB = $(obj)libfdt.o
SOBJS =
-COBJS-libfdt += fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_sw.o fdt_wip.o
+COBJS-libfdt += fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_sw.o fdt_wip.o fdt_empty_tree.o
COBJS-$(CONFIG_OF_LIBFDT) += $(COBJS-libfdt)
COBJS-$(CONFIG_FIT) += $(COBJS-libfdt)