git - 如何配置 yocto 以使用最新的 git commit?

标签 git yocto bitbake recipe

我是一个很懒惰的人。在处理 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/"

最佳答案

当然,设置 SRCREV = "${AUTOREV}"

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

 PV = "1.0+git${SRCPV}"

然后每次都会构建最新的修订版。

关于git - 如何配置 yocto 以使用最新的 git commit?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38370723/

相关文章:

git - 关于 Git 的 merge 和 rebase

git - 如何在不修改 git 历史记录的情况下对源代码运行代码格式化程序?

networking - 在 ifdown -a 之后 Yocto ifconfig 不干净

docker - 在 Docker 中运行 Yocto, "make menuconfig"失败

node.js - 为 Node 包 Noble 制作配方

ruby-on-rails - 赫罗库:! [rejected] master -> master(非快进)

git - 使用 git-subtree 添加远程仓库的子目录

yocto - 如何在yocto中打补丁

python - 在 Yocto bitbake 中为 autotools 设置 python dist-packages 路径

yocto - Bitbake(例如 Yocto)在步骤 : parsing recipes 中挂起