From 11e75ecbf092420f00f0fc88a7183d5d99887ff1 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Mon, 6 Feb 2023 11:48:40 +0100 Subject: [PATCH] boot/barebox: explicitly set the timezone for the kbuild timestamp This adjusts the code added in commit c90bd74ebb264ccc925f10a142ccd82ef63a4601 ("boot/barebox: pass required environment variables for reproducible build") to explicitly set the timezone when calculating KBUILD_BUILD_TIMESTAMP, like is already done in linux/linux.mk. Signed-off-by: Thomas Petazzoni --- boot/barebox/barebox.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/barebox/barebox.mk b/boot/barebox/barebox.mk index a0cfaffe09..d7bcafe436 100644 --- a/boot/barebox/barebox.mk +++ b/boot/barebox/barebox.mk @@ -78,7 +78,7 @@ ifeq ($$(BR2_REPRODUCIBLE),y) $(1)_MAKE_ENV += \ KBUILD_BUILD_USER=buildroot \ KBUILD_BUILD_HOST=buildroot \ - KBUILD_BUILD_TIMESTAMP="$$(shell LC_ALL=C date -d @$(SOURCE_DATE_EPOCH))" + KBUILD_BUILD_TIMESTAMP="$$(shell LC_ALL=C TZ='UTC' date -d @$(SOURCE_DATE_EPOCH))" endif ifeq ($$(BR2_TARGET_$(1)_USE_DEFCONFIG),y)