2018-01-15 11:26:15 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2017-03-15 13:43:11 +00:00
|
|
|
From: Ben Hutchings <ben@decadent.org.uk>
|
|
|
|
Date: Tue, 12 May 2015 19:29:22 +0100
|
2018-01-15 11:26:15 +00:00
|
|
|
Subject: [PATCH] Make mkcompile_h accept an alternate timestamp string
|
2017-09-14 09:31:29 +00:00
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: 8bit
|
2017-03-15 13:43:11 +00:00
|
|
|
|
|
|
|
We want to include the Debian version in the utsname::version string
|
|
|
|
instead of a full timestamp string. However, we still need to provide
|
|
|
|
a standard timestamp string for gen_initramfs_list.sh to make the
|
|
|
|
kernel image reproducible.
|
|
|
|
|
|
|
|
Make mkcompile_h use $KBUILD_BUILD_VERSION_TIMESTAMP in preference to
|
|
|
|
$KBUILD_BUILD_TIMESTAMP.
|
|
|
|
|
2017-09-14 09:31:29 +00:00
|
|
|
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
2019-03-11 13:47:24 +00:00
|
|
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
2017-09-14 09:31:29 +00:00
|
|
|
---
|
|
|
|
scripts/mkcompile_h | 10 +++++++---
|
|
|
|
1 file changed, 7 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h
|
2020-03-09 11:58:18 +00:00
|
|
|
index d1d757c6edf4..7b57571cf574 100755
|
2017-03-15 13:43:11 +00:00
|
|
|
--- a/scripts/mkcompile_h
|
|
|
|
+++ b/scripts/mkcompile_h
|
2020-03-09 11:58:18 +00:00
|
|
|
@@ -34,10 +34,14 @@ else
|
2017-03-15 13:43:11 +00:00
|
|
|
VERSION=$KBUILD_BUILD_VERSION
|
|
|
|
fi
|
|
|
|
|
|
|
|
-if [ -z "$KBUILD_BUILD_TIMESTAMP" ]; then
|
|
|
|
- TIMESTAMP=`date`
|
|
|
|
+if [ -z "$KBUILD_BUILD_VERSION_TIMESTAMP" ]; then
|
|
|
|
+ if [ -z "$KBUILD_BUILD_TIMESTAMP" ]; then
|
|
|
|
+ TIMESTAMP=`date`
|
|
|
|
+ else
|
|
|
|
+ TIMESTAMP=$KBUILD_BUILD_TIMESTAMP
|
|
|
|
+ fi
|
|
|
|
else
|
|
|
|
- TIMESTAMP=$KBUILD_BUILD_TIMESTAMP
|
|
|
|
+ TIMESTAMP=$KBUILD_BUILD_VERSION_TIMESTAMP
|
|
|
|
fi
|
|
|
|
if test -z "$KBUILD_BUILD_USER"; then
|
|
|
|
LINUX_COMPILE_BY=$(whoami | sed 's/\\/\\\\/')
|