Source Insight新建工程文件

options->document options ->document type ->c source file 下
//添加 “.S”结尾的汇编语言支持
 
project ->new project // 建立工程 linux-2.6.22.6 存放到下面的目录中
//然后选择工程目录 D:kernel_projectsc (新建sc文件夹)
//指定内核源码位置 d:kernel_projectlinux-2.6.22.6 (自己复制进去)
Add all
//在 add to project 勾选 include top level sub-directories 添加子目录中的文件
Recursively add lower sub-directoris 递归的加入底层的子目录
//然后移除不必要的文件
project ->add and remove project files
Remove Tree
1. arch 目录下除arm外的所以子目录;
2. arch/arm 目录下以 mach- 开头的目录(mach-s3c2410、mach-s3c2440除外);
3. arch/arm 目录下以 plat- 开头的目录(plat-s3c24xx除外);
4. include 目录下以 asm- 开头的目录 (asm-arm 、asm-generic除外);
5. include/asm-arm 目录下以 arch- 开头的目录(arch-s3c2410除外);
//设置完成后,建立数据库
project -> synchronize files 勾选 force all files to be re-parsed
 
 
【摘抄】嵌入式Linux 完全手册(韦东山)
原文地址:https://www.cnblogs.com/Hello-words/p/5837570.html