[yocto] remove Yocto systemd features

Burton, Ross ross.burton at intel.com
Fri Apr 15 08:25:11 PDT 2016


On 14 April 2016 at 21:05, Michael Hu <pxmyhdev at gmail.com> wrote:

> Yocto pulls in systemd and enable certain features by default.I am trying
> to remove some features in systemd *225* yocto builds such as logind
> (just for testing purpose), I was trying to use a '*.bbappend' file with
> 'PACKAGECONFIG_append' to achieve that, but seems like it only takes
> options defined in poky/meta/recipes-core/systemd/systemd_225.bb file.
> systemd_229.bb has logind option, but I'd like to do it in system_225.bb
>

If the recipe doesn't have a PACKAGECONFIG then you can either copy it from
229 and add it in the bbappend:

PACKAGECONFIG[logind] = "--enable-logind,--disable-logind"

As it's then a packageconfig option that isn't selected, it will be
disabled.  That's not very clear though so you could just directly pass the
configure options:

EXTRA_OECONF_append = " --disable-logind"

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160415/8a53041b/attachment.html>


More information about the yocto mailing list