[PATCH 00/29] binman: Add more tests and support for updating the device tree

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



At present we have 100% code coverage for binman. This series adds the
same for dtoc (which converts device-tree data to C) and the Fdt class
(which provides convenient Python access to the device tree).

Binman already support writing a map file showing the location of each
entry in the images in produces. But, with the exception of automatic
linker symbols in SPL, this information is not available to U-Boot
itself. The series adds support for this, by writing the updated entry
position and size back to the device tree for inclusion in the image.
With this, U-Boot can easily read this information and locate image
entries at runtime.

Note: At present the access to device-tree values is more clumbsy than
it could be. Once pylibfdt support is finished, this needs another look.


Simon Glass (28):
  binman: Make the operation of Entry__testing explicit
  binman: Tidy up variables in _RunMicrocodeTest()
  binman: Correct operation of ObtainContents()
  binman: Tidy up execution of tests
  binman: Tidy up setting of entry contents
  libfdt: Bring in proposed pylibfdt changes
  libfdt: Fix the Python pack() function
  libfdt: Add get_property() and del_node()
  binman: Move coverage logic into a new test_util file
  dtoc: Add some tests for the fdt module
  dtoc: Update tests to write failures to /tmp
  dtoc: Update fdt tests to increase code coverage
  dtoc: Make use of the new pylibfdt methods
  dtoc: Drop use of a local dtb buffer
  dtoc: Keep track of property offsets
  dtoc: Fix Fdt.GetNode() to handle a missing node
  dtoc: Update fdt tests to increase code coverage
  dtoc: Fix properties with a single zero-arg phandle
  dtoc: Fix some minor errors
  dtoc: Add a test for code coverage
  dtoc: Increase code coverage to 100%
  binman: Move capture_sys_output() to test_util
  dtoc: Avoid unwanted output during tests
  dtoc: Add functions to add integer properties
  binman: Complete documentation of stages
  binman: Add a ProcessFdt() method
  binman: Add a SetCalculatedProperties() method
  binman: Support updating the device tree with calc'd info

Tom Rini (1):
  binman: Switch to 'python-coverage'

 scripts/dtc/libfdt/libfdt.h                   |   3 +
 scripts/dtc/pylibfdt/libfdt.i_shipped         | 725 ++++++++++++++++--
 tools/binman/README                           |  45 +-
 tools/binman/binman.py                        |  38 +-
 tools/binman/bsection.py                      |  27 +
 tools/binman/cmdline.py                       |   2 +
 tools/binman/control.py                       |  58 +-
 tools/binman/elf_test.py                      |  22 +-
 tools/binman/entry.py                         |  42 +
 tools/binman/etype/_testing.py                |  27 +-
 tools/binman/etype/blob.py                    |   3 +-
 tools/binman/etype/section.py                 |  13 +-
 tools/binman/etype/u_boot_dtb_with_ucode.py   |  47 +-
 tools/binman/etype/u_boot_spl_bss_pad.py      |   4 +-
 tools/binman/etype/u_boot_ucode.py            |   9 +-
 tools/binman/etype/u_boot_with_ucode_ptr.py   |  11 +-
 tools/binman/ftest.py                         | 151 +++-
 tools/binman/image.py                         |  17 +
 tools/binman/image_test.py                    |   2 +-
 tools/binman/test/41_unknown_pos_size.dts     |   1 +
 tools/binman/test/57_unknown_contents.dts     |  14 +
 .../test/58_x86_ucode_spl_needs_retry.dts     |  36 +
 tools/binman/test/59_change_size.dts          |  14 +
 tools/binman/test/60_fdt_update.dts           |  28 +
 tools/dtoc/dtb_platdata.py                    |  15 +-
 tools/dtoc/dtoc.py                            |  35 +-
 tools/dtoc/dtoc_test_add_prop.dts             |  24 +
 tools/dtoc/dtoc_test_addr32_64.dts            |   2 +-
 tools/dtoc/dtoc_test_addr64_32.dts            |   2 +-
 tools/dtoc/dtoc_test_bad_reg.dts              |  17 +
 tools/dtoc/dtoc_test_bad_reg2.dts             |  17 +
 tools/dtoc/dtoc_test_phandle.dts              |   6 +
 tools/dtoc/dtoc_test_phandle_bad.dts          |  16 +
 tools/dtoc/dtoc_test_phandle_bad2.dts         |  22 +
 tools/dtoc/dtoc_test_phandle_reorder.dts      |  23 +
 tools/dtoc/dtoc_test_phandle_single.dts       |  23 +
 tools/dtoc/dtoc_test_simple.dts               |   1 +
 tools/dtoc/fdt.py                             | 110 ++-
 tools/dtoc/fdt_util.py                        |   4 +-
 tools/dtoc/test_dtoc.py                       | 223 +++++-
 tools/dtoc/test_fdt                           |   1 +
 tools/dtoc/test_fdt.py                        | 390 ++++++++++
 tools/patman/test_util.py                     |  73 ++
 43 files changed, 2097 insertions(+), 246 deletions(-)
 create mode 100644 tools/binman/test/57_unknown_contents.dts
 create mode 100644 tools/binman/test/58_x86_ucode_spl_needs_retry.dts
 create mode 100644 tools/binman/test/59_change_size.dts
 create mode 100644 tools/binman/test/60_fdt_update.dts
 create mode 100644 tools/dtoc/dtoc_test_add_prop.dts
 create mode 100644 tools/dtoc/dtoc_test_bad_reg.dts
 create mode 100644 tools/dtoc/dtoc_test_bad_reg2.dts
 create mode 100644 tools/dtoc/dtoc_test_phandle_bad.dts
 create mode 100644 tools/dtoc/dtoc_test_phandle_bad2.dts
 create mode 100644 tools/dtoc/dtoc_test_phandle_reorder.dts
 create mode 100644 tools/dtoc/dtoc_test_phandle_single.dts
 create mode 120000 tools/dtoc/test_fdt
 create mode 100755 tools/dtoc/test_fdt.py
 create mode 100644 tools/patman/test_util.py

-- 
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