]> git.proxmox.com Git - pve-kernel.git/commitdiff
d/rules: use UTC ISO format for build timestamp
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 13 Dec 2022 16:58:35 +0000 (17:58 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 13 Dec 2022 16:58:52 +0000 (17:58 +0100)
same info but shorter, avoiding cut-off on `uname -a` output due to
the relatively newly changed and reported "SMP PREEMPT_DYNAMIC" mode.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/rules

index 94a88e7f65c4f5a79ba07ca6be553596d5f7826f..ce8e42f82ba797aecf2fe132e13f1ab1caed4ff8 100755 (executable)
@@ -12,6 +12,7 @@ include debian/rules.d/env.mk
 include debian/rules.d/${DEB_BUILD_ARCH}.mk
 
 CHANGELOG_DATE:=$(shell dpkg-parsechangelog -SDate)
+CHANGELOG_DATE_UTC_ISO := $(shell date -u -d '$(SOURCE_DATE)' +%Y-%m-%dT%H:%MZ)
 
 PVE_KERNEL_PKG=pve-kernel-${KVNAME}
 PVE_DEBUG_KERNEL_PKG=pve-kernel-${KVNAME}-dbgsym
@@ -126,7 +127,7 @@ binary: install
        touch $@
 
 .compile_mark: .config_mark
-       ${MAKE} -C ${KERNEL_SRC} KBUILD_BUILD_VERSION_TIMESTAMP="PVE ${DEB_VERSION} (${CHANGELOG_DATE})"
+       ${MAKE} -C ${KERNEL_SRC} KBUILD_BUILD_VERSION_TIMESTAMP="PVE ${DEB_VERSION} (${CHANGELOG_DATE_UTC_ISO})"
        touch $@
 
 .install_mark: .compile_mark .modules_compile_mark