Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a6402a0 authored by Matthias Maennich's avatar Matthias Maennich
Browse files

Revert "ANDROID: Revert "kheaders: make headers archive reproducible""



This reverts commit 35e8b5100df4b80a440c3137d57a299970135eaa.

The revert of the original commit had been partially done by merging
5.4-rc4, this is the left over piece to get back to the mainline version.

Change-Id: I9e82048210062fd7ae0eb918167e4607009487c4
Signed-off-by: default avatarMatthias Maennich <maennich@google.com>
parent feaba17c
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -16,16 +16,21 @@ the kernel may be unreproducible, and how to avoid them.
Timestamps
----------

The kernel embeds a timestamp in two places:
The kernel embeds timestamps in three places:

* The version string exposed by ``uname()`` and included in
  ``/proc/version``

* File timestamps in the embedded initramfs

By default the timestamp is the current time.  This must be overridden
using the `KBUILD_BUILD_TIMESTAMP`_ variable.  If you are building
from a git commit, you could use its commit date.
* If enabled via ``CONFIG_IKHEADERS``, file timestamps of kernel
  headers embedded in the kernel or respective module,
  exposed via ``/sys/kernel/kheaders.tar.xz``

By default the timestamp is the current time and in the case of
``kheaders`` the various files' modification times. This must
be overridden using the `KBUILD_BUILD_TIMESTAMP`_ variable.
If you are building from a git commit, you could use its commit date.

The kernel does *not* use the ``__DATE__`` and ``__TIME__`` macros,
and enables warnings if they are used.  If you incorporate external