bitbake没有提取git repo,也没有抛出任何错误
我正在尝试在控制台图像中添加git存储库的文件。在此问题上,我在一个名为meta-rpi
的图层中创建了一个食谱(由写作 this 文章,我重复的Yocto图像)。因此,在内部,META-RPI
我创建了一个称为配方web-server
的食谱我将食谱Backend_git.bb
放置。
backend_git.bb
文件中有以下内容:
DESCRIPTION = "Backend repo"
SECTION = ""
DEPENDS = ""
LICENSE = "MIT"
// here I made sure to copy a commit SHA code from the main branch
#SRCREV = "somecode"
SRC_URI = "git://github.com/myUsername/myRepo.git;branch=main;protocol=http"
inherit npm-install-global
然后在conf/layer.conf
meta-rpi
我有这个非 -修改后的conf:
# We have a conf and classes directory, append to BBPATH
BBPATH .= ":${LAYERDIR}"
# We have a recipes directory, add to BBFILES
BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend ${LAYERDIR}/images/*.bb"
BBFILE_COLLECTIONS += "meta-rpi64"
BBFILE_PATTERN_meta-rpi64 := "^${LAYERDIR}/"
BBFILE_PRIORITY_meta-rpi64 = "16"
LAYERSERIES_COMPAT_meta-rpi64 = "dunfell"
所以一切似乎都还好。构建运行良好,我能够将图像刷新到SD卡上并在覆盆子上进行测试。
准备使用OS后,我进入了cd /< /code>内部,然后ran
查找。 -Name *后端 *
和其他查找。 -Name
我的git存储库中的各个文件夹,但找不到。
所以我的问题是,我在做什么错?
I am trying to add the files of a git repository inside my console-image. In this matter, I created a recipe inside a layer named meta-rpi
(a layer built by the guy that wrote this article, whose yocto image I reproduce). So inside meta-rpi
I created a recipe called recipes-web-server
, within it another folder named backend
, and finally, inside it, I put my recipe backend_git.bb
.
The backend_git.bb
file has the following content in it:
DESCRIPTION = "Backend repo"
SECTION = ""
DEPENDS = ""
LICENSE = "MIT"
// here I made sure to copy a commit SHA code from the main branch
#SRCREV = "somecode"
SRC_URI = "git://github.com/myUsername/myRepo.git;branch=main;protocol=http"
inherit npm-install-global
And then in conf/layer.conf
of meta-rpi
I have this non-modified conf:
# We have a conf and classes directory, append to BBPATH
BBPATH .= ":${LAYERDIR}"
# We have a recipes directory, add to BBFILES
BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend ${LAYERDIR}/images/*.bb"
BBFILE_COLLECTIONS += "meta-rpi64"
BBFILE_PATTERN_meta-rpi64 := "^${LAYERDIR}/"
BBFILE_PRIORITY_meta-rpi64 = "16"
LAYERSERIES_COMPAT_meta-rpi64 = "dunfell"
So everything seems alright. The build runs fine and I was able to flash the image to an SD Card and test it on my raspberry.
After the OS was ready to use, I got inside cd /
and then ran find . -name *backend*
and other find . -name
of various folders inside my git repository but couldn't find it.
So my question is, what am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来您的食谱未添加到图像中。
将此行添加到您的自定义图像或
locust.conf
:这将迫使要构建和发货的配方。
It seems your recipe is not added to the image.
Add this line to your custom image or
local.conf
:This will force the recipe to be built and shipped.