binman: Simple templating feature and mkimage conversion
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest20 patches 22 repliesIn review
- v420 patches 4 repliesSuperseded
- v319 patches 7 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 12 patches | 13 replies | Superseded |
Changes in v5 from the cover letter
- Drop method implementations for which the entry_Section one is enough
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/20 | binman: Correct coverage gap in controltools/ | +1 | 0 replies | |
| 2/20 | binman: Init align_default in entry_Sectiontools/ | +1 | 1 reply | |
| 3/20 | binman: Use GetEntries() to obtain section contentstools/ | +9 | 1 reply | |
| 4/20 | binman: Read _multiple_data_files in the correct placetools/ | +2 | 1 reply | |
| 5/20 | binman: Allow disabling symbol writingtools/ tools/ tools/ +2 more | +64 | 1 reply | |
| 6/20 | stm32mp15: Avoid writing symbols in SPLarch/ | +1 | 1 reply | |
| 7/20 | binman: Update elf to return number of written symbolstools/ tools/ | +16 | 1 reply | |
| 8/20 | binman: Add more detail on how ObtainContents() workstools/ tools/ | +34 | 1 reply | |
| 9/20 | binman: Convert mkimage to Entry_sectiontools/ tools/ tools/ +1 more | +130 | 1 reply | |
| 10/20 | binman: Provide a way to specify the fdt-list directlytools/ tools/ tools/ +1 more | +85 | 1 reply | |
| 11/20 | binman: Drop __bss_size variable in bss_data.ctools/ | +1 | 1 reply | |
| 12/20 | binman: Correct handling of zero bss sizetools/ tools/ tools/ +7 more | +69 | 1 reply | |
| 13/20 | dtoc: Support copying the contents of a node into anothertools/ tools/ tools/ | +266 | 1 reply | |
| 14/20 | dtoc: Allow inserting a list of nodes into anothertools/ tools/ tools/ | +74 | 1 reply | |
| 15/20 | binman: Support simple templatestools/ tools/ tools/ +2 more | +165 | 4 replies | |
| 16/20 | binman: Support templating with multiple imagestools/ tools/ tools/ | +42 | 1 reply | |
| 17/20 | binman: Add a test for templating in a FITtools/ tools/ | +44 | 1 reply | |
| 18/20 | binman: Support templates at any leveltools/ tools/ tools/ | +63 | 1 reply | |
| 19/20 | binman: Support writing symbols inside a mkimage imagetools/ tools/ tools/ +1 more | +127 | 1 reply | |
| 20/20 | binman: Reduce state.SetInt and bintool cmd to debug leveltools/ tools/ | +3 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.
Cover letter [PATCH v5 00/20] binman: Simple templating feature and mkimage conversion
This series converts the mkimage entry type to be a section, i.e. based on the entry_Section class. This makes it more consistent in its behaviour, e.g. allowing symbol writing and expanded entries.
A simple templating feature is also introduced, to reduce duplication when a set of entries must be used in multiple images.
In this version the nodes from the template are placed before any other nodes, meaning that the template sets the node order. This seems more consistent than other mechanisms.
This series is available at u-boot-dm/mkim-working
Changes in v5:
- Drop method implementations for which the entry_Section one is enough
Changes in v4:
- Avoid copying phandle nodes
- Support copying over properties from each template node
- Make sure phandles are not copied
- Copy over properties from the top-level template node
- Add new patch to reduce state.SetInt and bintool cmd to debug level
Changes in v3:
- Add new patch for elf to return number of written symbols
- Add new patch with more detail on how ObtainContents() works
- Fix up some tests which now need SPL and TPL
- Avoid calling ObtainContents() when not needed
- Fix 'specific' typo
- Add a new devicetree file especially for node copying
- Correct logic for merging nodes in order
- Tidy up some comments
- Adjust to use the new example file
- Drop duplicate dts-v1 header
- Add new test case for templating in a FIT
- Add new patch to support writing symbols inside a mkimage image
Changes in v2:
- Drop now-unnecessary methods in mkimage etype
- Correct ordering of template nodes
- Fix 'preseverd' and 'inserter' typos
Marek Vasut (1):
binman: Convert mkimage to Entry_section
Simon Glass (19):
binman: Correct coverage gap in control
binman: Init align_default in entry_Section
binman: Use GetEntries() to obtain section contents
binman: Read _multiple_data_files in the correct place
binman: Allow disabling symbol writing
stm32mp15: Avoid writing symbols in SPL
binman: Update elf to return number of written symbols
binman: Add more detail on how ObtainContents() works
binman: Provide a way to specify the fdt-list directly
binman: Drop __bss_size variable in bss_data.c
binman: Correct handling of zero bss size
dtoc: Support copying the contents of a node into another
dtoc: Allow inserting a list of nodes into another
binman: Support simple templates
binman: Support templating with multiple images
binman: Add a test for templating in a FIT
binman: Support templates at any level
binman: Support writing symbols inside a mkimage image
binman: Reduce state.SetInt and bintool cmd to debug level
arch/arm/dts/stm32mp15-u-boot.dtsi | 1 + tools/binman/binman.rst | 94 +++++++++ tools/binman/bintool.py | 2 +- tools/binman/control.py | 34 +++- tools/binman/elf.py | 13 +- tools/binman/elf_test.py | 13 +- tools/binman/entries.rst | 6 + tools/binman/entry.py | 11 +- tools/binman/etype/blob_phase.py | 5 + tools/binman/etype/fit.py | 9 + tools/binman/etype/mkimage.py | 136 ++++++------- tools/binman/etype/section.py | 54 +++-- tools/binman/etype/u_boot_spl_bss_pad.py | 2 +- tools/binman/etype/u_boot_tpl_bss_pad.py | 2 +- tools/binman/etype/u_boot_vpl_bss_pad.py | 2 +- tools/binman/ftest.py | 218 ++++++++++++++++++++- tools/binman/state.py | 4 +- tools/binman/test/282_symbols_disable.dts | 25 +++ tools/binman/test/283_mkimage_special.dts | 24 +++ tools/binman/test/284_fit_fdt_list.dts | 58 ++++++ tools/binman/test/285_spl_expand.dts | 13 ++ tools/binman/test/286_template.dts | 42 ++++ tools/binman/test/287_template_multi.dts | 27 +++ tools/binman/test/288_template_fit.dts | 37 ++++ tools/binman/test/289_template_section.dts | 52 +++++ tools/binman/test/290_mkimage_sym.dts | 27 +++ tools/binman/test/Makefile | 5 +- tools/binman/test/bss_data.c | 3 +- tools/binman/test/bss_data_zero.c | 16 ++ tools/binman/test/bss_data_zero.lds | 15 ++ tools/binman/test/embed_data.lds | 1 + tools/dtoc/fdt.py | 141 ++++++++++++- tools/dtoc/test/dtoc_test_copy.dts | 88 +++++++++ tools/dtoc/test_fdt.py | 113 +++++++++++ 34 files changed, 1184 insertions(+), 109 deletions(-) create mode 100644 tools/binman/test/282_symbols_disable.dts create mode 100644 tools/binman/test/283_mkimage_special.dts create mode 100644 tools/binman/test/284_fit_fdt_list.dts create mode 100644 tools/binman/test/285_spl_expand.dts create mode 100644 tools/binman/test/286_template.dts create mode 100644 tools/binman/test/287_template_multi.dts create mode 100644 tools/binman/test/288_template_fit.dts create mode 100644 tools/binman/test/289_template_section.dts create mode 100644 tools/binman/test/290_mkimage_sym.dts create mode 100644 tools/binman/test/bss_data_zero.c create mode 100644 tools/binman/test/bss_data_zero.lds create mode 100644 tools/dtoc/test/dtoc_test_copy.dts
Signature · 1 line
2.41.0.455.g037347b96a-goog