From dc47b733e66efd0d5af4953ba33a5877e3e54b8f Mon Sep 17 00:00:00 2001 From: emaste Date: Wed, 25 Jan 2017 01:04:51 +0000 Subject: Add WITH_REPRODUCIBLE_BUILD src.conf(5) knob MFC r310128: Add WITH_REPRODUCIBLE_BUILD src.conf(5) knob to disable kernel metadata The kernel builds reproducibly, except for the time, date, user, and hostname baked into the kernel (reported at startup and via the kern.version sysctl for uname). Add a build knob to disable the inclusion of this metadata. MFC r310268: Build loaders reproducibly when WITH_REPRODUCIBLE_BUILD When WITH_REPRODUCIBLE_BUILD=yes is set in src.conf(5), eliminate the time, user, and host from the loader's version information. This allows builds to produce bit-for-bit identical output. --- tools/build/options/WITH_REPRODUCIBLE_BUILD | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tools/build/options/WITH_REPRODUCIBLE_BUILD (limited to 'tools/build') diff --git a/tools/build/options/WITH_REPRODUCIBLE_BUILD b/tools/build/options/WITH_REPRODUCIBLE_BUILD new file mode 100644 index 0000000..5870051 --- /dev/null +++ b/tools/build/options/WITH_REPRODUCIBLE_BUILD @@ -0,0 +1,4 @@ +$FreeBSD$ +Set to exclude build metadata (such as the build time, user, or host) +from the kernel, boot loaders, and uname output, so that builds produce +bit-for-bit identical output. -- cgit v1.1