bitbake-setup: correct the confusion over 'uri' format in json configs
PATCH 1/1 bitbake-setup: correct the confusion over 'uri' format in json configs
From: Alexander Kanavin <[email protected]>
The 'uri' property in bitbake-setup json configurations is actually using the standard git URI syntax, and not bitbake fetcher-specific one. Bitbake-setup converts it to something the git fetcher understands.
This was overlooked when default registry configs were added. It worked but only by coincidence (and was using git:// protocol despite 'protocol=https' in the value).
Signed-off-by Alexander Kanavin <[email protected]>
--- default-registry/configurations/oe-nodistro.conf.json | 6 +++--- default-registry/configurations/poky-master.conf.json | 8 ++++---- .../bitbake-user-manual-environment-setup.rst | 9 ++++----- setup-schema/layers.schema.json | 2 +- 4 files changed, 12 insertions(+), 13 deletions(-)
default-registry/configurations/oe-nodistro.conf.json +3 -3
@@ -5,7 +5,7 @@ "git-remote": { "remotes": { "origin": { - "uri": "git://git.openembedded.org/bitbake;protocol=https" + "uri": "https://git.openembedded.org/bitbake" } }, "branch": "master",
@@ -16,7 +16,7 @@ "git-remote": { "remotes": { "origin": { - "uri": "git://git.openembedded.org/openembedded-core;protocol=https" + "uri": "https://git.openembedded.org/openembedded-core" } }, "branch": "master",
@@ -27,7 +27,7 @@ "git-remote": { "remotes": { "origin": { - "uri": "git://git.yoctoproject.org/yocto-docs;protocol=https" + "uri": "https://git.yoctoproject.org/yocto-docs" } }, "branch": "master",
default-registry/configurations/poky-master.conf.json +4 -4
@@ -5,7 +5,7 @@ "git-remote": { "remotes": { "origin": { - "uri": "git://git.openembedded.org/bitbake;protocol=https" + "uri": "https://git.openembedded.org/bitbake" } }, "branch": "master",
@@ -16,7 +16,7 @@ "git-remote": { "remotes": { "origin": { - "uri": "git://git.openembedded.org/openembedded-core;protocol=https" + "uri": "https://git.openembedded.org/openembedded-core" } }, "branch": "master",
@@ -27,7 +27,7 @@ "git-remote": { "remotes": { "origin": { - "uri": "git://git.yoctoproject.org/meta-yocto;protocol=https" + "uri": "https://git.yoctoproject.org/meta-yocto" } }, "branch": "master",
@@ -38,7 +38,7 @@ "git-remote": { "remotes": { "origin": { - "uri": "git://git.yoctoproject.org/yocto-docs;protocol=https" + "uri": "https://git.yoctoproject.org/yocto-docs" } }, "branch": "master",
doc/bitbake-user-manual/bitbake-user-manual-environment-setup.rst +4 -5
@@ -662,7 +662,7 @@ They contain the following sections: "git-remote": { "remotes": { "origin": { - "uri": "git://git.openembedded.org/bitbake;protocol=https" + "uri": "https://git.openembedded.org/bitbake" } }, "branch": "master",
@@ -675,9 +675,8 @@ They contain the following sections: Sources can be specified with the following options: - - ``uri`` (**required**): a URI that follows the BitBake Git fetcher syntax. - See the :doc:`/bitbake-user-manual/bitbake-user-manual-fetching` section - for more information on the Git fetcher. + - ``uri`` (**required**): a URI that follows the git URI syntax. + See https://git-scm.com/docs/git-clone#_git_urls for more information. - ``rev`` (**required**): the revision to checkout. Can be the name of the branch to checkout on the latest revision of the specified ``branch``.
@@ -879,7 +878,7 @@ Here is an example file that overrides the branch of the BitBake repository to "branch": "master-next", "remotes": { "origin": { - "uri": "git://git.openembedded.org/bitbake;protocol=https" + "uri": "https://git.openembedded.org/bitbake" } }, "rev": "master-next"
setup-schema/layers.schema.json +1 -1
@@ -58,7 +58,7 @@ ], "properties": { "uri": { - "description": "The URI for the remote", + "description": "The URI for the remote, using git URL syntax", "type": "string" } }
Signature · 1 line
2.39.5