public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* Makefile: fix usage of kernelrelease with M=foo
@ 2023-03-14 13:02 nvidia
  2023-03-14 13:02 ` [PATCH] Makefile: Make kernelrelease target work with M= nvidia
  0 siblings, 1 reply; 3+ messages in thread
From: nvidia @ 2023-03-14 13:02 UTC (permalink / raw)
  To: linux-kbuild
  Cc: linux-kernel, Masahiro Yamada, Nathan Chancellor,
	Nick Desaulniers, Nicolas Schier

Commit 1cb86b6c3136 ("kbuild: save overridden KERNELRELEASE in
include/config/kernel.release") set the command that is used for
printing the output of kernelrelease only when KBUILD_EXTMOD is not set.

Test:

make M=$PWD -s kernelversion
make M=$PWD -s kernelrelease

Should print both. Prints only kernelversion and an empty line for
kernelrelease. Included a simple patch that fixes this test.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-14 14:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-14 13:02 Makefile: fix usage of kernelrelease with M=foo nvidia
2023-03-14 13:02 ` [PATCH] Makefile: Make kernelrelease target work with M= nvidia
2023-03-14 14:14   ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox