summaryrefslogtreecommitdiffstats
path: root/recipes-containers/vcontainer/vcontainer-tarball.bb
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2026-02-05 20:44:47 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-02-09 03:34:12 +0000
commitbcddeedc6f657841bf0cbb9cf06e9de1633bbe6d (patch)
treea0c6fb90e4c6754a848af66e6b19102b40db6ddd /recipes-containers/vcontainer/vcontainer-tarball.bb
parentffa5f611925a0eef7a18ed3ce461f88424604afd (diff)
downloadmeta-virtualization-bcddeedc6f657841bf0cbb9cf06e9de1633bbe6d.tar.gz
vcontainer: enable incremental builds by default
Previously, vcontainer recipes had [nostamp] flags that forced all tasks to rebuild on every bitbake invocation, even when nothing changed. This was added as a workaround for dependency tracking issues but caused slow rebuild times. Changes: - Make [nostamp] conditional on VCONTAINER_FORCE_BUILD variable - Default to normal stamp-based caching for faster incremental builds - file-checksums on do_rootfs still tracks init script changes - Add VCONTAINER_FORCE_BUILD status to the tarball build banner To enable the old always-rebuild behavior (for debugging dependency issues), set in local.conf: VCONTAINER_FORCE_BUILD = "1" Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/vcontainer/vcontainer-tarball.bb')
-rw-r--r--recipes-containers/vcontainer/vcontainer-tarball.bb9
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes-containers/vcontainer/vcontainer-tarball.bb b/recipes-containers/vcontainer/vcontainer-tarball.bb
index 180f3c19..a4e9a9a5 100644
--- a/recipes-containers/vcontainer/vcontainer-tarball.bb
+++ b/recipes-containers/vcontainer/vcontainer-tarball.bb
@@ -144,6 +144,15 @@ python () {
144 bb.plain(" To build only one architecture, set in local.conf:") 144 bb.plain(" To build only one architecture, set in local.conf:")
145 bb.plain(" VCONTAINER_ARCHITECTURES = \"x86_64\"") 145 bb.plain(" VCONTAINER_ARCHITECTURES = \"x86_64\"")
146 bb.plain(" VCONTAINER_ARCHITECTURES = \"aarch64\"") 146 bb.plain(" VCONTAINER_ARCHITECTURES = \"aarch64\"")
147 bb.plain("")
148 force = d.getVar('VCONTAINER_FORCE_BUILD') or ''
149 if force == '1':
150 bb.plain(" VCONTAINER_FORCE_BUILD = \"1\" (enabled)")
151 bb.plain(" All vcontainer tasks will rebuild unconditionally.")
152 else:
153 bb.plain(" Incremental builds enabled (default).")
154 bb.plain(" To force full rebuild, set in local.conf:")
155 bb.plain(" VCONTAINER_FORCE_BUILD = \"1\"")
147 bb.plain("=" * 70) 156 bb.plain("=" * 70)
148 bb.plain("") 157 bb.plain("")
149} 158}