下面的方法用于追加Kconfig到cscope中.

~/.bashrc 文件里追加:
function kconfig-cscope()
 { 

     find -L . -name "Kconfig*" -not -wholename "*\.pc*" -not -wholename "*\.svn*" > kconfig.cscope.files 

     cscope -bi kconfig.cscope.files -f kconfig.cscope.out 

 }


另外修改/etc/vimrc:

if has("cscope") && filereadable("/usr/bin/cscope")
    set csprg=/usr/bin/cscope
    set csto=0
    set cst
    set nocsverb
    " add any database in current directory
    if filereadable("cscope.out")
       cs add cscope.out
    " else add database pointed to by environment
    elseif $CSCOPE_DB != ""
       cs add $CSCOPE_DB
    endif
    if filereadable("kconfig.cscope.out")
       cs add kconfig.cscope.out
    endif
    set csverb
 endif

用于追加kconfig.cscope.out.