[PATCH v3 0/4] 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 v3:
- Add a separate comment explaining the purpose of the FdtSw context manager
- Add one more test (for trailing \0)
- Adjust operation of as_fdt() to include calling fdt_finish()
- Automatically resize the sw tree before it runs out of space
- Correct 'supposed' typo
- Drop patches already applied (or marked as such)
- Drop unnecessary data copy in resize() an rely on fdt_resize() instead
- Fix the nul check and clarify the 'name' argument type with a comment
- Go back to having as_str() be a member of Property
- Move appending of \0 to after unicode conversion
- 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
- Update commit message to describe auto-expansion with FdtSw
- Update cover letter
- Use fdtsw instead of fdtrw as internal variable in FdtSw

Changes in v2:
- Add support for unicode strings
- Check for an invalid C string (embedded nul)
- Check for invalid embedded nul characters in as_str()
- Check for nul termination in as_str()
- Make the as_str() function a non-member of Property

Simon Glass (4):
  pylibfdt: Add functions to set and get properties as strings
  pylibfdt: Support setting the name of a node
  libfdt: Add a way to determine free space
  pylibfdt: Support the sequential-write interface

 libfdt/fdt_sw.c         |  13 +-
 libfdt/libfdt.h         |   8 +
 pylibfdt/libfdt.i       | 349 ++++++++++++++++++++++++++++++++++++++++
 tests/pylibfdt_tests.py | 129 ++++++++++++++-
 tests/sw_states.c       |  16 ++
 5 files changed, 504 insertions(+), 11 deletions(-)

-- 
2.18.0.rc1.244.gcf134e6275-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