[OE-core] What causes a variable being static/global

Andreas Müller schnitzeltony at googlemail.com
Sun Apr 1 13:10:12 UTC 2012


On Tue, Mar 27, 2012 at 5:32 PM, Andreas Müller
<schnitzeltony at googlemail.com> wrote:
> Hi,
>
> some more stupid questions:
>
> What causes a variable being global (accessible by all recipes)?
> Does the declaration in *.conf lead to global variable?
> Are there other mechanisms forcing global scope?
>
> Thanks in advance
>
> Andreas

Maybe my intention was not clear. For a generic run-once
implementation (see patch for gtk-icon-cache.bbclass [1]) I need
variables which are shared by all recipes. Each recipe can append data
so the 'sum' is used at image creation. What steps are necessary
creating a variable which is existing as one instance for all recipes
using it?

Andreas

[1]  http://patches.openembedded.org/patch/24179/




More information about the Openembedded-core mailing list