summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2019-01-29 17:02:31 +0100
committerPatrick Vacek <patrickvacek@gmail.com>2019-02-15 12:23:41 +0100
commit8dc2b9f36aac199449a051e3f002ed49a987c9e8 (patch)
treeadc8fca33dfe5f3da6a84b79fc3499256f6588f7
parent29cec22cf93b435d4b7c0aa0c9fcac4633908e9e (diff)
downloadmeta-updater-8dc2b9f36aac199449a051e3f002ed49a987c9e8.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>
-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 ea1ca95..4f7547f 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"