This adds the sequential-write interface which provides a way to create a device tree from scratch. It also includes a way to set a node name and a way to obtain properties as strings. Changes in v6: - Adjust tests to suit - Correct call to range() in test which overwrites an existing node - Create an FdtRo base class and make Fdt and FdtSw be subclasses Changes in v5: - Drop error return from resize() - Drop the unnecessary check for a negative size in the FdtSw() constructor - Drop work-around for apparent bug in fdt_resize() - Fix copying logic in as_fdt(), and add a test for it Changes in v4: - Drop patches previously indicated as applied (but not yet present in master) - Make resizing reactive (to -FDT_ERR_NOTFOUND) instead of proactive Changes in v3: - Add a separate comment explaining the purpose of the FdtSw context manager - Adjust operation of as_fdt() to include calling fdt_finish() - Drop unnecessary data copy in resize() an rely on fdt_resize() instead - Rename AddNode() to add_node() - Rename AsFdt() to as_fdt() - Rename _fdt_property() to fdt_property_stub() - Rename the size passed to the FdtSw() to a hint only - Use fdtsw instead of fdtrw as internal variable in FdtSw Simon Glass (1): pylibfdt: Support the sequential-write interface pylibfdt/libfdt.i | 460 +++++++++++++++++++++++++++++++++------- tests/pylibfdt_tests.py | 121 ++++++++++- 2 files changed, 498 insertions(+), 83 deletions(-) -- 2.18.0.203.gfac676dfb9-goog -- To unsubscribe from this list: send the line "unsubscribe devicetree-compiler" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html