From da5f74998b9e5e6b706608a4ca625ef0ee195150 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 25 Jul 2016 18:59:15 -0600 Subject: dtoc: Support packing the device tree After any node/property deletion the device tree can be packed to remove spare space. Add a way to perform this operation. Note that for fdt_fallback, fdtput automatically packs the device tree after deletion, so no action is required here. Signed-off-by: Simon Glass --- lib/libfdt/libfdt.swig | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/libfdt/libfdt.swig b/lib/libfdt/libfdt.swig index ce516fddf2..0cb7977ffe 100644 --- a/lib/libfdt/libfdt.swig +++ b/lib/libfdt/libfdt.swig @@ -107,3 +107,4 @@ int fdt_next_subnode(const void *fdt, int offset); int fdt_delprop(void *fdt, int nodeoffset, const char *name); const char *fdt_strerror(int errval); +int fdt_pack(void *fdt); -- cgit v1.2.3