
18 Jul
2015
18 Jul
'15
1:56 a.m.
On 23 June 2015 at 15:38, Simon Glass sjg@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@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.