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?
2
Answers
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
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.