博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
cscope.file and tags for uboot 2012.04
阅读量:3524 次
发布时间:2019-05-20

本文共 1341 字,大约阅读时间需要 4 分钟。

#!/bin/bash
UBOOT=$PWD
#generate the cscope.files
find $UBOOT \
    -path "$UBOOT/include/configs*"                                  -prune -o     \
    -path "$UBOOT/board/*"                                             -prune -o    \
    -path "$UBOOT/drivers/serial/*"                                    -prune -o    \
    -path "$UBOOT/nand_spl/*"                                         -prune -o    \
    -path "$UBOOT/onenand_ipl/*"                                     -prune -o    \
    -path "$UBOOT/doc/*"                                             -prune -o    \
    -path "$UBOOT/arch/arm/cpu/*"                                     -prune -o    \
    -path "$UBOOT/arch/arm/include/asm/*" ! -path "$UBOOT/arch/arm/include/asm/arch-s3c24x0*"    -prune -o    \
    -path "$UBOOT/arch/*" ! -path "$UBOOT/arch/arm*"                -prune -o    \
    -path "$UBOOT/examples/*"                                         -prune -o    \
    -path "$UBOOT/tools/*"                                             -prune -o    \
    -name "*.[chsS]" -print > $UBOOT/cscope.files
find $UBOOT/include/configs/ -name smdk2440.h >>  $UBOOT/cscope.files    
find $UBOOT/board/samsung/smdk2440/ -name "*.[chsS]" >>  $UBOOT/cscope.files    
find $UBOOT/drivers/serial/ -name serial_s3c24x0.c >>  $UBOOT/cscope.files    
find $UBOOT/arch/arm/cpu/arm920t/s3c24x0/ -name "*.[chsS]" >>  $UBOOT/cscope.files    
cscope -bkq -i $UBOOT/cscope.files
#generate the cppcomplete
ctags -n -f cppcomplete.tags --fields=+ai --C++-types=+p * -L $UBOOT/cscope.files
#Try setting the $CSCOPE_DB environment variable to point to a Cscope database you create, so you won't always need to launch Vim in the same directory as the database.
#export CSCOPE_DB
export CSCOPE_DB=$UBOOT/cscope.out
#ctags use tags as defualt.
cp cppcomplete.tags tags

转载地址:http://mpuhj.baihongyu.com/

你可能感兴趣的文章
发布/订阅模式 vs 观察者模式
查看>>
es5中的arguments对象
查看>>
git本地仓库和远程仓库关联,分支重命名
查看>>
js对象的深拷贝,你真的觉得很简单吗?
查看>>
你真的了解map方法吗?手动实现数组map方法。
查看>>
带你手动实现call方法,让你收获满满
查看>>
前端知识体系
查看>>
查找入职员工时间排名倒数第三的员工所有信息
查看>>
使用join查询方式找出没有分类的电影id以及名称
查看>>
Qt教程(2) : Qt元对象系统
查看>>
驱动开发误用指针错误:Unable to handle kernel NULL pointer dereference at virtual address
查看>>
Linux部署DocSystem知识/文件管理系统
查看>>
Centos7开机自启动脚本无法使用备用方案
查看>>
jvm虚拟机内存详解
查看>>
线程的创建方式
查看>>
DNS是什么
查看>>
mapreduce自定义分组、自定义分区、二次排序
查看>>
Hbase架构
查看>>
spark运行模式
查看>>
PaddleX的C++使用
查看>>