From 651a6a21ed7021cc1691f564e66647928fe534fc Mon Sep 17 00:00:00 2001 From: Andrei Gherzan Date: Sun, 18 Oct 2026 20:19:07 +0100 Subject: [PATCH] ci: persist the hash equivalence database BB_HASHSERVE defaults to "auto", which stores hashserv.db in the build directory. CI builds in a temporary build directory, so the database was discarded after every job and equivalent outputs from previous builds were never matched. Store it in SSTATE_DIR, next to the artifacts it references. This also aligns to bitbake-setup default behaviour. Signed-off-by: Andrei Gherzan --- .../workflows/docker-images/yocto-builder/entrypoint-build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/docker-images/yocto-builder/entrypoint-build.sh b/.github/workflows/docker-images/yocto-builder/entrypoint-build.sh index 698f01c..4f0fec4 100755 --- a/.github/workflows/docker-images/yocto-builder/entrypoint-build.sh +++ b/.github/workflows/docker-images/yocto-builder/entrypoint-build.sh @@ -39,6 +39,9 @@ done # Build configuration printf "\n# ------ ci ------\n" >> conf/local.conf [ -z "$SSTATE_DIR" ] || echo SSTATE_DIR = \""$SSTATE_DIR"\" >> conf/local.conf +# Keep the hash equivalence database next to the sstate it describes so it +# persists across builds. This matches the bitbake-setup default. +[ -z "$SSTATE_DIR" ] || echo BB_HASHSERVE_DB_DIR = \""$SSTATE_DIR"\" >> conf/local.conf [ -z "$DL_DIR" ] || echo DL_DIR = \""$DL_DIR"\" >> conf/local.conf [ -z "$DISTRO" ] || echo DISTRO = \""$DISTRO"\" >> conf/local.conf cat <>conf/local.conf