bitbake没有提取git repo,也没有抛出任何错误

发布于 2025-01-19 11:11:15 字数 1386 浏览 4 评论 0原文

我正在尝试在控制台图像中添加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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

债姬 2025-01-26 11:11:15

看来您的食谱未添加到图像中。

将此行添加到您的自定义图像或locust.conf

IMAGE_INSTALL_append = " backend"

这将迫使要构建和发货的配方。

It seems your recipe is not added to the image.

Add this line to your custom image or local.conf:

IMAGE_INSTALL_append = " backend"

This will force the recipe to be built and shipped.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文