diff options
Diffstat (limited to 'classes/image-oci.bbclass')
| -rw-r--r-- | classes/image-oci.bbclass | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/classes/image-oci.bbclass b/classes/image-oci.bbclass index 64b17d97..41f7b3d1 100644 --- a/classes/image-oci.bbclass +++ b/classes/image-oci.bbclass | |||
| @@ -195,6 +195,32 @@ OCI_LAYER_MODE ?= "single" | |||
| 195 | # | 195 | # |
| 196 | OCI_LAYERS ?= "" | 196 | OCI_LAYERS ?= "" |
| 197 | 197 | ||
| 198 | # ============================================================================= | ||
| 199 | # Layer Caching (for multi-layer mode) | ||
| 200 | # ============================================================================= | ||
| 201 | # | ||
| 202 | # OCI_LAYER_CACHE: Enable/disable layer caching ("1" or "0") | ||
| 203 | # When enabled, pre-installed package layers are cached to avoid | ||
| 204 | # reinstalling packages on subsequent builds. | ||
| 205 | # | ||
| 206 | # OCI_LAYER_CACHE_DIR: Directory for storing cached layers | ||
| 207 | # Default: ${TOPDIR}/oci-layer-cache/${MACHINE} | ||
| 208 | # Cache is keyed by: layer definition + package versions + architecture | ||
| 209 | # | ||
| 210 | # Cache key components: | ||
| 211 | # - Layer name and type | ||
| 212 | # - Sorted package list | ||
| 213 | # - Package versions (from PKGDATA_DIR) | ||
| 214 | # - MACHINE and TUNE_PKGARCH | ||
| 215 | # | ||
| 216 | # Cache invalidation: | ||
| 217 | # - Any package version change invalidates layers containing that package | ||
| 218 | # - Layer definition changes invalidate that specific layer | ||
| 219 | # - MACHINE/arch changes use separate cache directories | ||
| 220 | # | ||
| 221 | OCI_LAYER_CACHE ?= "1" | ||
| 222 | OCI_LAYER_CACHE_DIR ?= "${TOPDIR}/oci-layer-cache/${MACHINE}" | ||
| 223 | |||
| 198 | # whether the oci image dir should be left as a directory, or | 224 | # whether the oci image dir should be left as a directory, or |
| 199 | # bundled into a tarball. | 225 | # bundled into a tarball. |
| 200 | OCI_IMAGE_TAR_OUTPUT ?= "true" | 226 | OCI_IMAGE_TAR_OUTPUT ?= "true" |
