How to create new variable in Yocto to use it in a recipe ?


Bel Hadj Salem Talel <bhstalel@...>
 

Hi All,

I'm not trying to export or create a variable inside a recipe because that's easy and not my case.
But I want to create a variable that a user can define in local.conf or in other conf files and a recipe that checks the value of that variable and do some stuff with it like:
python (){
 a = d.getVar('MY_VARIABLE' or '')
}
How can I do this?
Thanks, Talel

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