[yocto] What symbol contains the current sysroot?
Nicolas Dechesne
nicolas.dechesne at linaro.org
Fri Aug 23 15:23:11 PDT 2013
On Sat, Aug 24, 2013 at 12:12 AM, Paul D. DeRocco <pderocco at ix.netcom.com>wrote:
> In a do_compile script within a recipe, what symbol can I use to refer to
> the sysroot in effect during the execution? And whatever it is, is it a
> real environment variable, or some symbol that is substituted by bitbake
> before executing the script?
>
in the .bb file you can use ${STAGING_DIR_TARGET} which gives you the
sysroot.
this variable will be expanded/substituted when bitbake generates the
run.do_compile script to its actual full path.
if you want/need an env variable, you have to set it:
export FOOBAR = "${STAGING_DIR_TARGET}"
then you can use FOOBAR.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130824/e2f32c2d/attachment.html>
More information about the yocto
mailing list