瀏覽代碼

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 <thomas.petazzoni@bootlin.com>
Thomas Petazzoni 2 年之前
父節點
當前提交
11e75ecbf0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      boot/barebox/barebox.mk

+ 1 - 1
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)