Page MenuHomeFreeBSD

sys/conf: Remap paths for reproducibility
Needs ReviewPublic

Authored by markj on Fri, Jun 20, 5:13 PM.
Tags
None
Referenced Files
F122437549: D50953.id.diff
Sat, Jul 5, 8:32 AM
F122395793: D50953.id157387.diff
Fri, Jul 4, 11:46 PM
Unknown Object (File)
Mon, Jun 30, 9:31 PM
Unknown Object (File)
Mon, Jun 30, 12:51 PM
Unknown Object (File)
Mon, Jun 30, 12:18 PM
Unknown Object (File)
Sun, Jun 29, 12:32 AM
Unknown Object (File)
Sat, Jun 28, 12:23 AM
Unknown Object (File)
Thu, Jun 26, 8:10 PM
Subscribers
None

Details

Summary

As in bsd.lib.mk and bsd.prog.mk, we need to remap paths in the kernel
and in kernel modules when reproducible builds are configured. Add
directives to kern.post.mk and kmod.mk to remap the src, obj and sysroot
dirs.

For the sysroot, we need to pass the value of the SYSROOT variable to
the kernel makefiles, which involves changing Makefile.inc1. In so
doing I reverted a portion of commit 35fb812adfc21; I can't see any harm
in passing the SYSROOT variable down.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 64997
Build 61880: arc lint + arc unit