]> git.proxmox.com Git - pve-kernel.git/blame_incremental - patches/kernel/0001-Make-mkcompile_h-accept-an-alternate-timestamp-strin.patch
ubdate sources and patches to Ubuntu-5.11.0-11.12
[pve-kernel.git] / patches / kernel / 0001-Make-mkcompile_h-accept-an-alternate-timestamp-strin.patch
... / ...
CommitLineData
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Ben Hutchings <ben@decadent.org.uk>
3Date: Tue, 12 May 2015 19:29:22 +0100
4Subject: [PATCH] Make mkcompile_h accept an alternate timestamp string
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9We want to include the Debian version in the utsname::version string
10instead of a full timestamp string. However, we still need to provide
11a standard timestamp string for gen_initramfs_list.sh to make the
12kernel image reproducible.
13
14Make mkcompile_h use $KBUILD_BUILD_VERSION_TIMESTAMP in preference to
15$KBUILD_BUILD_TIMESTAMP.
16
17Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
18Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
19---
20 scripts/mkcompile_h | 10 +++++++---
21 1 file changed, 7 insertions(+), 3 deletions(-)
22
23diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h
24index 4ae735039daf..5a1abe7b4169 100755
25--- a/scripts/mkcompile_h
26+++ b/scripts/mkcompile_h
27@@ -24,10 +24,14 @@ else
28 VERSION=$KBUILD_BUILD_VERSION
29 fi
30
31-if [ -z "$KBUILD_BUILD_TIMESTAMP" ]; then
32- TIMESTAMP=`date`
33+if [ -z "$KBUILD_BUILD_VERSION_TIMESTAMP" ]; then
34+ if [ -z "$KBUILD_BUILD_TIMESTAMP" ]; then
35+ TIMESTAMP=`date`
36+ else
37+ TIMESTAMP=$KBUILD_BUILD_TIMESTAMP
38+ fi
39 else
40- TIMESTAMP=$KBUILD_BUILD_TIMESTAMP
41+ TIMESTAMP=$KBUILD_BUILD_VERSION_TIMESTAMP
42 fi
43 if test -z "$KBUILD_BUILD_USER"; then
44 LINUX_COMPILE_BY=$(whoami | sed 's/\\/\\\\/')