[PATCH v3 17/27] binman: Automatically expand phase binaries into sections

Simon Glass sjg at chromium.org
Sat Mar 20 00:52:49 CET 2021


When creating an entry, check for an expanded version of that entry, then
use it instead. This allows, for example use of:

   u-boot {
   };

instead of having to write out in full:

   u-boot {
      type = "section";

      u-boot-nodtb {
      };

      u-boot-dtb {
      };
   };

Add an implementaion of this and associated documentation.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v3:
- Update sizes for new behaviour

 tools/binman/README                       |  77 ++++++++++
 tools/binman/README.entries               |  96 +++++++++++-
 tools/binman/etype/blob_phase.py          |  51 +++++++
 tools/binman/etype/u_boot.py              |   8 +-
 tools/binman/etype/u_boot_expanded.py     |  24 +++
 tools/binman/etype/u_boot_nodtb.py        |   4 +-
 tools/binman/etype/u_boot_spl.py          |   3 +
 tools/binman/etype/u_boot_spl_expanded.py |  45 ++++++
 tools/binman/etype/u_boot_spl_nodtb.py    |   5 +-
 tools/binman/etype/u_boot_tpl.py          |   3 +
 tools/binman/etype/u_boot_tpl_expanded.py |  45 ++++++
 tools/binman/etype/u_boot_tpl_nodtb.py    |   5 +-
 tools/binman/ftest.py                     | 174 ++++++++++++++++++++++
 tools/binman/state.py                     |  19 ++-
 tools/binman/test/194_fdt_incl.dts        |  17 +++
 tools/binman/test/195_fdt_incl_tpl.dts    |  13 ++
 16 files changed, 571 insertions(+), 18 deletions(-)
 create mode 100644 tools/binman/etype/blob_phase.py
 create mode 100644 tools/binman/etype/u_boot_expanded.py
 create mode 100644 tools/binman/etype/u_boot_spl_expanded.py
 create mode 100644 tools/binman/etype/u_boot_tpl_expanded.py
 create mode 100644 tools/binman/test/194_fdt_incl.dts
 create mode 100644 tools/binman/test/195_fdt_incl_tpl.dts

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list