auto.conf: Configure BB_HASHSERVE_DB_DIR to use the shared SSTATE_DIR - #369
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the Azure DevOps Yocto/BitBake auto-configuration so the hash equivalence database is stored in the shared sstate cache location, enabling hash equivalence reuse across multiple build directories and avoiding warnings about per-build DB placement.
Changes:
- Set
BB_HASHSERVE_DB_DIRto${SSTATE_DIR}so all builds sharing the same sstate cache also share the hash equivalence database.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
chaitu236
left a comment
There was a problem hiding this comment.
The sstate cache is shared across multiple build directories, while the
hash equivalence database was previously created inside each individual
build directory.
This wording is very confusing; what is meant by "multiple build directories" and "each individual build directory"? We only have one build directory right?
Store the hash equivalence database in SSTATE_DIR instead of the per-build workspace. The build workspace is recreated for each pipeline run, while the sstate cache persists across builds. Storing the database alongside the sstate cache allows hash equivalence information to persist across builds, improving sstate reuse and resolving the warning about the database location. Signed-off-by: Shreejit C <shreejit.c@emerson.com>
a5d1e2a to
da7fe4b
Compare
Changes
The sstate cache is shared across multiple build directories, while the hash equivalence database was previously created inside each individual build directory. This prevented builds from sharing hash equivalence information, reducing sstate reuse and generating warnings during the build.
Store the hash equivalence database alongside the shared sstate cache so all builds use the same database, improving sstate reuse and resolving the warning about the hash equivalency database location.
Justification
AB#3918195.
Testing
Followed similar steps as done here and verified the changes.
Suggested Reviewers: