Let’s say I have a recipe foo.bb containing:
PACKAGECONFIG[option1] = "..."
PACKAGECONFIG[option2] = "..."
Now, I want to write a recipe for package bar. In order to run, bar requires package foo to be compiled with option option1 but not option2.
I know that Yocto is inspired from Gentoo Portage. In portage, this king of dependency would be written (https://devmanual.gentoo.org/general-concepts/dependencies/#built-with-use-dependencies):
RDEPENDS="foo[option1,-option2]"
How can I do the same with Yocto?