public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 1/4] set SOURCE_DATE_EPOCH in wic environment
@ 2023-01-25 14:46 Felix Moessbauer
  2023-01-25 14:46 ` [PATCH 2/4] remove apt cache dirs from final rootfs Felix Moessbauer
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Felix Moessbauer @ 2023-01-25 14:46 UTC (permalink / raw)
  To: isar-users; +Cc: Felix Moessbauer

By setting the variable in the generate_wic_image task, all wic
utilities that support reproducible builds pick it up and operate
accordingly.

This also makes the boot.scr u-boot script reproducible, as the script
generation is triggered by the wic plugin rootfs-u-boot.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 meta/classes/imagetypes_wic.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/imagetypes_wic.bbclass b/meta/classes/imagetypes_wic.bbclass
index 3869525b..6fadc3ce 100644
--- a/meta/classes/imagetypes_wic.bbclass
+++ b/meta/classes/imagetypes_wic.bbclass
@@ -170,6 +170,9 @@ generate_wic_image() {
     export FAKEROOTCMD=${FAKEROOTCMD}
     export BUILDDIR=${TOPDIR}
     export MTOOLS_SKIP_CHECK=1
+    if [ ! -z "${SOURCE_DATE_EPOCH}" ]; then
+        export SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH}"
+    fi
     mkdir -p ${IMAGE_ROOTFS}/../pseudo
     touch ${IMAGE_ROOTFS}/../pseudo/files.db
 
-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-02-01  6:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-25 14:46 [PATCH 1/4] set SOURCE_DATE_EPOCH in wic environment Felix Moessbauer
2023-01-25 14:46 ` [PATCH 2/4] remove apt cache dirs from final rootfs Felix Moessbauer
2023-01-25 14:46 ` [PATCH 3/4] clean /tmp in rootfs postprocess Felix Moessbauer
2023-01-25 14:46 ` [PATCH 4/4] warn only once in case file timestamps are updated Felix Moessbauer
2023-02-01  6:21 ` [PATCH 1/4] set SOURCE_DATE_EPOCH in wic environment Uladzimir Bely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox