[U-Boot] [PATCH v3 04/54] fdt: Add a function to remove unused strings from a device tree

Simon Glass sjg at chromium.org
Sat Jul 18 01:56:10 CEST 2015


On 23 June 2015 at 15:38, Simon Glass <sjg at chromium.org> wrote:
> Property names are stored in a string table. When a node property is
> removed, the string table is not updated since other nodes may have a
> property with the same name.
>
> Thus it is possible for the string table to build up a number of unused
> strings. Add a function to remove these. This works by building a new device
> tree from the old one, adding strings one by one as needed.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v3:
> - Fix indentation in function comment
>
> Changes in v2:
> - Add new patch to remove unused strings from a device tree
>
>  include/libfdt.h    | 17 +++++++++++++++++
>  lib/libfdt/fdt_rw.c | 32 ++++++++++++++++++++++++++++++++
>  2 files changed, 49 insertions(+)

Applied to u-boot-dm.


More information about the U-Boot mailing list