• Simon Glass's avatar
    fdt: Add a function to remove unused strings from a device tree · 8f6e2e1e
    Simon Glass authored
    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: default avatarSimon Glass <sjg@chromium.org>
    8f6e2e1e
fdt_rw.c 11.4 KB