[PATCH 1/6] binman: Reset missing bintools after testing

Neha Malcom Francis n-francis at ti.com
Mon Oct 16 13:36:10 CEST 2023


Hi Simon

On 15/10/23 02:10, Simon Glass wrote:
> For tests which fake bintools being missing, we need to reset the list
> afterwards, to ensure that future tests do not also see the bintools as
> missing.
> 
> Reset the list when processing is complete.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
>   tools/binman/control.py | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/tools/binman/control.py b/tools/binman/control.py
> index c6d3205b8c25..2f00279232b8 100644
> --- a/tools/binman/control.py
> +++ b/tools/binman/control.py
> @@ -858,6 +858,8 @@ def Binman(args):
>                   data = state.GetFdtForEtype('u-boot-dtb').GetContents()
>                   elf.UpdateFile(*elf_params, data)
>   
> +            bintool.Bintool.set_missing_list(None)
> +
>               # This can only be True if -M is provided, since otherwise binman
>               # would have raised an error already
>               if invalid:

Reviewed-by: Neha Malcom Francis <n-francis at ti.com>

-- 
Thanking You
Neha Malcom Francis


More information about the U-Boot mailing list