
Hi Bin,
On Fri, 7 May 2021 at 08:50, Bin Meng bmeng.cn@gmail.com wrote:
Hi Simon,
On Thu, May 6, 2021 at 7:38 AM Simon Glass sjg@chromium.org wrote:
Hi Bin,
On Wed, 5 May 2021 at 07:16, Bin Meng bmeng.cn@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@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?
But isn't mkimage invoked by binman?
I think this patch is best skipped if we cannot solve the problem fully. We can return to it another time perhaps.
Regards, Simon