From: Ben Hutchings Date: Tue, 12 May 2015 18:29:22 +0000 (+0100) Subject: Make mkcompile_h accept an alternate timestamp string X-Git-Tag: archive/raspbian/5.18.2-1+rpi1^2~79 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1ee61cba3ae592198e557d5e8a6f4ac22f741ec5;p=linux.git 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 --- diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h index ca40a5258c8..6ae930a732f 100755 --- a/scripts/mkcompile_h +++ b/scripts/mkcompile_h @@ -23,10 +23,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/\\/\\\\/')