public inbox for bitbake-devel@lists.openembedded.org
 help / color / mirror / Atom feed
From: "Antonin Godard" <antonin.godard@bootlin.com>
To: <alex.kanavin@gmail.com>, <bitbake-devel@lists.openembedded.org>
Cc: "Alexander Kanavin" <alex@linutronix.de>
Subject: Re: [bitbake-devel] [PATCH v3 2/2] bitbake-setup: share sstate by default between builds
Date: Thu, 05 Feb 2026 12:08:01 +0100	[thread overview]
Message-ID: <DG6ZBGNEUSSR.E95H6B6IK8MM@bootlin.com> (raw)
In-Reply-To: <20260129120421.4413-2-alex.kanavin@gmail.com>

On Thu Jan 29, 2026 at 1:04 PM CET, Alexander Kanavin via lists.openembedded.org wrote:
[...]
> +            sstate_settings = textwrap.dedent(
> +                """
> +                #
> +                # Where to place shared-state files
> +                #
> +                # BitBake has the capability to accelerate builds based on previously built output.
> +                # This is done using "shared state" files which can be thought of as cache objects
> +                # and this option determines where those files are placed.
> +                #
> +                # You can wipe out TMPDIR leaving this directory intact and the build would regenerate
> +                # from these files if no changes were made to the configuration. If changes were made
> +                # to the configuration, only shared state files where the state was still valid would
> +                # be used (done using checksums).
> +                SSTATE_DIR ?= "{sstate_dir}"

Nitpicky I know , but we should add a line return here, as DL_DIR above is
already separated from SSTATE_DIR by a line return.

> +                #
> +                # Hash Equivalence database location
> +                #
> +                # Hash equivalence improves reuse of sstate by detecting when a given sstate
> +                # artifact can be reused as equivalent, even if the current task hash doesn't
> +                # match the one that generated the artifact. This variable controls where the
> +                # Hash Equivalence database ("hashserv.db") is stored and can be shared between
> +                # concurrent builds.
> +                BB_HASHSERVE_DB_DIR ?= "${{SSTATE_DIR}}"
> +                """.format(sstate_dir=os.path.join(top_dir, ".sstate-cache"))
> +            )

Antonin


  reply	other threads:[~2026-02-05 11:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-29 12:04 [PATCH v3 1/2] cooker: use BB_HASHSERVE_DB_DIR for hash server database location Alexander Kanavin
2026-01-29 12:04 ` [PATCH v3 2/2] bitbake-setup: share sstate by default between builds Alexander Kanavin
2026-02-05 11:08   ` Antonin Godard [this message]
2026-02-05 11:12     ` [bitbake-devel] " Alexander Kanavin
2026-02-05 11:19       ` Antonin Godard
2026-02-09 13:09   ` Mathieu Dubois-Briand
2026-02-09 13:55     ` Alexander Kanavin
2026-02-09 13:59       ` Richard Purdie
2026-02-10 15:36 ` [bitbake-devel] [PATCH v3 1/2] cooker: use BB_HASHSERVE_DB_DIR for hash server database location Jose Quaresma
2026-02-11 11:38   ` Alexander Kanavin
2026-02-11 11:46     ` Jose Quaresma

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DG6ZBGNEUSSR.E95H6B6IK8MM@bootlin.com \
    --to=antonin.godard@bootlin.com \
    --cc=alex.kanavin@gmail.com \
    --cc=alex@linutronix.de \
    --cc=bitbake-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox