diff options
author | Jo-Philipp Wich <jo@mein.io> | 2016-10-04 18:33:55 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2016-10-05 00:45:59 +0200 |
commit | 5d86dc791ef17b4a5733f836cbf82bb6647cd54a (patch) | |
tree | 854097505f2a06e1edf076a1c9685c87829fe797 /target/linux/zynq/Makefile | |
parent | 8462ec31345fdf9adde0faeb5096cb56d3165905 (diff) | |
download | upstream-5d86dc791ef17b4a5733f836cbf82bb6647cd54a.tar.gz upstream-5d86dc791ef17b4a5733f836cbf82bb6647cd54a.tar.bz2 upstream-5d86dc791ef17b4a5733f836cbf82bb6647cd54a.zip |
include/download.mk: generate reproducable SCM tarballs
Apply a number of changes to the tarball generation in order to produce
identical files on different systems:
1) Use an explicit `gzip -cn` to avoid storing file mtime in the gzip header
2) Instruct `tar` to unconditionally use uid and gid 0 for archive members
3) Instruct `tar` to sort archive members by file name
4) For SCMs that do not preserve file modification times like Git or Mercurial,
use the date of the last commit to the repository and pass it as `--mtime`
value to `tar`
After these changes, locally produced tarballs generated from SCM checkouts
should be identical on any system, simplifying the mirroring of cache archives.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'target/linux/zynq/Makefile')
0 files changed, 0 insertions, 0 deletions