]>
Commit | Line | Data |
---|---|---|
59d5af67 | 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
ba2f1a67 | 2 | From: Ben Hutchings <ben@decadent.org.uk> |
ba2f1a67 | 3 | Date: Tue, 12 May 2015 19:29:22 +0100 |
59d5af67 | 4 | Subject: [PATCH] Make mkcompile_h accept an alternate timestamp string |
b9e76370 FG |
5 | MIME-Version: 1.0 |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
ba2f1a67 FG |
8 | |
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. | |
13 | ||
14 | Make mkcompile_h use $KBUILD_BUILD_VERSION_TIMESTAMP in preference to | |
15 | $KBUILD_BUILD_TIMESTAMP. | |
16 | ||
b9e76370 | 17 | Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> |
ff71f8b9 | 18 | Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com> |
b9e76370 FG |
19 | --- |
20 | scripts/mkcompile_h | 10 +++++++--- | |
21 | 1 file changed, 7 insertions(+), 3 deletions(-) | |
22 | ||
23 | diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h | |
4fce1205 | 24 | index a72b154de7b0..4dd111086466 100755 |
ba2f1a67 FG |
25 | --- a/scripts/mkcompile_h |
26 | +++ b/scripts/mkcompile_h | |
b9aab028 | 27 | @@ -24,10 +24,14 @@ else |
ba2f1a67 FG |
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/\\/\\\\/') |