diff mbox series

Documentation: kbuild: Add initramfs into reproducible builds document

Message ID 20201012093530.10690-1-jouni.hogander@unikie.com (mailing list archive)
State New, archived
Headers show
Series Documentation: kbuild: Add initramfs into reproducible builds document | expand

Commit Message

jouni.hogander@unikie.com Oct. 12, 2020, 9:35 a.m. UTC
From: Jouni Hogander <jouni.hogander@unikie.com>

Initramfs configuration has impact on build being reproducible

Signed-off-by: Jouni Hogander <jouni.hogander@unikie.com>
---
 Documentation/kbuild/reproducible-builds.rst | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/Documentation/kbuild/reproducible-builds.rst b/Documentation/kbuild/reproducible-builds.rst
index 3b25655e441b..559700531a48 100644
--- a/Documentation/kbuild/reproducible-builds.rst
+++ b/Documentation/kbuild/reproducible-builds.rst
@@ -119,6 +119,14 @@  To avoid this, you can make the vDSO different for different
 kernel versions by including an arbitrary string of "salt" in it.
 This is specified by the Kconfig symbol ``CONFIG_BUILD_SALT``.
 
+Initial RAM Filesystem
+----------------------
+
+If ``CONFIG_BLK_DEV_INITRD`` is enabled and ``CONFIG_INITRAMFS_SOURCE``
+doesn't contain gzipped cpio archive, an initramfs is generated during
+build. To avoid this provide gzipped cpio archive via
+``CONFIG_INITRAMFS_SOURCE``
+
 .. _KBUILD_BUILD_TIMESTAMP: kbuild.html#kbuild-build-timestamp
 .. _KBUILD_BUILD_USER and KBUILD_BUILD_HOST: kbuild.html#kbuild-build-user-kbuild-build-host
 .. _KCFLAGS: kbuild.html#kcflags