X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=patches%2Fkernel%2F0001-Make-mkcompile_h-accept-an-alternate-timestamp-strin.patch;h=93dba9faf75f159208838969677438a5253acafb;hb=HEAD;hp=bb4ad1332cda26ad47f54a359dd9d961bf78650d;hpb=c0514fa336bd49d68fd6b2682bf0b6b755c0687c;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 bb4ad13..93dba9f 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 @@ -15,29 +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 87f1fc9801d7..4ef868f1f244 100755 ---- a/scripts/mkcompile_h -+++ b/scripts/mkcompile_h -@@ -33,10 +33,14 @@ else - VERSION=$KBUILD_BUILD_VERSION - fi +diff --git a/init/Makefile b/init/Makefile +index cbac576c57d6..479b1253fcbe 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/\\/\\\\/') + 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 = \