Out of tree builds with waf?

Andrew Butterfield Andrew.Butterfield at scss.tcd.ie
Thu Nov 5 17:16:26 UTC 2020


Hi Sebastian,

 I'm not a waf expert, but might this section in their book help?

https://waf.io/book/#_fundamental_waf_commands <https://waf.io/book/#_fundamental_waf_commands>

Can variables `top` and `out` in the example there be manipulated to do want you want?

Regards, Andrew


> On 5 Nov 2020, at 16:45, Sebastian Huber <sebastian.huber at embedded-brains.de> wrote:
> 
> On 05/11/2020 17:09, Joel Sherrill wrote:
> 
>> 
>> 
>> On Thu, Nov 5, 2020 at 10:04 AM Sebastian Huber <sebastian.huber at embedded-brains.de <mailto:sebastian.huber at embedded-brains.de>> wrote:
>> 
>>    Hello,
>> 
>>    I tried to do an out of tree build with waf:
>> 
>>    ~/src/rtems/waf configure --rtems-config $PWD/config.ini --out
>>    $PWD/build --top $HOME/src/rtems
>> 
>>    This seems to work, however, I get a message like this (CWD /home
>>    ...):
>> 
>>    ~/src/rtems/waf --out $PWD/build --top $HOME/src/rtems
>>    Waf: Entering directory
>>    `/home/EB/sebastian_h/src/rtems-source-builder/tmp/build'
>>    Waf: Leaving directory
>>    `/home/EB/sebastian_h/src/rtems-source-builder/tmp/build'
>>    'build' finished successfully (0.332s)
>>    Waf: Entering directory
>>    `/home/EB/sebastian_h/src/rtems-source-builder/tmp/build/sparc/erc32'
>>    CWD /home/EB/sebastian_h/src/rtems-source-builder/tmp is not under
>>    /home/EB/sebastian_h/src/rtems, forcing --targets=* (run distclean?)
>>    Waf: Leaving directory
>>    `/home/EB/sebastian_h/src/rtems-source-builder/tmp/build/sparc/erc32'
>>    'build_sparc/erc32' finished successfully (0.438s)
>> 
>>    I this something to worry about? Are out of tree builds supported
>>    by waf?
>> 
>> 
>> I hope they can be. Or at least the build directory name changed based
>> on user input.
>> 
>> For automated testing, I have been building multiple BSPs in parallel
>> completely independently. I don't know a way to do this with waf.
> 
> If out of tree builds and a read-only source tree should be supported by the build system, then this should be added to the goals in eng/build-system.rst.
> 
> I need some support from a waf expert to add proper support for this to the wscript.
> 
> Another open issue is the --target option which currently doesn't work.
> 
> -- 
> embedded brains GmbH
> Sebastian HUBER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: sebastian.huber at embedded-brains.de
> Phone: +49-89-18 94 741 - 16
> Fax:   +49-89-18 94 741 - 08
> PGP: Public key available on request.
> 
> embedded brains GmbH
> Registergericht: Amtsgericht München
> Registernummer: HRB 157899
> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
> Unsere Datenschutzerklärung finden Sie hier: https://embedded-brains.de/datenschutzerklaerung/
> 
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel

--------------------------------------------------------------------
Andrew Butterfield     Tel: +353-1-896-2517     Fax: +353-1-677-2204
Lero at TCD, Head of Software Foundations & Verification Research Group
School of Computer Science and Statistics,
Room G.39, O'Reilly Institute, Trinity College, University of Dublin
                         http://www.scss.tcd.ie/Andrew.Butterfield/
--------------------------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20201105/7942085a/attachment-0001.html>


More information about the devel mailing list