summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-07-25 18:59:15 -0600
committerSimon Glass <sjg@chromium.org>2016-09-18 21:04:39 -0600
commitda5f74998b9e5e6b706608a4ca625ef0ee195150 (patch)
tree2c628a3eafc53e5976da64efef57569462595ab5 /lib
parent2a70d897ed68fd521411a10831ac05e1ffdd3d41 (diff)
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')
-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 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);