[PATCH 7/9] makefile: Update clean rule to remove files generated by binman

Bin Meng bmeng.cn at gmail.com
Fri May 7 16:49:27 CEST 2021


Hi Simon,

On Thu, May 6, 2021 at 7:38 AM Simon Glass <sjg at chromium.org> wrote:
>
> Hi Bin,
>
> On Wed, 5 May 2021 at 07:16, Bin Meng <bmeng.cn at gmail.com> wrote:
> >
> > When using binman to generate an FIT image, these intermediate files
> > "*.fit.fit" and "*.fit.itb" are generated from mkimage, which should
> > be cleaned, and git ignored.
> >
> > While we are here, clean the map file generated by "binman -m" as well.
> >
> > Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> > ---
> >
> >  .gitignore | 4 +++-
> >  Makefile   | 5 +++--
> >  2 files changed, 6 insertions(+), 3 deletions(-)
>
> The thing is, binman can emit a lot of files and this is just some of
> them. We need a way to handle this in general.
>
> Options I can think of:
>
> - put intermedia files in a subdir
> - have a way to ask binman to list the files it would have generated
> for any particular board, and 'rm' them in the Makefile
> - have binman write out a list of generated files into something like
> binman.lst and remove those files

For binman generated files, these are options we can look at. But I am
not sure if the same applies to mkimage generated ones? Is it worth
changing in this series?

Regards,
Bin


More information about the U-Boot mailing list