summaryrefslogtreecommitdiff
path: root/lib/libfdt
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-07-26 00:59:15 (GMT)
committerSimon Glass <sjg@chromium.org>2016-09-19 03:04:39 (GMT)
commitda5f74998b9e5e6b706608a4ca625ef0ee195150 (patch)
tree2c628a3eafc53e5976da64efef57569462595ab5 /lib/libfdt
parent2a70d897ed68fd521411a10831ac05e1ffdd3d41 (diff)
downloadu-boot-da5f74998b9e5e6b706608a4ca625ef0ee195150.tar.xz
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 <sjg@chromium.org>
Diffstat (limited to 'lib/libfdt')
-rw-r--r--lib/libfdt/libfdt.swig1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libfdt/libfdt.swig b/lib/libfdt/libfdt.swig
index ce516fd..0cb7977 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);