DISTRO_FEATURES modification from image recipe?
Hi,
Is it possible to manipulate DISTRO_FEATURES from my image recipe file?
In my case I added line:DISTRO_FEATURES += " systemd"
to local.conf and it worked (added systemd), but when I moved this line to my image.bb recipe I got build errors:
ERROR: Required build target 'my-image' has no buildable providers. Missing or unbuildable dependency chain was: ['my-image', 'my-app', 'systemd']
I already have in my image recipe line:DISTRO_FEATURES_append = " gles2"
so I tried to add systemd to it like so:DISTRO_FEATURES_append = " gles2 systemd"
but it didn't help.
Can you help a me?
What should I put and where to enable distro-feature: systemd without manipulating with local.conf? Is that possible?
Thanks
Piotr Lewicki
Quoted 2 lines · piotr.lewicki
Is it possible to manipulate
DISTRO_FEATURESfrom my image recipe file?
No. You should control distro features in your distro configuration or if they're for local tweaking in your local.conf. Would it be helpful if you explained why you want to enable systemd in some images but not others? In this case the systemd feature isn't exclusive with sysvinit, you can enable both and pick on a per-image basis what init system is used.
Ross
Thanks.
I actually want to enable systemd in all packages, but my current DISTRO is "poky".
Can you point me some documentation where I can get information on how to create a distro file based on poky and add systemd there?
Thanks,
Piotr
Quoted 10 lines · Ross
On 7 June 2016 at 13:10, piotr.lewicki <[email protected] <mailto:[email protected]>> wrote:
Is it possible to manipulate
DISTRO_FEATURESfrom my image recipe file?No. You should control distro features in your distro configuration or if they're for local tweaking in your local.conf. Would it be helpful if you explained why you want to enable systemd in some images but not others? In this case the systemd feature isn't exclusive with sysvinit, you can enable both and pick on a per-image basis what init system is used.
Ross
Quoted 5 lines · piotr.lewicki
I actually want to enable systemd in all packages, but my current DISTRO is "poky".
Can you point me some documentation where I can get information on how to create a distro file based on poky and add systemd there?
http://www.yoctoproject.org/docs/2.1/mega-manual/mega-manual.html#creating-your-own-distribution
Ross