Yocto SRCREV 问题

问题描述 投票:0回答:1

我正在尝试使用元自定义在 Kirkstone 的 imx-5.15.71-2.2.0 中编译 yocto 图像,但我不断收到此错误:

ERROR: twin-1.0-r0 do_fetch: Bitbake Fetcher Error: FetchError("Please set a valid SRCREV for url ['SRCREV_default:pn-twin', 'SRCREV_default', 'SRCREV:pn-twin', 'SRCREV'] (possible key names are git://github.com/eclipse-ditto/ditto.git;protocol=https;branch=main, or use a ;rev=X URL parameter)", 'git://github.com/eclipse-ditto/ditto.git;protocol=https;branch=main')
ERROR: Logfile of failure stored in: /opt/yocto/imx-5.15.71-2.2.0/kirkstone/bld-xwayland/tmp/work/armv8a-poky-linux/twin/1.0-r0/temp/log.do_fetch.871303
ERROR: Task (/opt/yocto/imx-5.15.71-2.2.0/kirkstone/sources/meta-custom/recipes-apps/twin/twin.bb:do_fetch) failed with exit code '1'

元自定义包含 2 个文件夹,twin 和 acapy,其中

双胞胎:

https://github.com/bernar0507/Automate-Twin-Process.git
https://github.com/eclipse-ditto/ditto.git
https://github.com/bernar0507/Eclipse-Ditto-MQTT-iwatch-SSL-TCP.git

阿卡皮:

https://github.com/paquino11/Masters-v3.git

我尝试将标签设置为他们最新的推送和 HEAD,但我仍然面临这个错误。

感谢所有帮助

linux yocto bitbake
1个回答
0
投票

该错误意味着您必须为配方中的每个存储库提供提交哈希。这样 Bitbake 将准确地知道从每个存储库中签出什么。

SRC_URI = "git://<git-repo1>;protocol=ssh;branch=master;name=repo1
SRC_URI += "git://<gitrepo2>;protocol=ssh;branch=main;name=repo2"

SRCREV_repo1 = "<commit-hash>"
SRCREV_repo2 = "<commit-hash>"
© www.soinside.com 2019 - 2024. All rights reserved.