build system: have tar use $SOURCE_DATE_EPOCH for --mtime
authorFelix Fietkau <nbd@openwrt.org>
Sun, 31 Jan 2016 23:29:16 +0000 (23:29 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 31 Jan 2016 23:29:16 +0000 (23:29 +0000)
commita9eb4b004052e7b8e3ad5d9f33db8d45a2f15127
tree6a523482e166fcbe3e388d475b030d5cfe67d097
parent9e9a1d490b501aaf2243defc17bbb987f4deb75c
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>
SVN-Revision: 48586
include/image.mk
include/kernel-build.mk
scripts/sysupgrade-nand.sh