Skip to contentSkip to conversation

Documentation: kbuild: note CONFIG_DEBUG_EFI in reproducible builds

PATCH In review Masahiro Yamada 2 participants 2 messages Jun 25, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: kbuild: note CONFIG_DEBUG_EFI in reproducible builds

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

---

 Documentation/kbuild/reproducible-builds.rst | 3 +++
 1 file changed, 3 insertions(+)
Documentation/kbuild/reproducible-builds.rst +3 -0
index f2dcc39044e6..7a16dbc275ca 100644
@@ -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` embeds absolute paths in
+object files. Such options should be disabled.
+
 Generated files in source packages
 ----------------------------------
 
Signature · 1 line
2.43.0
reviewer
#1 lore raw

Hi,

Quoted 16 lines · Masahiro Yamada

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

---

 Documentation/kbuild/reproducible-builds.rst | 3 +++
 1 file changed, 3 insertions(+)
Documentation/kbuild/reproducible-builds.rst +0 -0
index f2dcc39044e6..7a16dbc275ca 100644

Documentation/kbuild/reproducible-builds.rst supported. · line 64

Quoted 4 lines
Documentation/kbuild/reproducible-builds.rst +1 -0
@@ -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` embeds absolute paths in

options embed

Quoted 5 lines
Documentation/kbuild/reproducible-builds.rst +2 -0
+object files. Such options should be disabled.
+
 Generated files in source packages
 ----------------------------------
 
Signature · 1 line
~Randy