<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 23 June 2017 at 11:57, Adam Trhon <span dir="ltr"><<a href="mailto:adam.trhon@tbs-biometrics.com" target="_blank">adam.trhon@tbs-biometrics.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":4e9" class="a3s aXjCH m15cd499b0cbb16eb">According to documentation, this is expanded during recipe parsing. At<br>
that time ${S}/oe_arguments.txt does not yet exits (it exists only after<br>
do_unpack). I tried it and the build failed with python Exception:<br>
FileNotFound.<br></div></blockquote><div><br></div><div>Yes, good point. In m defence it was late. :)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":4e9" class="a3s aXjCH m15cd499b0cbb16eb">
I tried<br>
<br>
python do_setup_extra_oecmake() {<br>
d.appendVar("EXTRA_OECMAKE", " " + open(d.expand("${S}/oe_<wbr>arguments.txt")).read())<br>
print("adding "+d.expand("${S}/oe_arguments.<wbr>txt"))<br>
}<br>
<br>
addtask do_setup_extra_oecmake after do_unpack before do_configure<br>
<br>
but it did not work as well. The "adding.... " line is printed<br>
correctly in log.do_setup_extra_oecmake, the file exists, but the<br>
arguments in it are not used (I checked run.do_configure).<br></div></blockquote></div><br>Have a look at log.do_configure and verify what options are being passed. I'm also assuming that you're using the cmake class here.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>