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

ChenQi <[email protected]> Wed, 13 May 2026 14:38:57 +0800
Newsgroups org.yoctoproject.lists.yocto
Message-ID <[email protected]>
On 5/13/26 14:26, EXT-Antti Gärding via lists.yoctoproject.org wrote:
> 》Which conditions?
>
> The tag is derived from PV and if there are multiple repositories in 
> SRC_URI, only one is appended with a tag.
>
>
> BR,
> Antti Gärding
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#66546):https://lists.yoctoproject.org/g/yocto/message/66546
> Mute This Topic:https://lists.yoctoproject.org/mt/119275823/3618072
> Group Owner:[email protected]
> Unsubscribe:https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
> -=-=-=-=-=-=-=-=-=-=-=-
>
You can use a bbclass + event handler to achieve this.

e.g.,
modify-src-uri.bbclass

In that bbclass, write a function (e.g., modify_src_uri) to modify SRC_URIs.
Then:
addhandler modify_src_uri
modify_src_uri[eventmask] = "bb.event.XXX"

Regards,
Qi