I wrote an answer earlier. Now I have come up with all the details of the solution and would like to share it. Unfortunately, stackoverflow does not allow me to edit the previous answer. Therefore, I am writing this in this new answer.
It includes several steps.
[1] The first step is to modify the linux scripts to leave the define files. By default, after they are used in the assembly, these deletion files are deleted. These dep files contain accurate dependency information that other files depend on. We need them to create a list of all the files involved in the assembly. Thus, modify the files under linux-xyz / scripts so that they do not delete the depot files:
linux-3.1.2/scripts Kbuild.include: echo do_not_rm1 rm -f $(depfile); Makefile.build: echo do_not_rm2 rm -f $(depfile);
Other steps are described in detail in my github code project file https://github.com/minghuascode/Nbk/blob/master/note-nbkparse . About you:
[2] Customize using your customization method, but be sure to use the "O =" option to assemble the obj files in a separate directory.
[3] Then use the same option "O =" and "V = 1" to build linux and save the output to a file.
[4] Run my nbkparse script from the above github project. It does: [4.1] Read in the log file and depot files. Create a mirroring command. [4.2] Run the mirror command to hardlink the corresponding source files to a separate tree and create a make-log file for NetBeans.
Now create a NetBeans C project using the source mirror tree and the generated log file. NetBeans should be able to resolve all kernel characters. And you will see only the files involved in the assembly.
minghua
source share