Reputation: 5511
How can I use bbclass
in a recipe. Is there any dependencies to use this bbclass
or directly can I use?
e.g
inherit autotools
inherit systemd
In what situation I need to use the above bbclasses. I've read the mega-manual but I did not understand anything. Please explain how to use bbclasses.
Upvotes: 0
Views: 1103
Reputation: 389
You inherit classes to bring their functionality to your recipe.
For example, inheriting systemd class gives you ability to set files for installation to your package(s).
SYSTEMD_SERVICE_${PN} = "connman.service"
Or you can disable auto-start of you services by using
SYSTEMD_AUTO_ENABLE = "disable"
For every special case of using bbclass you should refer to documentation.
If you need samples of usage, just do a grep on your "meta-*" folders and you will find a lot of recipes with actual usage of class.
grep -rI "inherit autotools" ./
Upvotes: 3