From: Mattia Dongili Date: Sun, 19 Feb 2006 12:50:37 +0000 (+0100) Subject: kbuild: fix a cscope bug (make cscope segfaults) X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0f558c333445a0181f33f9e6f996ce7cf008206a;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.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 a55a1e4e6cda..7a95f4f8ef14 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