1 From 8e8e48c6f1ec020ff47f50aa49acab6c850cc70e Mon Sep 17 00:00:00 2001
2 From: Ben Hutchings <ben@decadent.org.uk>
3 Date: Tue, 12 May 2015 19:29:22 +0100
4 Subject: [PATCH 001/241] Make mkcompile_h accept an alternate timestamp string
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 We want to include the Debian version in the utsname::version string
10 instead of a full timestamp string. However, we still need to provide
11 a standard timestamp string for gen_initramfs_list.sh to make the
12 kernel image reproducible.
14 Make mkcompile_h use $KBUILD_BUILD_VERSION_TIMESTAMP in preference to
15 $KBUILD_BUILD_TIMESTAMP.
17 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
19 scripts/mkcompile_h | 10 +++++++---
20 1 file changed, 7 insertions(+), 3 deletions(-)
22 diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h
23 index fd8fdb91581d..1e35ac9fc810 100755
24 --- a/scripts/mkcompile_h
25 +++ b/scripts/mkcompile_h
26 @@ -37,10 +37,14 @@ else
27 VERSION=$KBUILD_BUILD_VERSION
30 -if [ -z "$KBUILD_BUILD_TIMESTAMP" ]; then
32 +if [ -z "$KBUILD_BUILD_VERSION_TIMESTAMP" ]; then
33 + if [ -z "$KBUILD_BUILD_TIMESTAMP" ]; then
36 + TIMESTAMP=$KBUILD_BUILD_TIMESTAMP
39 - TIMESTAMP=$KBUILD_BUILD_TIMESTAMP
40 + TIMESTAMP=$KBUILD_BUILD_VERSION_TIMESTAMP
42 if test -z "$KBUILD_BUILD_USER"; then
43 LINUX_COMPILE_BY=$(whoami | sed 's/\\/\\\\/')