如何在 Yocto 配方中指定 git 分支

md.*_*mal 3 git bitbake yocto

我的 git 存储库中有两个分支。当我指定分支时,它会给我错误。

Exception: bb.fetch2.MalformedUrl: The URL: 'branch=master;' is invalid and cannot be interpreted
Run Code Online (Sandbox Code Playgroud)

以下是我的食谱中的 SRC_URI

SRC_URI = "git://github.com/abc/abc.git; branch=master;"
Run Code Online (Sandbox Code Playgroud)

如果我不指定分支,则没有问题。

SRC_URI 有什么错误,我参考了其他配方的 SRC_URI,它们也遵循相同的语法

Khe*_*hem 5

有一个虚假的空间,(指定之前branch=请使用

SRC_URI = "git://github.com/abc/abc.git;branch=master"
Run Code Online (Sandbox Code Playgroud)

有关更多详细信息,请参阅Bitbake 文档