summaryrefslogtreecommitdiff
path: root/lib/libfdt
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/libfdt
parent2a70d897ed68fd521411a10831ac05e1ffdd3d41 (diff)
downloadu-boot-imx-da5f74998b9e5e6b706608a4ca625ef0ee195150.zip
u-boot-imx-da5f74998b9e5e6b706608a4ca625ef0ee195150.tar.gz
u-boot-imx-da5f74998b9e5e6b706608a4ca625ef0ee195150.tar.bz2
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);