【问题标题】:How to configure yocto to use the latest git commit?如何配置 yocto 以使用最新的 git commit?
【发布时间】:2016-11-17 03:58:15
【问题描述】:

我是一个非常懒惰的人。在处理 HW/SW 项目时,软件会永久更改。在这个开发阶段,更改配方中的提交/恢复标签是非常讨厌的。 我希望 Yocto 获取最新的 git 提交。这可能/如何做到这一点? 我的示例食谱:

SUMMARY = "my test"
SECTION = "test"
LICENSE = "CLOSED"

inherit cmake
SRCREV = "f9bdbd6c631f07e427c010086c7c26a95eb2924e"

SRC_URI = "gitsm://myGit/mytest;protocol=http;branch=develop"

S = "${WORKDIR}/git/"

【问题讨论】:

    标签: git yocto bitbake recipe


    【解决方案1】:

    好的,设置SRCREV = "${AUTOREV}"

    此外,PV 中的you need to reference SRCPV 以便在源代码的修订版发生更改时自动更新版本。这是一个例子:

     PV = "1.0+git${SRCPV}"
    

    然后每次都会构建最新版本。

    【讨论】:

    猜你喜欢
    • 2018-09-07
    • 2017-06-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-26
    • 1970-01-01
    • 2020-11-02
    相关资源
    最近更新 更多