From 193d6038d756c057717fb79fc7e18fb4dd141828 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20J=C3=B6rns?= Date: Fri, 7 Jun 2024 13:10:45 +0200 Subject: [PATCH] bundle.bbclass: do not generate SSTATE artifacts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The artifacts created are quite large and keeping multiple of them will consume a notable amount of disk space while the expected speed-up is minimal. (For the same reasons, the image class does not generate SSTATE artifacts). Having SSTATE artifacts for bundles enabled can also lead to unexpected/unwanted behavior if a rootfs image recipe was rebuild and the binary output (file system image) changed but did not make it into the final bundle. This becomes a major problem, e.g. in the context of verified boot. Signed-off-by: Enrico Jörns (cherry picked from commit b5be595d075ec93c0e4578a8405436bb40e4fbe0) Signed-off-by: Enrico Jörns --- classes/bundle.bbclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/bundle.bbclass b/classes/bundle.bbclass index 2d8d9a5..0ccad65 100644 --- a/classes/bundle.bbclass +++ b/classes/bundle.bbclass @@ -453,6 +453,8 @@ addtask bundle after do_configure inherit deploy +SSTATE_SKIP_CREATION:task-deploy = '1' + do_deploy() { install -d ${DEPLOYDIR} install -m 0644 ${B}/bundle.raucb ${DEPLOYDIR}/${BUNDLE_NAME}${BUNDLE_EXTENSION}