【问题标题】:How to specify git branch in Yocto recipe如何在 Yocto 配方中指定 git 分支
【发布时间】:2020-07-19 03:29:03
【问题描述】:

我的 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,它们也遵循相同的语法

【问题讨论】:

    标签: git yocto bitbake


    【解决方案1】:

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

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

    更多详情见Bitbake Documentation

    【讨论】:

      猜你喜欢
      • 2015-11-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-07
      • 2015-05-20
      • 2017-04-08
      • 1970-01-01
      • 2015-09-26
      相关资源
      最近更新 更多