Write contents of recipe variable into a configuration file

Andy Pont


I’m having a Friday, brain-fade moment.  I want to define a variable within the wpa_supplicant.bbappend file:


This value needs to be propagated into the wpa_supplicant.conf configuration file for the “ctrl_interface_group” setting before the file gets written into the target file system.

 I once saw a recipe that defined something similar as an arbitrary value in the configuration file i.e. in this case we would use:


...and then used file and string manipulation to put the correct value there during the do_install() phase.

I now can’t find that recipe to see how it was done nor can I work out how it was done.


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