diff mbox

[2/2] Makefile: "make kernelrelease" should show the correct full kernel version

Message ID 4C6BA5C7.5010207@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Amerigo Wang Aug. 18, 2010, 9:20 a.m. UTC
None
diff mbox

Patch

diff --git a/Makefile b/Makefile
index f3bdff8..25da252 100644
--- a/Makefile
+++ b/Makefile
@@ -1408,8 +1408,8 @@  checkstack:
 	$(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \
 	$(PERL) $(src)/scripts/checkstack.pl $(CHECKSTACK_ARCH)
 
-kernelrelease: include/config/kernel.release
-	@echo $(KERNELRELEASE)
+kernelrelease:
+	@echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"
 
 kernelversion:
 	@echo $(KERNELVERSION)