[yocto] How to set environment variables inside a recipe?
Paul Eggleton
paul.eggleton at linux.intel.com
Fri Jul 20 03:14:19 PDT 2012
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
More information about the yocto
mailing list