Re: [PATCH 7/7] kbuild: do not re-run setlocalversion for kernelrelease

From: Masahiro Yamada
Date: Wed Feb 01 2023 - 08:10:27 EST


On Sun, Jan 22, 2023 at 11:14 PM Masahiro Yamada <masahiroy@xxxxxxxxxx> wrote:
>
> Revert:
> - 7b8ea53d7f18 ("makefile: not need to regenerate kernel.release
> file when make kernelrelease")
>
> - 01ab17887f4c ("Makefile: "make kernelrelease" should show the
> correct full kernel version")
>
> I think the original behavior was better - 'make kernelrelease' should
> print $(KERNELRELEASE) used in the last build, not the one that will
> be used in the next build. Therefore, it is an error if you run it in
> the pristine source tree.
>
> Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>



I locally got a question about this, and
on second thought, this might be annoying
because you need to build something to get kernelrelease.

I will drop this commit.




--
Best Regards
Masahiro Yamada