[OE-core] [PATCH 7/8] autotools.bbclass: use relative path to run configure script

Burton, Ross ross.burton at intel.com
Thu Oct 8 21:06:45 UTC 2015


On 8 October 2015 at 22:00, Christopher Larson <clarson at kergoth.com> wrote:

> +       # Use relative path for S to avoid buildpaths in files
>>> +       relative_s=`python -c "import os; print os.path.relpath('${S}',
>>> '.')"`
>>> +       cfgscript="$relative_s/configure"
>>>
>>
>> Why not just use inline python here, rather than calling out to an
>> external python process at task execution time?
>
>
> Oh, nevermind, of course oe_runconf can be run from any number of paths :)


Why not use realpath?

ross at flashheart ~/Yocto/poky/meta/recipes-devtools/qemu (mut)
$ realpath --relative-to=. ~/Yocto/poky/meta/recipes-support/mpfr/
../../recipes-support/mpfr

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20151008/57eb88ba/attachment-0002.html>


More information about the Openembedded-core mailing list