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

From: Quirin Gylstorff <hidden>
Date: 2023-08-23 14:05:37
Subsystem: the rest · Maintainer: Linus Torvalds

From: Quirin Gylstorff <redacted>

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 <redacted>
---
 .../initramfs-abrootfs-hook/initramfs-abrootfs-hook_0.1.bb     | 3 +++
 1 file changed, 3 insertions(+)
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"
-- 
2.40.1

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help