5dde66b4fe
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
36 lines
1.4 KiB
Diff
36 lines
1.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Ben Hutchings <ben@decadent.org.uk>
|
|
Date: Tue, 12 May 2015 19:29:22 +0100
|
|
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
|
|
|
|
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.
|
|
|
|
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|
---
|
|
init/Makefile | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
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
|
|
|
|
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 = \
|