Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22004

Preprocess the Linux source code and save to another directory

$
0
0

Suppose I have the entire Linux source code in /tmp/linux-src. After menuconfig I want to do "some kind of gcc -E" where all the preprocessor macros other than #include are expanded so the actual configured preprocessed source code (for compilation) will be saved in /tmp/linux-src-to-compile - not in single file but rather keeping the whole tree structure leaving out the files that are not needed. Is this kind of trickery possible? Is it also possible when prepping for cross-compilation?

Thanks


Viewing all articles
Browse latest Browse all 22004

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>