(2011-10-12 16:44:47)html
转载▼linux
标签: 杂谈 |
分类: Linux |
让sourceinsight支持查看makefile、kconfig以及.s代码方法spa
在用sourceinsight查看linux内核源码的时候,你们会发现不能查看源码中的makefile和kconfig代码,即不能搜索到makefile和kconfig文件。这是由于source insight默认是不选makefile的,也没有konfig这种类型的文件。下面就说如何让sourceinsight支持查看makefile和kconfig代码:htm
(1)添加makefile:blog
进入Options -> Document Options-> 点击Document Type的下拉框,而后选择Make File,在右边的File Filter中,在原先的*.mak后面加上一个分号,即多个不一样过滤规则以分号间隔开,再加上*makefile,变成*.mak;*makefile,而且选中Include when adding to projects就好了。ci
(2)添加kconfig:get
点击 Add Type,填入新文件类型的名字kconfig,File Filter中写上*kconfig;kconfig*,再选中下面的Include when adding to projects就好了。源码
(3)添加支持.s:it
进入Options -> Document Options-> 点击Document Type的下拉框,而后选择x86 Asm Source File,在右边的File Filter中,在原先的*.asm;*.inc加上*.s和*.S,即变成*.asm;*.inc;*.s;*.S,而且选中Include when adding to projects就好了。io