build system: have tar use $SOURCE_DATE_EPOCH for --mtime
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 31 Jan 2016 23:29:16 +0000 (23:29 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 31 Jan 2016 23:29:16 +0000 (23:29 +0000)
commit21ca3572a0c2e3bb0c502eab13528407855985dc
tree6a523482e166fcbe3e388d475b030d5cfe67d097
parent97c4fcd1a8d92b1ffd02c8c5659f00d6b8bccf55
build system: have tar use $SOURCE_DATE_EPOCH for --mtime

The --mtime argument to 'tar' sets the modification time for all files within
the archive, which determines the timestamp files will get when they are
extracted. In this case, rootfs and other tarballs will get mtimes which
correspond to the last commit timestamp of the build system, as reported by
git/subversion.

This is a step towards reproducible image builds.

Signed-off-by: bryan newbold <bnewbold@robocracy.org>
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48586 3c298f89-4303-0410-b956-a3cf2f4a3e73
include/image.mk
include/kernel-build.mk
scripts/sysupgrade-nand.sh