Skip to content

binman: Show missing blob message when building U-Boot

Jonas Karlman u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 11 repliesIn review
  2. v19 patches 19 repliesApplied

Changes in v2 from the cover letter

- Drop merged patches.
- Add patches to improve help text.
- Add tests.
- Collect r-b tags.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7binman: Update tee-os missing blob help texttools/binman/missing-blob-help+1 -12 replies
2/7binman: Update missing optional external blob warning texttools/binman/control.py tools/binman/ftest.py+2 -22 replies
3/7binman: Report missing external blobs using error leveltools/binman/control.py+9 -92 replies
4/7binman: Override CheckOptional in fit entrytools/binman/etype/fit.py tools/binman/ftest.py tools/binman/test/264_tee_os_opt_fit.dts+15 -01 reply
5/7binman: Fix blank line usage for invalid images warning texttools/binman/control.py+7 -62 replies
6/7binman: Show filename in missing blob help messagetools/binman/control.py tools/binman/ftest.py+12 -31 reply
7/7Makefile: Show binman missing blob messageMakefile+1 -11 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchSimon Glass
1/7R-b R-b
2/7R-b
3/7R-b R-b
4/7R-b R-b
5/7R-b
6/7R-b R-b
7/7R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/7] binman: Show missing blob message when building U-Boot

binman currently support showing a helpful missing blob message, however only when the badly named --allow-missing flag is used.

This changes so that binman is invoked with the --allow-missing flag and the helpful message can be shown by default when building U-Boot.

Using the following:

make rockpro64-rk3399_defconfig
make CROSS_COMPILE="aarch64-linux-gnu-"

Before this series a build fails with:

binman: Filename 'atf-bl31' not found in input path (...)

After this series a build fails with:

Image 'simple-bin' is missing external blobs and is non-functional: atf-bl31

/binman/simple-bin/fit/images/@atf-SEQ/atf-bl31 (atf-bl31):
See the documentation for your board. You may need to build ARM Trusted Firmware and build with BL31=/path/to/bl31.bin

Image 'simple-bin' is missing optional external blobs but is still functional: tee-os

/binman/simple-bin/fit/images/@tee-SEQ/tee-os (tee-os):
See the documentation for your board. You may need to build Open Portable Trusted Execution Environment (OP-TEE) and build with TEE=/path/to/tee.bin

Some images are invalid

Builds will continue to fail when there is missing blobs, and the use of BINMAN_ALLOW_MISSING=1 now only enables the --ignore-missing flag.

Changes in v2:
- Drop merged patches.
- Add patches to improve help text.
- Add tests.
- Collect r-b tags.

In v1 there was discussion regarding the name of binman --ignore-missing flag, see [1]. The flag is kept as-is in v2 and a rename or change of default behavior is something that someone can do in a follow up series.

The series is based on top of Simon's "binman: Simple templating feature and mkimage conversion" v5 series. This series can also be found at [2].

[1] https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
[2] https://github.com/Kwiboo/u-boot-rockchip/commits/binman-missing-v2

Jonas Karlman (7):
binman: Update tee-os missing blob help text
binman: Update missing optional external blob warning text
binman: Report missing external blobs using error level
binman: Override CheckOptional in fit entry
binman: Fix blank line usage for invalid images warning text
binman: Show filename in missing blob help message
Makefile: Show binman missing blob message

 Makefile                                 |  2 +-
 tools/binman/control.py                  | 34 +++++++++++++++---------
 tools/binman/etype/fit.py                |  7 +++++
 tools/binman/ftest.py                    | 11 +++++++-
 tools/binman/missing-blob-help           |  2 +-
 tools/binman/test/264_tee_os_opt_fit.dts |  1 +
 6 files changed, 41 insertions(+), 16 deletions(-)
Signature · 1 line
2.41.0