From b5be595d075ec93c0e4578a8405436bb40e4fbe0 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 --- classes-recipe/bundle.bbclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes-recipe/bundle.bbclass b/classes-recipe/bundle.bbclass index 87b90b0..09692eb 100644 --- a/classes-recipe/bundle.bbclass +++ b/classes-recipe/bundle.bbclass @@ -450,6 +450,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}