Search code examples
opencvembedded-linuxyocto

Exclude opencv or any unwanted package from building in Yocto completely


opencv is taking a lot of time to fetch and compile out of all other recipes. I am doing a headless image and I am sure I don't need opencv at all. Is there any method?

I tried checking all files inside conf folders (layer.conf) but cannot find anything related.


Solution

  • opencv is built because an image eplicitly installs it, or it is required as a dependency to an installed package. You must find how it is required and fix this unused dependency. Here's a post that should help you find the recipe that depends on opencv: Yocto: How to know why a package is included?