Add makefile, kconfig, and *. s file support for sourceinsight

Source: Internet
Author: User

Address: http://www.cnblogs.com/myblesh/articles/2452030.html

When you use source insight to view the Linux source code, you have encountered such a problem. The text in makefile and kconfig cannot be found during the search. This is because source insight does not select makefile by default, no files of the konfig type. The following describes how to add makefile: Open Source insight, and enter
Options-> document options-> click the document type drop-down box and select make file. In the file filter on the right, in the original *. add a semicolon after the Mak, that is, multiple different filtering rules are separated by semicolons, and add * makefile *. mak; * makefile, and select include when adding to projects. In this way, when a new project is created later (The makefile will be available under synchronization of the current project ), you can identify makefile or makefile (as if source insight is not case sensitive ). How to add kconfig: Because kconfig is a format not supported by sourceinsight by default, we need to add a type first.
Click Add type, enter the name kconfig of the new file type, and write * kconfig in file filter. It is best to add kconfig * (because in Linux, some kconfig uses kconfig. * Format). Select include when adding to projects. A new file type is created. When a new project is added to a file, the system can identify the kconfig file. // ================================================ =====
Define the function in assembly. I checked it online and found that the *. s file was not added to the Change project. To use source insight to search for the. s Assembly file, you must add the file. Method: 1. Set Source insight before creating a project. The settings are as follows: Options-> document options-> doucment types-> select x86 assemble and enter *. s in the file filter on the right. In this way, you can add *. s in the folder when adding a file. 2. If you have already created a project and want to add the *. s file. Open the created Project, options-> document options-> doucment types-> select x86 assemble, and enter *. s in file filter on the right. Project --> add and remove project files, and then add all the folders of the project again *. s file added (Note: The original *. C and other files will not be added again), and then rebuild again.
 
Also, Si's default Assembly file suffix does not support. s, so to support arm assembly files, you also need to change the file filter.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.