Use file-prefix-map, and use reproducible_sysdir for the replacementpath rather than the real sysdir.
This is the kernel space complement to D28764.
dan.mcgregor_usask.ca on Feb 18 2021, 12:26 AM.Authored by
There are a few more, mostly to do with generated files containing full paths that escape. They're coming too.
This one is kinda ugly, and I can see improvements already, like this review doesn't use compiler features at all.
It also doesn't handle out of tree kernel module builds.