]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
kbuild: fix build with O=..
authorSam Ravnborg <sam@mars.ravnborg.org>
Sat, 21 Jan 2006 11:07:56 +0000 (12:07 +0100)
committerSam Ravnborg <sam@mars.ravnborg.org>
Sat, 21 Jan 2006 11:07:56 +0000 (12:07 +0100)
.kernelrelease was saved in same directory as kernel source also
with make O=...
Make sure we kick in the normal logic to shift to the output directory
when we build .kernelrelease after executing *config.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---

Makefile

index 252a659896f32c99d96c60dd5ba849e82bd5a17b..31bbc6ab3b8ad5e0b74915983f6483fc9e3a86a5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -442,7 +442,7 @@ export KBUILD_DEFCONFIG
 config %config: scripts_basic outputmakefile FORCE
        $(Q)mkdir -p include/linux
        $(Q)$(MAKE) $(build)=scripts/kconfig $@
-       $(Q)$(MAKE) .kernelrelease
+       $(Q)$(MAKE) -C $(srctree) KBUILD_SRC= .kernelrelease
 
 else
 # ===========================================================================