[Linux-kernel-mentees] [PATCH v2] kbuild: ensure mrproper removes arch/$(SUBARCH)/include/generated/

Brendan Higgins brendanhiggins at google.com
Tue Apr 14 19:10:43 UTC 2020


- Everyone except LKMP people

On Mon, Apr 13, 2020 at 6:21 PM Vitor Massaru Iha <vitor at massaru.org> wrote:
>
> In the following use case, when compiling the kernel for the UML
> architecture, for example:
>
>  * `make ARCH=um defconfig && make ARCH=um -j8`,
>
> SUBARCH files are generated, however when we run the command:
>
>  * `mrproper ARCH=um`
>
> the files `arch/$(SUBARCH)/include/generated/ aren't cleaned up.
>
> This generates compilation errors by running the following command:
>
>  * `make ARCH=um defconfig O=./build_um && make ARCH=um -j8 O=./build_um`
>
> This PATCH fix that problem.
>
> This makes it possible to compile on different architectures that use the
> SUBARCH variable, in different build directories and root directory of the
> linux directory. This is important because we can compile without the object
> files being overwritten. This reduces the re-compilation time in this use case.
>
> Besides that, in the workflow of developing unit tests, using kunit, and
> compiling in different architectures to develop or test a PATCH, this use case
> applies.
>
>  * This bug was introduced in this commit a788b2ed81abe
>
>  * Related bug: https://bugzilla.kernel.org/show_bug.cgi?id=205219
>
> Signed-off-by: Vitor Massaru Iha <vitor at massaru.org>
> Reviewed-by: Brendan Higgins <brendanhiggins at google.com>
> Tested-by: Brendan Higgins <brendanhiggins at google.com>

Looks great!

Should linux-kernel-mentees@ be CC'ed on all of your patches? I
thought Shuah said yes.


More information about the Linux-kernel-mentees mailing list