[PATHv2 9/9] Makefile: add dtbs to clean

Maxim Uvarov maxim.uvarov at linaro.org
Tue Dec 26 13:27:58 CET 2023


On Tue, 26 Dec 2023 at 15:50, Simon Glass <sjg at chromium.org> wrote:

> Hi Maxim,
>
> On Mon, Dec 25, 2023 at 3:42 PM Maxim Uvarov <maxim.uvarov at linaro.org>
> wrote:
> >
> > CI test checks that generated dtb has to be cleaned up.
> >
> > Signed-off-by: Maxim Uvarov <maxim.uvarov at linaro.org>
> > ---
> >  Makefile | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/Makefile b/Makefile
> > index 220411a293..ab603191ad 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -2165,7 +2165,8 @@ CLEAN_FILES += include/autoconf.mk*
> include/bmp_logo.h include/bmp_logo_data.h \
> >                mkimage-out.spl.mkimage mkimage.spl.mkimage imx-boot.map \
> >                itb.fit.fit itb.fit.itb itb.map spl.map
> mkimage-out.rom.mkimage \
> >                mkimage.rom.mkimage mkimage-in-simple-bin* rom.map
> simple-bin* \
> > -              idbloader-spi.img lib/efi_loader/helloworld_efi.S *.itb
> > +              idbloader-spi.img lib/efi_loader/helloworld_efi.S *.itb \
> > +              ./*/*.dtb *.dtb
> >
> >  # Directories & files removed with 'make mrproper'
> >  MRPROPER_DIRS  += include/config include/generated spl tpl vpl \
> > --
> > 2.30.2
> >
>
> Shouldn't this be handled with CLEAN_FILES in arch/xxx/dts ?
>
> Regards,
> Simon
>

I don't know. It looks like CLEAN_FILES is almost not used inside ./arch
directory. Only 1 place where it appears:

fgrep -r CLEAN_FILES ./arch/
./arch/arm/mach-rmobile/Makefile:CLEAN_FILES += u-boot-spl.scif

BR,
Maxim.


More information about the U-Boot mailing list