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

本文共 1435 字,大约阅读时间需要 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    
#find $UBOOT/arch/arm/cpu/arm920t/ -name cpu.c >>  $UBOOT/cscope.files    
#find $UBOOT/arch/arm/cpu/arm920t/ -name interrupts.c >>  $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 al#ways need to launch Vim in the same directory as the database.
export CSCOPE_DB=$UBOOT/cscope.out
#export CSCOPE_DB

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

你可能感兴趣的文章
N1 技术心得 2019-6-26
查看>>
N1-环境配置
查看>>
N2-审计方法与步骤
查看>>
N3-常见的INI配置
查看>>
代码审计 N4 常见危险函数和特殊函数(一)
查看>>
MySQL笔记
查看>>
计算机运算方法之(原码 补码 反码 移码)
查看>>
计算机组成原理之(二进制与十进制互相转换,数的定点表示与浮点数表示)例题:设浮点数字长16位,其中阶码5位(含有1位阶符),尾数11位(含有1位数符)
查看>>
冒泡排序及其优化
查看>>
选择排序(java代码实现)
查看>>
插入排序
查看>>
哈夫曼树java代码实现
查看>>
快速排序
查看>>
vue路由高亮的两种方式
查看>>
vue router 报错: Uncaught (in promise) NavigationDuplicated {_name:""NavigationDuplicated"... 的解决方法
查看>>
vue跳转页面的两种方式
查看>>
存储器题目解析(持续更新中....)
查看>>
存储器知识要点
查看>>
Cache模拟器的实现
查看>>
实验2:MIPS指令系统和MIPS体系结构
查看>>