[OE-core] [PATCH] devshell: symlink $TOPDIR to $WORKDIR/topdir

Christopher Larson chris_larson at mentor.com
Wed Sep 16 15:16:04 UTC 2015


On Tue, Sep 15, 2015 at 3:56 PM, Christopher Larson <kergoth at gmail.com>
wrote:

> From: Christopher Larson <chris_larson at mentor.com>
>
> It's quite common to need to copy files out of the devshell back to your
> layers, but most of the variables referring to such paths are not exported
> (and in some cases, should not be, as it'll affect buildsystems we run,
> e.g.
> TOPDIR/BUILDDIR). To resolve this while still making it easier to get files
> out of the devshell, create a ${WORKDIR}/topdir symlink to ${TOPDIR},
> removing
> it after exiting the devshell.
>
> [YOCTO #7670]
>
> Signed-off-by: Christopher Larson <chris_larson at mentor.com>
>

This should probably have been an RFC, thinking about it, as I'm not
entirely happy with this implementation, but I can't think of a good
alternative, lacking a way to set unexported shell variables in the shell
spawned by the terminal, and there's no real way to do that, since we don't
know the shell the user is using. I think this is a decent alternative, if
not a pretty one. Thoughts welcome.
-- 
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150916/65a731c5/attachment-0002.html>


More information about the Openembedded-core mailing list