如何在 yocto 中添加新菜谱?

发布于 2025-01-13 04:46:34 字数 689 浏览 5 评论 0原文

我正在尝试添加新配方以在我的映像中安装新软件包。我需要下一个软件包 libnfc5 libnfc-bin libnfc-examples,我在此页面中找到了这些软件包: http://ftp.de.debian.org/debian/pool/main/libn/libnfc/,所以我使用下一个命令来安装软件包:

我不确定是否有必要修改.bb文件生成:libnfc5_1.7.1-4+b1.bb,并且有一次我执行deploy-target,这是我需要做的设备,我需要安装库吗?

I am trying to add a new recipe to install new packages in my image. I need the next packages libnfc5 libnfc-bin libnfc-examples, I have found these packages in this page: http://ftp.de.debian.org/debian/pool/main/libn/libnfc/, so I am using the next commands to install the packages:

I am not sure if is necessary modify the .bb file generate: libnfc5_1.7.1-4+b1.bb, and one time that I execute deploy-target which is necessary to do in my device, Do I need to install the library?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

江南月 2025-01-20 04:46:34

libnfc 已存在于 meta-openembedded/meta-oe/recipes-core/libnfc 中。

确保 meta-oe 位于您的 bblayers.confbitbake 中。

然后,您可以使用 devtool deploy-target 来部署它。

另外,对于 nfc 测试工具,您可以查看此 github 项目 pcsc-tools。

如果您想将其集成到您的映像中,这里有一个配方:

  • meta-custom/recipes-tools/pcsc/pcsc_git.bb
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENCE;md5=94d55d512a9ba36caa9b7df079bae19f"

SRC_URI = "git://github.com/LudovicRousseau/pcsc-tools;protocol=https"

PV = "1.5.7+git${SRCPV}"
SRCREV = "691ae06a6925b7a0e283016c8a05725959beebb3"

S = "${WORKDIR}/git"

DEPENDS = "pcsc-lite"

inherit pkgconfig autotools

然后您可以将其添加到您的映像中:

IMAGE_INSTALL_append = " pcsc"

或者,您可以使用以下命令部署它: devtool 也是如此。

libnfc is already exist in meta-openembedded/meta-oe/recipes-core/libnfc.

Make sure meta-oe is in your bblayers.conf and bitbake it.

Then, you can deploy it with devtool deploy-target.

Also, for nfc test tool you can check this github project pcsc-tools.

Here is a recipe if you want to integrate it to your image:

  • meta-custom/recipes-tools/pcsc/pcsc_git.bb
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENCE;md5=94d55d512a9ba36caa9b7df079bae19f"

SRC_URI = "git://github.com/LudovicRousseau/pcsc-tools;protocol=https"

PV = "1.5.7+git${SRCPV}"
SRCREV = "691ae06a6925b7a0e283016c8a05725959beebb3"

S = "${WORKDIR}/git"

DEPENDS = "pcsc-lite"

inherit pkgconfig autotools

You can then add it to your image:

IMAGE_INSTALL_append = " pcsc"

or, you can deploy it using devtool as well.

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