Bug 14498 - Document SRCREV_* variable when multiple source controlled URLs are in SRC_URI
Summary: Document SRCREV_* variable when multiple source controlled URLs are in SRC_URI
Status: RESOLVED FIXED
Alias: None
Product: Variables Glossary
Classification: Documentation
Component: variables-glossary (show other bugs)
Version: unspecified
Hardware: All Multiple
: Medium normal
Target Milestone: 5.3
Assignee: Adam Blank
QA Contact:
URL:
Whiteboard: NEWCOMER
Depends on:
Blocks:
 
Reported: 2021-08-04 10:56 UTC by Quentin Schulz
Modified: 2025-11-27 08:37 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Quentin Schulz 2021-08-04 10:56:41 UTC
SRC_URI = " \                                                                      
           git://some-git-repo;name=foo \                                                                                                                                                                                                     
           git://some-other-git-repo;name=bar \                                 
           "                                                                    
                                                                                
SRCREV_foo = "abcdef1234567890"                                                 
SRCREV_bar = "1234567890abcdef"  

Note that SRCREV_FORMAT needs to be defined in that case.

This is used in e.g. openembedded-core/recipes-kernel/linux/linux-yocto_5.4.bb

SRCREV_machine_<override>= "yyy"
SRCREV_meta = "xxx"

SRCREV_FORMAT ?= "meta_machine" in openembedded-core/classes/kernel-yocto.bbclass

bitbake/lib/bb/fetch2/__init__.py seems to be the code handling that logic.

Documentation was expected in bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst apparently too, c.f. "We need to document ``AUTOREV`` and ``SRCREV_FORMAT`` here." so we could do that at the same time.
Comment 1 Michael Opdenacker 2021-08-04 13:34:12 UTC
Thanks for the suggestion and for the details!
Comment 2 Randy MacLeod 2025-05-01 14:07:11 UTC
Bulk move of all unassigned 5.2 medium importance bugs to 5.3.
Comment 3 Adam Blank 2025-10-17 10:24:16 UTC
Patch posted: https://lists.openembedded.org/g/bitbake-devel/topic/patch_doc/115804997

Changing the status to "IN PROGRESS REVIEW"
Comment 4 Antonin Godard 2025-11-27 08:37:18 UTC
Hello,

This was merged and reviewed: https://git.openembedded.org/bitbake/commit/?id=fbf0a8c5711f56bd64ae4c9d2c1d5ba884508c9f

Moving to Resolved Fixed.

Thanks for the patch Adam!