All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: "Bodke, Kishore K" <kishore.k.bodke@intel.com>
Cc: yocto@yoctoproject.org
Subject: Re: How to set environment variables inside a recipe?
Date: Fri, 20 Jul 2012 11:14:19 +0100	[thread overview]
Message-ID: <5599187.lbIDYtH909@helios> (raw)
In-Reply-To: <D956029D25CF204F948EA0FB515E1EE20AD3AA4C@ORSMSX105.amr.corp.intel.com>

On Thursday 19 July 2012 18:16:45 Bodke, Kishore K wrote:
> The driver needs a bunch of environmental variables to be set ( specific to
> driver only ) to build.
> 
> Right now to move forward I am doing like below in my recipe to build it.
> 
> export  AAA = "${S}"
> export BBB = "${B}"
> export CCC = "{S}/build-system"
> export DDD = "{S}/env-files"
> 
> Is this right way to do?  Are there any other ways to set the environment
> variables inside a recipe?

This is valid; I would recommend setting them within the function though (e.g. 
do_configure) rather than at the recipe level, assuming that works for your 
case.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


  reply	other threads:[~2012-07-20 10:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-19 18:16 How to set environment variables inside a recipe? Bodke, Kishore K
2012-07-20 10:14 ` Paul Eggleton [this message]
2012-07-20 17:05   ` Bodke, Kishore K
2012-07-20 17:13     ` Robert P. J. Day
2012-07-20 18:14       ` Bodke, Kishore K

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=5599187.lbIDYtH909@helios \
    --to=paul.eggleton@linux.intel.com \
    --cc=kishore.k.bodke@intel.com \
    --cc=yocto@yoctoproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.