[PATCH v5 0/2] pylibfdt: Enhance pylibfdt support to cover sequential-write

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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 v5:
- Add new patch to copy the struct region in fdt_resize()
- 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 (2):
  RFC: libfdt: Copy the struct region in fdt_resize()
  pylibfdt: Support the sequential-write interface

 libfdt/fdt_sw.c         |   2 +-
 pylibfdt/libfdt.i       | 289 ++++++++++++++++++++++++++++++++++++++++
 tests/pylibfdt_tests.py |  93 ++++++++++++-
 3 files changed, 377 insertions(+), 7 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



[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux