<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 21 March 2017 at 13:23, Robert P. J. Day <span dir="ltr"><<a href="mailto:rpjday@crashcourse.ca" target="_blank">rpjday@crashcourse.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id="gmail-:3r" class="gmail-a3s gmail-aXjCH gmail-m15af10a91f4bfc24"> i'm sure i could tease out how to hack that Makefile, but is there<br>
another recipe with a similar structure i could just steal a Makefile<br>
from?</div></blockquote></div><br>This used to work because we used to pass -e to every make:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra"> -e, --environment-overrides</div><div class="gmail_extra"> Give variables taken from the environment precedence over variables from makefiles.</div><div class="gmail_extra"><br></div><div class="gmail_extra">So the exported CC=my-cross-gcc in bitbake.conf overrode the CC assignment in the Makefile.</div><div class="gmail_extra"><br></div><div class="gmail_extra">This is a vile hack though so we don't do itnow. You'll just need to set CC etc when calling make, trivially done with EXTRA_OEMAKE.</div><div class="gmail_extra"><br></div><div class="gmail_extra">In fact this is even in the documentation: <a href="http://www.yoctoproject.org/docs/2.2.1/dev-manual/dev-manual.html#new-recipe-makefile-based-package">http://www.yoctoproject.org/docs/2.2.1/dev-manual/dev-manual.html#new-recipe-makefile-based-package</a></div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div></div>