Chinaunix首页 | 论坛 | 博客
  • 博客访问: 207432
  • 博文数量: 47
  • 博客积分: 72
  • 博客等级: 民兵
  • 技术积分: 171
  • 用 户 组: 普通用户
  • 注册时间: 2012-08-31 11:44
文章分类

全部博文(47)

文章存档

2015年(14)

2014年(5)

2013年(11)

2012年(17)

分类: LINUX

2013-06-28 22:18:25

cscope+ctags+global 的使用见下:
 
 
查看uboot代码:
以DSPG pnx8181芯片的u-boot的为例:
详细操作见下脚本:
 

#!/bin/bash

UBOOT=$PWD
#generate the cscope.files
find $UBOOT \
        -path "$UBOOT/board/*" ! -path "$UBOOT/board/firetux*" -prune -o \
        -path "$UBOOT/lib_*" ! \( -path "$UBOOT/lib_arm*" -o -path "$UBOOT/lib_generic*" \) -prune -o \
        -path "$UBOOT/cpu/*" ! -path "$UBOOT/cpu/arm926ejs*" -prune -o \
        -path "$UBOOT/include/asm-*" ! -path "$UBOOT/include/asm-arm*" -prune -o \
        -path "$UBOOT/include/asm-arm/arch-*" ! -path "$UBOOT/include/asm-arm/arch-arm926*" -prune -o \
        -path "$UBOOT/include/configs*" -prune -o \
        -name "*.[chsS]" -print > $UBOOT/cscope.files

find $UBOOT/include/configs/ -name firetux.h >> $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

文件: uboot.rar
大小: 0KB
下载: 下载

在linux下

source uboot文件即可在任意目录查看u-boot源码。

 

查看kernel代码脚本:
 
文件: kernel.tar.bz2
大小: 0KB
下载: 下载


 

阅读(2724) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~