summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-12-18 18:12:26 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-06-22 07:53:36 +0200
commit683930e9e075fe09a6afa6ce95b89080042b3a24 (patch)
tree9108afaa6d6e7a50a7dd61372f7da475d6ab75ed
parent3b7a35e506275e629476563d929e2bb13d5888be (diff)
downloadOSELAS.Toolchain-683930e9e075fe09a6afa6ce95b89080042b3a24.tar.gz
Makefile: generate deterministic dist archives
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index be9c11b..df3f95b 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,7 @@ dist: dirty-check
git archive "$(v)" --prefix="$(project)"/ > "${project}.tar"
mkdir -p "${project}"
echo -n "${version}" > "${project}/.tarball-version"
+ touch --date="$$(git log -1 --format="%cI")" "${project}/.tarball-version"
tar -rf "${project}.tar" \
"${project}/.tarball-version"