I'm compiling third-party kernel modules. Their build system goes to
/usr/src/linux-headers-[version] (of a custom kernel chroot) and runs
make from there.
I want to find out, which files - sources and headers - have been used for the compilation, and which have not. Standard
*.d files for each compiled source, and I'd like to use that... but these files are deleted after short processing. (That is
rule_cc_o_c definition in
What could be a way to collect these files with minimal modifications to the standard build system?