Bitbake,从 git 构建但不是最新提交

Bitbake, build from git but not latest commit

我有一个 bitbake 配方,它会从分支 develop 获取最新的提交,但是;我想从旧的提交中构建以尝试一些东西。

我创建了一个新分支,我提交了我想要构建的代码,但这并不是一个实际或长期的解决方案。

这是我的 .bb 文件中的代码:

SRC_URI = "git://xxxxxxxx.com:1337/Customer/webtool;protocol=ssh;branch=develop \                                                                                                                      
           file://webyyy.py \                                                                                                                                                                                                                                                                                                                                   
           file://webzzz.service \                                                                                                                                                                         
"                                                                                                                                                                                                           
SRCREV = "${AUTOREV}"                                                                                                                                                                                       

(删除了有关该项目的一些信息)

是否可以在不将我想要构建的代码提交到另一个分支的情况下执行此操作?

回答者Nayfe in the

Just put the correct commit hash in SRCREV?

OP 指出这个 :

Worked like a charm, thanks!