[PATCH v2 00/10] 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 various other improvements and
additions to the existing functionality.

This requires the following v4 patches:

	pylibfdt: Return string instead of bytearray from getprop()
	pylibfdt: Allow reading integer values from properties

Note: I'm sending this now rather than waiting on comments for patch 10/10
since there is enough rework here to be getting on with.

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()
- Correct documentation for fdt_next_node()
- Drop use of check_err() since these functions cannot fail
- Make the as_str() function a non-member of Property
- Rename open_into() to resize() since it describes the operation better
- Update existing header functions to also drop check_err()
- Use resize() instead of open_into() since that method was renamed

Simon Glass (10):
  pylibfdt: Reorder functions to match libfdt.h
  pylibfdt: Add support for fdt_next_node()
  pylibfdt: Add support for the rest of the header functions
  pylibfdt: Add support for reading the memory reserve map
  pylibfdt: Support device-tree creation/expansion
  pylibfdt: Add functions to update properties
  pylibfdt: Add functions to set and get properties as strings
  pylibfdt: Avoid accessing the internal _fdt member in tests
  pylibfdt: Support setting the name of a node
  pylibfdt: Support the sequential-write interface

 libfdt/libfdt.h         |   3 +
 pylibfdt/libfdt.i       | 664 ++++++++++++++++++++++++++++++++++++----
 tests/pylibfdt_tests.py | 232 +++++++++++++-
 3 files changed, 831 insertions(+), 68 deletions(-)

-- 
2.17.1.1185.g55be947832-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