imagebuilder: export SOURCE_DATE_EPOCH to environment
authorDaniel Golle <daniel@makrotopia.org>
Sat, 9 Apr 2022 23:55:21 +0000 (00:55 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 10 Apr 2022 15:32:20 +0000 (16:32 +0100)
Export SOURCE_DATE_EPOCH to environment so filesystem and image
creation tools will make use of it.
Fixes reproducibility of images generated with the ImageBuilder.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 5cf5dce05ae829ec848ad63a6da300c4fddcd510)

target/imagebuilder/files/Makefile

index 871a40b3a1f261d0e69c75eedb1474bbe9eb03a8..3329fe70aa192ad5104211ef318bc600516ed8b1 100644 (file)
@@ -27,6 +27,7 @@ include $(INCLUDE_DIR)/rootfs.mk
 
 include $(INCLUDE_DIR)/version.mk
 export REVISION
+export SOURCE_DATE_EPOCH
 
 define Helptext
 Available Commands: