[PATCH 7/9] makefile: Update clean rule to remove files generated by binman
Simon Glass
sjg at chromium.org
Thu May 6 01:37:47 CEST 2021
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
Regards,
Simon
More information about the U-Boot
mailing list