Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Sophie Bonnouvrier <sophie.bonnouvrier-ext@oneaccess-net.com>
To: openembedded-devel@lists.openembedded.org
Subject: [recipe]variable shared
Date: Wed, 12 Sep 2012 10:29:53 +0200	[thread overview]
Message-ID: <50504801.8020006@oneaccess-net.com> (raw)

hello,

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 ?

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)



             reply	other threads:[~2012-09-12  8:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-12  8:29 Sophie Bonnouvrier [this message]
2012-09-12 18:40 ` [recipe]variable shared Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50504801.8020006@oneaccess-net.com \
    --to=sophie.bonnouvrier-ext@oneaccess-net.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox