From 28267c4f96f7963bd150f5c7a314d72711848ff6 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Tue, 12 May 2015 19:29:22 +0100 Subject: [PATCH] Make mkcompile_h accept an alternate timestamp string Forwarded: not-needed 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. Gbp-Pq: Topic debian Gbp-Pq: Name uname-version-timestamp.patch --- scripts/mkcompile_h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h index 4ae735039da..5a1abe7b416 100755 --- a/scripts/mkcompile_h +++ b/scripts/mkcompile_h @@ -24,10 +24,14 @@ else 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/\\/\\\\/') -- 2.30.2