[RFC] binman: add support for creating dummy files for external blobs

Stefano Babic sbabic at denx.de
Tue Nov 23 16:44:43 CET 2021


On 23.11.21 16:29, Tom Rini wrote:
> On Tue, Nov 16, 2021 at 11:47:10AM +0100, Heiko Thiery wrote:
> 
>> While converting to binman for an imx8mq board, it has been found that
>> building in the u-boot CI fails. This is because an imx8mq requires an
>> external binary (signed_hdmi_imx8m.bin). If this file cannot be found
>> mkimage fails.
>> To be able to build this board in the u-boot CI a binman option
>> (--fake-ext-blobs) is introduced that can be switched on via the u-boot
>> makefile option BINMAN_FAKE_EXT_BLOBS. With that the needed dummy files are
>> created.
>>
>> Signed-off-by: Heiko Thiery <heiko.thiery at gmail.com>
>> ---
>>   Makefile                       |  1 +
>>   tools/binman/cmdline.py        |  2 ++
>>   tools/binman/control.py        | 16 ++++++++++++++++
>>   tools/binman/entry.py          |  1 +
>>   tools/binman/etype/blob_ext.py |  1 +
>>   5 files changed, 21 insertions(+)
> 
> Since this ends up being a problem for a number of boards, does anyone
> have comments on this?  At first glance, this seems reasonable to me,
> and a follow-up making CI make use of this would be handy to finish
> evaluating.

It looks reasonable for me and it is not different as we did before 
binman reporting warnings that the binary does not work. Fine if thsi 
can be merged, I will unblock some i.MX boards (Heiko's for example) 
that I cannot currently merge due to CI failures.

Regards,
Stefano



-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list