Any mechanism to copy only required u-boot source code to a folder?

100 views Asked by At

I'm going through the u-boot source code and it has many arch and vendor's code. Also it has the source code with pre-processor directive as "#ifdef" etc.

I want to filter/extract the code based on my u-boot configuration. There should be some way to tell the compiler so it can copy only the source code (to a new folder) which will be the part of my executable.

If it's possible then it will be easy to go through the source code and understand the code flow.

Is there any tool or compiler option available for this?

Thanks, Hardik

1

There are 1 answers

0
Hardik On

I just looked into the Yocto WORKDIR so it's having only required files in this directory so now it would be easy to go through the code.

These are object files but based on file names I can refer the c files.