path: root/Documentation/kbuild/reproducible-builds.rst
Commit message (Collapse)AuthorAgeFilesLines
* gcc-plugins: fix gcc-plugins directory path in documentationMasahiro Yamada2020-06-281-1/+1
| | | | | | | Fix typos "plgins" -> "plugins". Signed-off-by: Masahiro Yamada <> Acked-by: Kees Cook <>
* kheaders: make headers archive reproducibleDmitry Goldin2019-10-051-4/+9
| | | | | | | | | | | | | | | | | | | | | In commit 43d8ce9d65a5 ("Provide in-kernel headers to make extending kernel easier") a new mechanism was introduced, for kernels >=5.2, which embeds the kernel headers in the kernel image or a module and exposes them in procfs for use by userland tools. The archive containing the header files has nondeterminism caused by header files metadata. This patch normalizes the metadata and utilizes KBUILD_BUILD_TIMESTAMP if provided and otherwise falls back to the default behaviour. In commit f7b101d33046 ("kheaders: Move from proc to sysfs") it was modified to use sysfs and the script for generation of the archive was renamed to what is being patched. Signed-off-by: Dmitry Goldin <> Reviewed-by: Greg Kroah-Hartman <> Reviewed-by: Joel Fernandes (Google) <> Signed-off-by: Masahiro Yamada <>
* Documentation: kbuild: Add document about reproducible buildsBen Hutchings2019-09-151-0/+122
In the Distribution Kernels track at Linux Plumbers Conference there was some discussion around the difficulty of making kernel builds reproducible. This is a solved problem, but the solutions don't appear to be documented in one place. This document lists the issues I know about and the settings needed to ensure reproducibility. Signed-off-by: Ben Hutchings <> Acked-by: Masahiro Yamada <> Signed-off-by: Jonathan Corbet <>