|author||Paul Kocialkowski <email@example.com>||2015-07-26 18:48:15 +0200|
|committer||Tom Rini <firstname.lastname@example.org>||2015-07-27 15:03:14 -0400|
Reproducible U-Boot build support, using SOURCE_DATE_EPOCH
In order to achieve reproducible builds in U-Boot, timestamps that are defined at build-time have to be somewhat eliminated. The SOURCE_DATE_EPOCH environment variable allows setting a fixed value for those timestamps. Simply by setting SOURCE_DATE_EPOCH to a fixed value, a number of targets can be built reproducibly. This is the case for e.g. sunxi devices. However, some other devices might need some more tweaks, especially regarding the image generation tools. Signed-off-by: Paul Kocialkowski <email@example.com>
Diffstat (limited to 'README')
1 files changed, 12 insertions, 0 deletions
@@ -5081,6 +5081,18 @@ This firmware often needs to be loaded during U-Boot booting.
Define minimum DDR size to be hided from top of the DDR memory
+In order to achieve reproducible builds, timestamps used in the U-Boot build
+process have to be set to a fixed value.
+This is done using the SOURCE_DATE_EPOCH environment variable.
+SOURCE_DATE_EPOCH is to be set on the build host's shell, not as a configuration
+option for U-Boot or an environment variable in U-Boot.
+SOURCE_DATE_EPOCH should be set to a number of seconds since the epoch, in UTC.
Building the Software: