[oe] [recipe]variable shared

Khem Raj raj.khem at gmail.com
Wed Sep 12 18:40:13 UTC 2012


On Wed, Sep 12, 2012 at 1:29 AM, Sophie Bonnouvrier
<sophie.bonnouvrier-ext at oneaccess-net.com> wrote:
>
>
> I would like to set a variable in a recipe and used it in another one.
> but when I get the variable in the second recipe the value is none.
> How can I shared variable ?

you have to define such variables in global metadata. any metadata
defined in recipe is recipe specific
may be add it to configuration metadata or some sort of abstracted out class.

>
> Sophie
>
>
> recipe 1:
> export XENO_DIR = "${@get_xenomai_dir(bb, d)} "
> export XENO_PV   = "${@get_xenomai_pv(bb, d)} "
>
> recipe 2:
>   xeno_dir = bb.data.getVar('XENO_DIR',d,1)
>   xeno_pv  = bb.data.getVar('XENO_PV',d,1)




More information about the Openembedded-devel mailing list