<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Sebastian,<div class=""><br class=""></div><div class=""> I'm not a waf expert, but might this section in their book help?</div><div class=""><br class=""></div><div class=""><a href="https://waf.io/book/#_fundamental_waf_commands" class="">https://waf.io/book/#_fundamental_waf_commands</a></div><div class=""><br class=""></div><div class="">Can variables `top` and `out` in the example there be manipulated to do want you want?</div><div class=""><br class=""></div><div class="">Regards, Andrew</div><div class=""><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On 5 Nov 2020, at 16:45, Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de" class="">sebastian.huber@embedded-brains.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On 05/11/2020 17:09, Joel Sherrill wrote:<br class=""><br class=""><blockquote type="cite" class=""><br class=""><br class="">On Thu, Nov 5, 2020 at 10:04 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de" class="">sebastian.huber@embedded-brains.de</a> <<a href="mailto:sebastian.huber@embedded-brains.de" class="">mailto:sebastian.huber@embedded-brains.de</a>>> wrote:<br class=""><br class=""> Hello,<br class=""><br class=""> I tried to do an out of tree build with waf:<br class=""><br class=""> ~/src/rtems/waf configure --rtems-config $PWD/config.ini --out<br class=""> $PWD/build --top $HOME/src/rtems<br class=""><br class=""> This seems to work, however, I get a message like this (CWD /home<br class=""> ...):<br class=""><br class=""> ~/src/rtems/waf --out $PWD/build --top $HOME/src/rtems<br class=""> Waf: Entering directory<br class=""> `/home/EB/sebastian_h/src/rtems-source-builder/tmp/build'<br class=""> Waf: Leaving directory<br class=""> `/home/EB/sebastian_h/src/rtems-source-builder/tmp/build'<br class=""> 'build' finished successfully (0.332s)<br class=""> Waf: Entering directory<br class=""> `/home/EB/sebastian_h/src/rtems-source-builder/tmp/build/sparc/erc32'<br class=""> CWD /home/EB/sebastian_h/src/rtems-source-builder/tmp is not under<br class=""> /home/EB/sebastian_h/src/rtems, forcing --targets=* (run distclean?)<br class=""> Waf: Leaving directory<br class=""> `/home/EB/sebastian_h/src/rtems-source-builder/tmp/build/sparc/erc32'<br class=""> 'build_sparc/erc32' finished successfully (0.438s)<br class=""><br class=""> I this something to worry about? Are out of tree builds supported<br class=""> by waf?<br class=""><br class=""><br class="">I hope they can be. Or at least the build directory name changed based<br class="">on user input.<br class=""><br class="">For automated testing, I have been building multiple BSPs in parallel<br class="">completely independently. I don't know a way to do this with waf.<br class=""></blockquote><br class="">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.<br class=""><br class="">I need some support from a waf expert to add proper support for this to the wscript.<br class=""><br class="">Another open issue is the --target option which currently doesn't work.<br class=""><br class="">-- <br class="">embedded brains GmbH<br class="">Sebastian HUBER<br class="">Dornierstr. 4<br class="">82178 Puchheim<br class="">Germany<br class=""><a href="mailto:sebastian.huber@embedded-brains.de" class="">email: sebastian.huber@embedded-brains.de</a><br class="">Phone: +49-89-18 94 741 - 16<br class="">Fax: +49-89-18 94 741 - 08<br class="">PGP: Public key available on request.<br class=""><br class="">embedded brains GmbH<br class="">Registergericht: Amtsgericht München<br class="">Registernummer: HRB 157899<br class="">Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler<br class="">Unsere Datenschutzerklärung finden Sie hier: https://embedded-brains.de/datenschutzerklaerung/<br class=""><br class="">_______________________________________________<br class="">devel mailing list<br class="">devel@rtems.org<br class="">http://lists.rtems.org/mailman/listinfo/devel</div></div></blockquote></div><br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">--------------------------------------------------------------------<br class="">Andrew Butterfield Tel: +353-1-896-2517 Fax: +353-1-677-2204<br class="">Lero@TCD, Head of Software Foundations & Verification Research Group<br class="">School of Computer Science and Statistics,<br class="">Room G.39, O'Reilly Institute, Trinity College, University of Dublin<br class=""> <a href="http://www.scss.tcd.ie/Andrew.Butterfield/" class="">http://www.scss.tcd.ie/Andrew.Butterfield/</a><br class="">--------------------------------------------------------------------</div>
</div>
<br class=""></body></html>