kbuild: Fix path to scripts/setlocalversion
authorMichal Marek <[email protected]>
Mon, 5 Jul 2010 21:43:04 +0000 (23:43 +0200)
committerLinus Torvalds <[email protected]>
Wed, 7 Jul 2010 00:13:44 +0000 (17:13 -0700)
Commit 0a564b2 broke LOCALVERSION for O=... builds. Ouch.

Reported-by: Stephen Rothwell <[email protected]>
Reported-and-tested-by: Rafael J. Wysocki <[email protected]>
Reported-by: Peter Anvin <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Makefile

index 914e5f514888b6a2170ac9a137aa588c93af2f13..f9835c80a2746e7c6995ee9c3d04688822bb5576 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -886,7 +886,7 @@ $(vmlinux-dirs): prepare scripts
 # Store (new) KERNELRELASE string in include/config/kernel.release
 include/config/kernel.release: include/config/auto.conf FORCE
        $(Q)rm -f $@
-       $(Q)echo "$(KERNELVERSION)$$($(CONFIG_SHELL) scripts/setlocalversion $(srctree))" > $@
+       $(Q)echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))" > $@
 
 
 # Things we need to do before we recursively start building the kernel