diff mbox

makefile: not need to regenerate kernel.release file when make kernelrelease

Message ID 20100820094028.6321.95741.sendpatchset@localhost.localdomain (mailing list archive)
State New, archived
Headers show

Commit Message

Amerigo Wang Aug. 20, 2010, 9:36 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)