From: Mattia Dongili Date: Sun, 19 Feb 2006 12:50:37 +0000 (+0100) Subject: kbuild: fix a cscope bug (make cscope segfaults) X-Git-Tag: v2.6.17-rc1~733^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f558c333445a0181f33f9e6f996ce7cf008206a;p=platform%2Fkernel%2Flinux-3.10.git kbuild: fix a cscope bug (make cscope segfaults) Workaround a cscope bug where a trailing ':' in VPATH makes it segfault and let it build the cross-reference succesfully. VPATH=/home/mattia/devel/kernel/git/linux-2.6: cscope -b [1] 17555 segmentation fault VPATH=/home/mattia/devel/kernel/git/linux-2.6: cscope -b Signed-off-by: Mattia Dongili Signed-off-by: Sam Ravnborg --- diff --git a/Makefile b/Makefile index a55a1e4..7a95f4f 100644 --- a/Makefile +++ b/Makefile @@ -137,7 +137,7 @@ objtree := $(CURDIR) src := $(srctree) obj := $(objtree) -VPATH := $(srctree):$(KBUILD_EXTMOD) +VPATH := $(srctree)$(if $(KBUILD_EXTMOD),:$(KBUILD_EXTMOD)) export srctree objtree VPATH TOPDIR