<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 15, 2015 at 3:56 PM, Christopher Larson <span dir="ltr">&lt;<a href="mailto:kergoth@gmail.com" target="_blank">kergoth@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":2uj" class="a3s" style="overflow:hidden">From: Christopher Larson &lt;<a href="mailto:chris_larson@mentor.com">chris_larson@mentor.com</a>&gt;<br>
<br>
It&#39;s quite common to need to copy files out of the devshell back to your<br>
layers, but most of the variables referring to such paths are not exported<br>
(and in some cases, should not be, as it&#39;ll affect buildsystems we run, e.g.<br>
TOPDIR/BUILDDIR). To resolve this while still making it easier to get files<br>
out of the devshell, create a ${WORKDIR}/topdir symlink to ${TOPDIR}, removing<br>
it after exiting the devshell.<br>
<br>
[YOCTO #7670]<br>
<br>
Signed-off-by: Christopher Larson &lt;<a href="mailto:chris_larson@mentor.com">chris_larson@mentor.com</a>&gt;</div></blockquote></div><br>This should probably have been an RFC, thinking about it, as I&#39;m not entirely happy with this implementation, but I can&#39;t think of a good alternative, lacking a way to set unexported shell variables in the shell spawned by the terminal, and there&#39;s no real way to do that, since we don&#39;t know the shell the user is using. I think this is a decent alternative, if not a pretty one. Thoughts welcome.<br>-- <br><div class="gmail_signature"><div dir="ltr">Christopher Larson<br>kergoth at gmail dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div></div>
</div></div>