[oe] Please submit your unindexed layers

Chris Larson clarson at kergoth.com
Tue May 7 13:53:27 UTC 2013


On Tue, May 7, 2013 at 3:49 AM, Carlos Rafael Giani
<dv at pseudoterminal.org>wrote:

> * it uses _prepend in various places; I was able to replace all but one of
> them with prefuncs. The remaining one is populate_packages_prepend , and I
> just do not see how this could be turned into a prefunc. (And it is
> necessary to use it, because do_packages_split apparently cannot be used
> anywhere else.)
>   I think prefuncs are cleaner, because they do not modify an existing
> function. Also, if the indentation style changes again someday, prefuncs
> cause less problems than _prepend does.
>

Warning: as things stand today, as far as I know, prefuncs/postfuncs don't
affect the checksums of the variable they interact with, so changing the
contents of a prefunc/postfunc won't cause the function to be re-run
automatically. You can work around this by adding it to vardeps as well:

    do_foo[vardeps] += "bar"
    do_foo[prefuncs] += "bar"
-- 
Christopher Larson



More information about the Openembedded-devel mailing list