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

Christopher Larson clarson at kergoth.com
Thu Oct 8 21:00:55 UTC 2015


On Thu, Oct 8, 2015 at 2:00 PM, Christopher Larson <clarson at kergoth.com>
wrote:

> On Thu, Oct 8, 2015 at 6:16 AM, Robert Yang <liezhi.yang at windriver.com>
> wrote:
>
>>  oe_runconf () {
>> -       cfgscript="${S}/configure"
>> +       # 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 :)
-- 
Christopher Larson
clarson at kergoth 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/20151008/c08a02b2/attachment-0002.html>


More information about the Openembedded-core mailing list