]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - Makefile
kbuild: Propagate LOCALVERSION= down to scripts/setlocalversion
[net-next-2.6.git] / Makefile
index a86ac8c4798e00f6fcccf19ca4edf4202d517d69..12ab17511308cffa7dfb00c179c6577d6770e648 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -884,11 +884,9 @@ $(vmlinux-dirs): prepare scripts
        $(Q)$(MAKE) $(build)=$@
 
 # Store (new) KERNELRELASE string in include/config/kernel.release
-localversion = $(shell $(CONFIG_SHELL) \
-              $(srctree)/scripts/setlocalversion $(srctree))
 include/config/kernel.release: include/config/auto.conf FORCE
        $(Q)rm -f $@
-       $(Q)echo $(KERNELVERSION)$(localversion) > $@
+       $(Q)echo "$(KERNELVERSION)$$($(CONFIG_SHELL) scripts/setlocalversion $(srctree))" > $@
 
 
 # Things we need to do before we recursively start building the kernel