From bafbbd53c4591b420bc9f15aa1fe1bd4e1df88bb Mon Sep 17 00:00:00 2001 From: Michael Opdenacker Date: Wed, 9 Mar 2022 15:10:26 +0100 Subject: docs: update examples to add branch info to git URIs Branch information is now mandatory for git:// and gitsm:// URIs (From yocto-docs rev: b862655d812e358dd15b06c0548a276a90666423) Signed-off-by: Michael Opdenacker Reviewed-by: Quentin Schulz Signed-off-by: Richard Purdie --- documentation/ref-manual/classes.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'documentation/ref-manual/classes.rst') diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst index d7d86ebc46..e1e61c9c9f 100644 --- a/documentation/ref-manual/classes.rst +++ b/documentation/ref-manual/classes.rst @@ -170,8 +170,7 @@ example use for this class. are extracted into the subdirectory expected by the default value of :term:`S`:: - SRC_URI = "git://example.com/downloads/somepackage.rpm;subpath=${BP}" - + SRC_URI = "git://example.com/downloads/somepackage.rpm;branch=main;subpath=${BP}" See the ":ref:`bitbake-user-manual/bitbake-user-manual-fetching:fetchers`" section in the BitBake User Manual for more information on supported BitBake Fetchers. @@ -460,7 +459,7 @@ recipe that fetches from an alternative URI (e.g. Git) instead of a tarball. Following is an example:: BBCLASSEXTEND = "devupstream:target" - SRC_URI:class-devupstream = "git://git.example.com/example" + SRC_URI:class-devupstream = "git://git.example.com/example;branch=main" SRCREV:class-devupstream = "abcd1234" Adding the above statements to your recipe creates a variant that has -- cgit v1.2.3-54-g00ecf