[OE-core] [PATCH V3 3/3] usersettings.bbclass: add a new bbclass
Paul Eggleton
paul.eggleton at linux.intel.com
Thu Jul 11 13:07:24 UTC 2013
On Thursday 11 July 2013 13:58:17 Paul Eggleton wrote:
> On Thursday 11 July 2013 19:11:39 Qi.Chen at windriver.com wrote:
> > +IMAGE_INSTALL_append += "${@['', 'base-passwd
> > shadow'][bool(d.getVar('USER_GROUP_SETTINGS', True))]}"
>
> This is a bit ugly. We should avoid using _append += since it is confusing,
> and we have base_conditional for things like this. I'd suggest:
>
> IMAGE_INSTALL_append = "${@base_conditional('USER_GROUP_SETTINGS', '1', '
> base-passwd shadow', '', d)}"
Actually reading this again I've misinterpreted what it's supposed to be
doing. Unfortunately I don't think we have a neat base_ifset() or similar so
perhaps this will need to be left as-is. I still think we should avoid _append
+= however.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the Openembedded-core
mailing list