Re: How to enabled systemd unit files automatically using recipe?


Sourabh Hegde
 

I have a question here:

If I something like below in my recipe

SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'one.service', '', d)}"

Then, can I add multiple files with:

SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'one.service one.path two.service two.path', '', d)}"

?

Is this valid? Or should I use only SYSTEMD_SERVICE:${PN} = "one.service two.service one.path two.path" ?

Thanks in advance

Join yocto@lists.yoctoproject.org to automatically receive all group messages.