Makefile: add '-n' to gzip invocations to improve reproducibility
authorJérôme Pouiller <jezz@sysmic.org>
Wed, 23 Nov 2016 12:58:42 +0000 (13:58 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 23 Nov 2016 21:55:24 +0000 (22:55 +0100)
commit9b91b21dae40d6db1c320a76cfdbabeedcb2d1c2
tree962e3c9db541cd74d46543bd5288f45607530268
parent9befe94baf990ee6331e77edb40e286e9dc4df8d
Makefile: add '-n' to gzip invocations to improve reproducibility

Default invocation to gzip include timestamp in output file. This feature is
incompatible with BR2_REPRODUCIBLE. It is possible to disable it with '-n'.

The environment variable GZIP can hold a set of default options for gzip. So
instead to find all gzip invocation in build process, we just export 'GZIP=-n'.

Notice bzip2, lzma and xz are not impacted by this problem. On the other hand, lzop
does include timestamp and does not provide any way to disable it.

This work was sponsored by `BA Robotic Systems'.

Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Makefile