Re: [PATCH] ARM: visit mach-* and plat-* directories when cleaning

From: Masahiro Yamada
Date: Thu Jul 25 2019 - 20:21:14 EST


On Fri, Jul 26, 2019 at 1:46 AM Russell King - ARM Linux admin
<linux@xxxxxxxxxxxxxxx> wrote:
>
> On Fri, Jul 19, 2019 at 01:35:23AM +0900, Masahiro Yamada wrote:
> > When you run "make clean" for arm, it never visits mach-* or plat-*
> > directories because machine-y and plat-y are just empty.
> >
> > When cleaning, all machine, plat directories are accumulated to
> > machine-, plat-, respectively. So, let's pass them to core- to
> > clean up those directories.
>
> You don't say what actual, real-life issue this patch is solving.
> Which files are left behind by a "make clean" ?
>
> From what I can see, this only matters if there are extra files that
> are generated (and have set extra-* or clean-*). Everything else is
> cleaned up via the big find command in the top level makefile.
>
> Or is this a "it would be nice if..." patch?
>

This is a prerequisite for the following:

https://lore.kernel.org/patchwork/patch/1059150/
https://lore.kernel.org/patchwork/patch/1059149/

If this patch lands in upstream, I will resend them.


The motivation of the two is to avoid unneeded
re-compilation of kernel/kheaders_data.tar.xz

This is a race condition between
scripts/gen_kheaders.sh and arch/arm/mach-{at91,omap2}/Makefile


--
Best Regards
Masahiro Yamada