How to set environment variables inside a recipe?


Bodke, Kishore K <kishore.k.bodke@...>
 

Hi,

 

I am writing a recipe to build a driver specific for  my BSP.

 

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?

 

Any suggestions would be helpful.

 

Thanks

Kishore.

Join {yocto@lists.yoctoproject.org to automatically receive all group messages.