如何在 yocto 中添加新菜谱?
我正在尝试添加新配方以在我的映像中安装新软件包。我需要下一个软件包 libnfc5 libnfc-bin libnfc-examples,我在此页面中找到了这些软件包: http://ftp.de.debian.org/debian/pool/main/libn/libnfc/,所以我使用下一个命令来安装软件包:
devtool 添加 libnfc5 http://ftp.de.debian.org/debian/pool/main/libn/libnfc/libnfc5_1.7.1-4+b1_armhf.deb
devtool 构建 libnfc5
devtool 部署目标 libnfc5 root@my-ip
我不确定是否有必要修改.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:
devtool add libnfc5 http://ftp.de.debian.org/debian/pool/main/libn/libnfc/libnfc5_1.7.1-4+b1_armhf.deb
devtool build libnfc5
devtool deploy-target libnfc5 root@my-ip
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
https://medium.com/@lokeshsharma596/yocto-lab-02-creating-custom-layer-and-writing-recipe-for-hello-world-f4438311bbfc
这是一篇关于食谱。
https://medium.com/@lokeshsharma596/yocto-lab-02-creating-custom-layer-and-writing-recipe-for-hello-world-f4438311bbfc
this is a very good article on recipe.
libnfc
已存在于meta-openembedded/meta-oe/recipes-core/libnfc
中。确保
meta-oe
位于您的bblayers.conf
和bitbake
中。然后,您可以使用 devtool deploy-target 来部署它。
另外,对于
nfc
测试工具,您可以查看此 github 项目 pcsc-tools。如果您想将其集成到您的映像中,这里有一个配方:
然后您可以将其添加到您的映像中:
或者,您可以使用以下命令部署它:
devtool
也是如此。libnfc
is already exist inmeta-openembedded/meta-oe/recipes-core/libnfc
.Make sure
meta-oe
is in yourbblayers.conf
andbitbake
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:
You can then add it to your image:
or, you can deploy it using
devtool
as well.