On Wed, Sep 12, 2012 at 1:29 AM, Sophie Bonnouvrier
<[email protected]> 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)

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to