Commit 114ff6fe authored by Dan Li's avatar Dan Li Committed by Masahiro Yamada

Documentation: kbuild: Add description of git for reproducible builds

The status of git will affect the final compilation result, add it to
the documentation of reproducible builds.
Signed-off-by: default avatarDan Li <ashimida@linux.alibaba.com>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 5c1df62c
......@@ -119,6 +119,16 @@ 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``.
Git
---
Uncommitted changes or different commit ids in git can also lead
to different compilation results. For example, after executing
``git reset HEAD^``, even if the code is the same, the
``include/config/kernel.release`` generated during compilation
will be different, which will eventually lead to binary differences.
See ``scripts/setlocalversion`` for details.
.. _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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment