summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2019-01-29 17:02:31 +0100
committerStefan Agner <stefan.agner@toradex.com>2019-01-29 17:02:31 +0100
commit3d3a0bf9faff855bb4bc0b17611036d3cfbc7ff9 (patch)
treed78efe93727829f31986af5864928a026b740d43 /conf
parentb1db05a11a66ab03714863a940604a7af531e996 (diff)
downloadmeta-updater-3d3a0bf9faff855bb4bc0b17611036d3cfbc7ff9.tar.gz
sota.conf: use reproducible builds by default
Use reproducible builds by default. OSTree sets mtime to 0 at commit time anyway. This makes sure that all mtime timestamps are 0 already at build time. This is relevant for programs which relies on mtime of deployed artifacts at runtime. Python for instance writes the mtime of the source file into bytecode files (pyc) at build time. When OSTree then clears the mtime Python considers all bytecode files as stale. Reproducible binaries also avoid unnecessary differences between two OSTree commits. E.g. if the sstate cache is cleared between two OSTree commits OpenEmbedded might create slightly different binaries. Note however that not all all recipe generate reproducible binaries at this time. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'conf')
-rw-r--r--conf/distro/sota.conf.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/conf/distro/sota.conf.inc b/conf/distro/sota.conf.inc
index 8de9597..f6111bf 100644
--- a/conf/distro/sota.conf.inc
+++ b/conf/distro/sota.conf.inc
@@ -10,4 +10,10 @@ INHERIT += " sota"
10# Prelinking increases the size of downloads and causes build errors 10# Prelinking increases the size of downloads and causes build errors
11USER_CLASSES_remove = "image-prelink" 11USER_CLASSES_remove = "image-prelink"
12 12
13# Enable reproducible builds. Use 0 as mtime, the same as OSTree is using.
14INHERIT += "reproducible_build_simple"
15
16export SOURCE_DATE_EPOCH ?= "0"
17REPRODUCIBLE_TIMESTAMP_ROOTFS ?= "0"
18
13HOSTTOOLS_append = " sync sha256sum" 19HOSTTOOLS_append = " sync sha256sum"