Page MenuHomeFreeBSD

RFC: Use file-prefix-map to lie about kernel build paths
Needs ReviewPublic

Authored by dan.mcgregor_usask.ca on Feb 18 2021, 12:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 4, 3:00 AM
Unknown Object (File)
Fri, Apr 3, 6:55 AM
Unknown Object (File)
Tue, Mar 10, 7:18 PM
Unknown Object (File)
Feb 28 2026, 12:49 AM
Unknown Object (File)
Jan 27 2026, 2:58 PM
Unknown Object (File)
Jan 1 2026, 5:24 AM
Unknown Object (File)
Dec 22 2025, 8:20 PM
Unknown Object (File)
Nov 25 2025, 9:22 AM
Subscribers

Details

Summary

Use file-prefix-map, and use reproducible_sysdir for the replacementpath rather than the real sysdir.

This is the kernel space complement to D28764.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 37146
Build 34035: arc lint + arc unit

Event Timeline

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.