public inbox for cip-dev@lists.cip-project.org
 help / color / mirror / Atom feed
* [cip-dev][isar-cip-core][PATCH] initramfs-verity-hook: Ensure sync on rebuild
@ 2023-08-23 13:28 Quirin Gylstorff
  2023-08-28  6:47 ` Jan Kiszka
  0 siblings, 1 reply; 7+ messages in thread
From: Quirin Gylstorff @ 2023-08-23 13:28 UTC (permalink / raw)
  To: cip-dev, jan.kiszka, felix.moessbauer

From: Quirin Gylstorff <quirin.gylstorff@siemens.com>

Disable the timestamp of the do_install() task to
re-execute when ever a dependency on do_install
is executed.

Without this change the sstate needs to be clean for
every rebuild.

Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
 .../initramfs-verity-hook/initramfs-verity-hook_0.1.bb         | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/recipes-initramfs/initramfs-verity-hook/initramfs-verity-hook_0.1.bb b/recipes-initramfs/initramfs-verity-hook/initramfs-verity-hook_0.1.bb
index 3fc63ed..7435649 100644
--- a/recipes-initramfs/initramfs-verity-hook/initramfs-verity-hook_0.1.bb
+++ b/recipes-initramfs/initramfs-verity-hook/initramfs-verity-hook_0.1.bb
@@ -40,6 +40,9 @@ do_install[cleandirs] += " \
     ${D}/usr/share/initramfs-tools/scripts/local-top \
     ${D}/usr/share/initramfs-tools/conf-hooks.d"
 
+# Ensure VERITY_ENV_FILE is updated also when rebuilding initramfs-verity-hook
+do_install[nostamp] = "1"
+
 do_install() {
     # Insert the veritysetup commandline into the script
     if [ -f "${VERITY_ENV_FILE}" ]; then
-- 
2.40.1



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

end of thread, other threads:[~2023-09-14  5:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-23 13:28 [cip-dev][isar-cip-core][PATCH] initramfs-verity-hook: Ensure sync on rebuild Quirin Gylstorff
2023-08-28  6:47 ` Jan Kiszka
2023-09-12 10:07   ` Gylstorff Quirin
2023-09-12 10:25     ` Jan Kiszka
2023-09-13  1:26       ` MOESSBAUER, Felix
2023-09-13 12:51         ` Gylstorff Quirin
2023-09-14  5:55           ` Jan Kiszka

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