<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 5, 2013 at 2:20 PM, Martin Jansa <span dir="ltr"><<a href="mailto:martin.jansa@gmail.com" target="_blank">martin.jansa@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Apr 05, 2013 at 11:20:44AM +0200, Marcin Juszkiewicz wrote:<br>
> For last few months I am working on fixing Linaro binary cross<br>
> toolchains and their support in OpenEmbedded. Got to point when they<br>
> work (both AArch64 and ARMv7a ones) for single packages but problem<br>
> starts when I want to create image...<br>
<br>
</div>Today I got different king of issue with external toolchain.<br>
<br>
systemd is using AC_PATH_TOOL(OBJCOPY, objcopy)<br>
but host prefix in OE is not the same as in binary toolchain (different TARGET_VENDOR)<br>
so it looks for configure:14545: checking for arm-foo-linux-gnueabi-objcopy<br>
while binary toolchain has only arm-bar-linux-gnueabi-objcopy<br>
<br>
and because arm-foo-linux-gnueabi-objcopy wasn't found it continues:<br>
configure:14588: checking for objcopy<br>
configure:14606: found /usr/bin/objcopy<br>
and bam a lot later when it tries objcopy from host on some arm lib<br>
<br>
Interesting that systemd is first recipe in our image where I've noticed<br>
issues like this<br>
<br>
Any idea how to easily resolve this without checking every <a href="http://configure.ac" target="_blank">configure.ac</a><br>
how it's looking for e.g. objcopy?</blockquote></div><br>export OBJCOPY in the environment to the one based on TARGET_PREFIX rather than TARGET_SYS, and it'll use that.<br>-- <br>Christopher Larson</div></div>