Commit 01ab1788 authored by Amerigo Wang's avatar Amerigo Wang Committed by Michal Marek

Makefile: "make kernelrelease" should show the correct full kernel version

After commit 85a256d8, 'make kernelrelease'
doesn't show the correct full kernel version. This patch fixes it,
'make kernelrelease' will show the same version name with the one
you finally get.

Cc: David Rientjes <>
Cc: Michal Marek <>
Signed-off-by: default avatarAmerigo Wang <>
[mmarek: merged with 09155120 and added dependency on
Signed-off-by: default avatarMichal Marek <>
parent 8af8b283
......@@ -414,7 +414,7 @@ endif
no-dot-config-targets := clean mrproper distclean \
cscope TAGS tags help %docs check% \
include/linux/version.h headers_% \
kernelrelease kernelversion
config-targets := 0
mixed-targets := 0
......@@ -1395,9 +1395,9 @@ checkstack:
$(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \
$(PERL) $(src)/scripts/ $(CHECKSTACK_ARCH)
$(if $(wildcard include/config/kernel.release), $(Q)echo $(KERNELRELEASE), \
$(error kernelrelease not valid - run 'make prepare' to update it))
kernelrelease: include/config/kernel.release
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment