On Sat, Aug 24, 2013 at 12:12 AM, Paul D. DeRocco <pdero...@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.
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to