1 From: Ben Hutchings <ben@decadent.org.uk>
2 Subject: Make mkcompile_h accept an alternate timestamp string
3 Date: Tue, 12 May 2015 19:29:22 +0100
6 We want to include the Debian version in the utsname::version string
7 instead of a full timestamp string. However, we still need to provide
8 a standard timestamp string for gen_initramfs_list.sh to make the
9 kernel image reproducible.
11 Make mkcompile_h use $KBUILD_BUILD_VERSION_TIMESTAMP in preference to
12 $KBUILD_BUILD_TIMESTAMP.
14 --- a/scripts/mkcompile_h
15 +++ b/scripts/mkcompile_h
16 @@ -37,10 +37,14 @@ else
17 VERSION=$KBUILD_BUILD_VERSION
20 -if [ -z "$KBUILD_BUILD_TIMESTAMP" ]; then
22 +if [ -z "$KBUILD_BUILD_VERSION_TIMESTAMP" ]; then
23 + if [ -z "$KBUILD_BUILD_TIMESTAMP" ]; then
26 + TIMESTAMP=$KBUILD_BUILD_TIMESTAMP
29 - TIMESTAMP=$KBUILD_BUILD_TIMESTAMP
30 + TIMESTAMP=$KBUILD_BUILD_VERSION_TIMESTAMP
32 if test -z "$KBUILD_BUILD_USER"; then
33 LINUX_COMPILE_BY=$(whoami | sed 's/\\/\\\\/')