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

How to specify git branch in Yocto recipe

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

Exception: bb.fetch2.MalformedUrl: The URL: 'branch=master;' is invalid and cannot be interpreted

以下是SRC_URI我的食谱

SRC_URI = "git://github.com/abc/abc.git; branch=master;"

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

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

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

SRC_URI = "git://github.com/abc/abc.git;branch=master"

有关详细信息,请参阅 Bitbake Documentation