Re: [bitbake-devel] [PATCH v3] bitbake-setup: use bb.fetch for buildtools installer download

Alexander Kanavin <[email protected]> Fri, 26 Jun 2026 21:44:11 +0200
Newsgroups org.openembedded.lists.bitbake-devel
Message-ID <CANNYZj9LDDS525+=3Hp-5SZ7LWwBK6PqcR=jQVaWSzWcE81Q0A@mail.gmail.com>
On Fri, 26 Jun 2026 at 21:23, Jaipaul Cheernam via
lists.openembedded.org
<[email protected]> wrote:
> +        # Per-configuration takes precedence over top-level
> +        buildtools_config = upstream_config.get('bitbake-config', {}).get('install-buildtools', {})
> +        if not buildtools_config:
> +            buildtools_config = upstream_config.get('data', {}).get(
> +                'bitbake-setup', {}).get('install-buildtools', {})

This wasn't quite the idea. I wanted to make per-configuration the
only place to specify custom buildtools, so no top level support at
all.

> +    # Unpack into a working directory (avoid touching DL_DIR directly)
> +    import tempfile
> +    unpack_base = os.path.join(args.setup_dir, 'buildtools-downloads')
> +    os.makedirs(unpack_base, exist_ok=True)
> +    unpackdir = tempfile.mkdtemp(dir=unpack_base)
> +    fetcher.unpack(unpackdir)

This should be using the same location as default buildtools, e.g.
fecher.unpack(buildtools_download_dir). So it's consistent, if someone
is expecting to find the buildtools archive there.

Alex