diff options
author | Dan Li <ashimida@linux.alibaba.com> | 2022-10-20 13:38:23 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-10-27 18:16:29 +0300 |
commit | 114ff6fe6cfbe81659f9e517d0b25f53db5dfc5d (patch) | |
tree | d51a81f85b587b7affb2fc34f358fe6ce7bc8c6d /Documentation/kbuild | |
parent | 5c1df62ca65936139a4b008561110d9fc285c58a (diff) | |
download | linux-114ff6fe6cfbe81659f9e517d0b25f53db5dfc5d.tar.xz |
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: Dan Li <ashimida@linux.alibaba.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'Documentation/kbuild')
-rw-r--r-- | Documentation/kbuild/reproducible-builds.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/kbuild/reproducible-builds.rst b/Documentation/kbuild/reproducible-builds.rst index 071f0151a7a4..f2dcc39044e6 100644 --- a/Documentation/kbuild/reproducible-builds.rst +++ b/Documentation/kbuild/reproducible-builds.rst @@ -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 |