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

Chris Larson clarson at kergoth.com
Sun Apr 1 14:47:00 UTC 2012


On Sun, Apr 1, 2012 at 6:10 AM, Andreas Müller
<schnitzeltony at googlemail.com> wrote:
> 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?

There are no steps, because there is no support for such a thing.
-- 
Christopher Larson




More information about the Openembedded-core mailing list