X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=patches%2Fkernel%2F0001-Make-mkcompile_h-accept-an-alternate-timestamp-strin.patch;h=e56f4665ded4e399b776537d5c787d5a575ad92e;hb=12247ad0df0f583b7811a4afe2c90756be3d342b;hp=7224f39da5be4914cd477ad036174e0fcd55847b;hpb=b378f209dd914348152c462b4746d425bd703fb0;p=pve-kernel.git diff --git a/patches/kernel/0001-Make-mkcompile_h-accept-an-alternate-timestamp-strin.patch b/patches/kernel/0001-Make-mkcompile_h-accept-an-alternate-timestamp-strin.patch index 7224f39..e56f466 100644 --- a/patches/kernel/0001-Make-mkcompile_h-accept-an-alternate-timestamp-strin.patch +++ b/patches/kernel/0001-Make-mkcompile_h-accept-an-alternate-timestamp-strin.patch @@ -1,7 +1,7 @@ -From 8e8e48c6f1ec020ff47f50aa49acab6c850cc70e Mon Sep 17 00:00:00 2001 +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Tue, 12 May 2015 19:29:22 +0100 -Subject: [PATCH 001/233] Make mkcompile_h accept an alternate timestamp string +Subject: [PATCH] Make mkcompile_h accept an alternate timestamp string MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -15,32 +15,21 @@ Make mkcompile_h use $KBUILD_BUILD_VERSION_TIMESTAMP in preference to $KBUILD_BUILD_TIMESTAMP. Signed-off-by: Fabian Grünbichler +Signed-off-by: Thomas Lamprecht --- - scripts/mkcompile_h | 10 +++++++--- - 1 file changed, 7 insertions(+), 3 deletions(-) + init/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) -diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h -index fd8fdb91581d..1e35ac9fc810 100755 ---- a/scripts/mkcompile_h -+++ b/scripts/mkcompile_h -@@ -37,10 +37,14 @@ else - VERSION=$KBUILD_BUILD_VERSION - fi +diff --git a/init/Makefile b/init/Makefile +index 8316c23bead2..e99b8de4a93a 100644 +--- a/init/Makefile ++++ b/init/Makefile +@@ -29,7 +29,7 @@ preempt-flag-$(CONFIG_PREEMPT_DYNAMIC) := PREEMPT_DYNAMIC + preempt-flag-$(CONFIG_PREEMPT_RT) := PREEMPT_RT --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.14.2 - + build-version = $(or $(KBUILD_BUILD_VERSION), $(build-version-auto)) +-build-timestamp = $(or $(KBUILD_BUILD_TIMESTAMP), $(build-timestamp-auto)) ++build-timestamp = $(or $(KBUILD_BUILD_VERSION_TIMESTAMP), $(KBUILD_BUILD_TIMESTAMP), $(build-timestamp-auto)) + + # Maximum length of UTS_VERSION is 64 chars + filechk_uts_version = \