Discussion:
[yocto] Need Support- Variable exporting
bhuvana easwari
2018-11-19 12:20:42 UTC
Permalink
Hi,

I need support on the below issue.

1) Actually we are trying to build two machine from one meta-layer based on
some choice.
2) Both devices having different configuration files.
3) Now we have to export a variable from machine configuration conf file to
layer.conf
4) Based on the exported variable value,we are choosing device specific
conf file.

Can you please give some input on this

Regards,
Bhuvaneswari K
Dimitris Tassopoulos
2018-12-05 11:04:13 UTC
Permalink
AFAIK, you can't have dynamic variables in the local.conf that you
can control from bitbake.
If you want to dynamically pass a variable to bitbake, you need to
use the `-e` option and pass an environment file with you dynamic
variables in there. Or use a custom script that calls bitbake and with
some `sed` magic replace dummy variables in your local.conf.

Regards,
Dimitris
Post by bhuvana easwari
Hi,
I need support on the below issue.
1) Actually we are trying to build two machine from one meta-layer based
on some choice.
2) Both devices having different configuration files.
3) Now we have to export a variable from machine configuration conf file
to layer.conf
4) Based on the exported variable value,we are choosing device specific
conf file.
Can you please give some input on this
Regards,
Bhuvaneswari K
--
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
Loading...