[PATCH v2] Documentation: kbuild: note CONFIG_DEBUG_EFI in reproducible builds
From: Nicolas Schier
Date: Wed Sep 24 2025 - 15:48:17 EST
From: Masahiro Yamada <masahiroy@xxxxxxxxxx>
CONFIG_EFI_DEBUG embeds absolute file paths into object files, which
makes the resulting vmlinux specific to the build environment.
Add a note about this in reproducible-builds.rst
Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
Signed-off-by: Nicolas Schier <nsc@xxxxxxxxxx>
---
Changes in v2:
* Fixed a grammar typo (Randy)
* v1: https://lore.kernel.org/linux-kbuild/20250625125809.2504963-1-masahiroy@xxxxxxxxxx
---
Documentation/kbuild/reproducible-builds.rst | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/kbuild/reproducible-builds.rst b/Documentation/kbuild/reproducible-builds.rst
index f2dcc39044e66ddd165646e0b51ccb0209aca7dd..96d208e578cd53d3f0c4a24ec983a9179260345d 100644
--- a/Documentation/kbuild/reproducible-builds.rst
+++ b/Documentation/kbuild/reproducible-builds.rst
@@ -61,6 +61,9 @@ supported.
The Reproducible Builds web site has more information about these
`prefix-map options`_.
+Some CONFIG options such as `CONFIG_DEBUG_EFI` embed absolute paths in
+object files. Such options should be disabled.
+
Generated files in source packages
----------------------------------
---
base-commit: cec1e6e5d1ab33403b809f79cd20d6aff124ccfe
change-id: 20250924-kbuild-doc-config-debug-efi-in-reproducible-builds-eb7489a8d185
Best regards,
--
Nicolas