diff mbox series

[isar-cip-core] initramfs-abrootfs-hook: Ensure sync on rebuild

Message ID 20230823140521.1013898-1-Quirin.Gylstorff@siemens.com (mailing list archive)
State Changes Requested
Headers show
Series [isar-cip-core] initramfs-abrootfs-hook: Ensure sync on rebuild | expand

Commit Message

Gylstorff Quirin Aug. 23, 2023, 2:05 p.m. UTC
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-abrootfs-hook/initramfs-abrootfs-hook_0.1.bb     | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/recipes-initramfs/initramfs-abrootfs-hook/initramfs-abrootfs-hook_0.1.bb b/recipes-initramfs/initramfs-abrootfs-hook/initramfs-abrootfs-hook_0.1.bb
index 17c60da..d16d06e 100644
--- a/recipes-initramfs/initramfs-abrootfs-hook/initramfs-abrootfs-hook_0.1.bb
+++ b/recipes-initramfs/initramfs-abrootfs-hook/initramfs-abrootfs-hook_0.1.bb
@@ -32,6 +32,9 @@  do_install[cleandirs] += " \
     ${D}/usr/share/abrootfs \
     ${D}/usr/share/initramfs-tools/scripts/local-top"
 
+# Ensure IMAGE_UUID_ENV_FILE  is updated also when rebuilding initramfs-abrootfs-hook
+do_install[nostamp] = "1"
+
 do_install() {
     if [ -f "${IMAGE_UUID_ENV_FILE}" ]; then
         install -m 0600 "${IMAGE_UUID_ENV_FILE}" "${D}/usr/share/abrootfs/image-uuid.env"