Page MenuHomeFreeBSD

sys/conf: Remap paths for reproducibility
Needs ReviewPublic

Authored by markj on Fri, Jun 20, 5:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jul 7, 11:33 AM
Unknown Object (File)
Sun, Jul 6, 9:57 AM
Unknown Object (File)
Sat, Jul 5, 11:55 PM
Unknown Object (File)
Sat, Jul 5, 8:32 AM
Unknown Object (File)
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
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