]> git.dujemihanovic.xyz Git - u-boot.git/commit
binman: Automatically expand phase binaries into sections
authorSimon Glass <sjg@chromium.org>
Thu, 18 Mar 2021 07:25:07 +0000 (20:25 +1300)
committerSimon Glass <sjg@chromium.org>
Fri, 26 Mar 2021 04:03:09 +0000 (17:03 +1300)
commit06684927289fb0ad0856fa897bbee10de61137e4
tree07eee9eb67591ebc42f4cc9d163798be3c9ab643
parent0b6023ee41add24ebb9df215ceaec0a803d6c552
binman: Automatically expand phase binaries into sections

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@chromium.org>
16 files changed:
tools/binman/README
tools/binman/README.entries
tools/binman/etype/blob_phase.py [new file with mode: 0644]
tools/binman/etype/u_boot.py
tools/binman/etype/u_boot_expanded.py [new file with mode: 0644]
tools/binman/etype/u_boot_nodtb.py
tools/binman/etype/u_boot_spl.py
tools/binman/etype/u_boot_spl_expanded.py [new file with mode: 0644]
tools/binman/etype/u_boot_spl_nodtb.py
tools/binman/etype/u_boot_tpl.py
tools/binman/etype/u_boot_tpl_expanded.py [new file with mode: 0644]
tools/binman/etype/u_boot_tpl_nodtb.py
tools/binman/ftest.py
tools/binman/state.py
tools/binman/test/194_fdt_incl.dts [new file with mode: 0644]
tools/binman/test/195_fdt_incl_tpl.dts [new file with mode: 0644]