0

I'd like to generate a minimal source code of the Linux kernel that would pass make allnoconfig. I managed to build a sample that only contains files used in the compilation process, but would now like to shrink that list. I know I can specify a custom preprocessor in the build process. The question is: how to preprocess C files so that all of the code would be copied verbatim, expect for #ifdefs which would be parsed and expanded - or skipped if the condition is not met?

d33tah
  • 10,999
  • 13
  • 68
  • 158

0 Answers0