Re: [yocto] Modifying SRC_URI before it is parsed by the fetcher

Alexander Kanavin <[email protected]> Tue, 12 May 2026 17:07:01 +0200
Newsgroups org.yoctoproject.lists.yocto
Message-ID <CANNYZj9d4aGunvF3tQPF9frgNGrxqcntb7AQO+XsBTDBsOejTg@mail.gmail.com>
On Tue, 12 May 2026 at 16:47, EXT-Antti Gärding via
lists.yoctoproject.org
<[email protected]> wrote:
> I am developing a .bbclass file that modifies SRC_URI of the inheriting recipe before bitbake (in this case, the git fetcher) initializes its internal data structures with that data. Prepended to any task or as a dedicated task before any other tasks is too late, but a Python function declared __anonymous seems to be invoked right after parsing the recipe, which is early enough.

Please explain the problem first, before presenting the various
solution attempts. What do you need to modify in SRC_URI and why?
Maybe there's a completely different approach to the actual issue.

Alex