Re: [PATCH 2/2] kbuild: use more subdir- for visiting subdirectories while cleaning

From: Kees Cook
Date: Wed Oct 13 2021 - 02:45:53 EST


On Wed, Oct 13, 2021 at 03:36:22PM +0900, Masahiro Yamada wrote:
> Documentation/kbuild/makefiles.rst suggests to use "archclean" for
> cleaning arch/$(SRCARCH)/boot/.
>
> Since commit d92cc4d51643 ("kbuild: require all architectures to have
> arch/$(SRCARCH)/Kbuild"), we can use the "subdir- += boot" trick for
> all architectures. This can take advantage of the parallel option (-j)
> for "make clean".
>
> I also cleaned up the comments. The "archdep" target does not exist.
>
> Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>

I like the clean-up!

Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>

--
Kees Cook