public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] sstate: Make image cache imagetype-specific
@ 2021-12-15 12:57 Anton Mikanovich
  2021-12-15 14:33 ` Schmidt, Adriaan
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Anton Mikanovich @ 2021-12-15 12:57 UTC (permalink / raw)
  To: isar-users; +Cc: Anton Mikanovich

Building of isar-image-base for targets qemuamd64-buster-tgz and
qemuamd64-buster-cpiogz with one bitbake call fails with:

ERROR: mc:qemuamd64-buster-tgz:isar-image-base-1.0-r0 do_rootfs: Package already staged

This is caused by sstate cache conflict for those two packages.
We need to add image type to sstate manifest data to fix the issue.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 meta/classes/image.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index d757256d..50ae03e6 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -9,7 +9,7 @@ STAMP = "${STAMPS_DIR}/${DISTRO}-${DISTRO_ARCH}/${PN}-${MACHINE}-${IMAGE_SUFFIX}
 STAMPCLEAN = "${STAMPS_DIR}/${DISTRO}-${DISTRO_ARCH}/${PN}-${MACHINE}-${IMAGE_SUFFIX}/*-*"
 
 # Sstate also needs to be machine-specific
-SSTATE_MANIFESTS = "${TMPDIR}/sstate-control/${MACHINE}-${DISTRO}-${DISTRO_ARCH}"
+SSTATE_MANIFESTS = "${TMPDIR}/sstate-control/${MACHINE}-${DISTRO}-${DISTRO_ARCH}-${IMAGE_SUFFIX}"
 
 IMAGE_INSTALL ?= ""
 IMAGE_FSTYPES ?= "${@ d.getVar("IMAGE_TYPE", True) if d.getVar("IMAGE_TYPE", True) else "ext4-img"}"
-- 
2.20.1


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

end of thread, other threads:[~2021-12-23 10:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-15 12:57 [PATCH] sstate: Make image cache imagetype-specific Anton Mikanovich
2021-12-15 14:33 ` Schmidt, Adriaan
2021-12-16  9:22   ` Anton Mikanovich
2021-12-16 14:56     ` Jan Kiszka
2021-12-17 10:53   ` Baurzhan Ismagulov
2021-12-17 11:24     ` Jan Kiszka
2021-12-22 14:56 ` Anton Mikanovich
2021-12-22 15:26   ` Schmidt, Adriaan
2021-12-23 10:55 ` Anton Mikanovich

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