<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 27, 2019 at 6:26 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 27/11/2019 13:17, Hesham Almatary wrote:<br>
> On Wed, 27 Nov 2019 at 11:59, Sebastian Huber<br>
> <<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>> wrote:<br>
>><br>
>> On 27/11/2019 12:49, Hesham Almatary wrote:<br>
>>> Hi Sebastian,<br>
>>><br>
>>> Thanks for that great effort. I'd aim to use this build system for my<br>
>>> RISC-V development.<br>
>>><br>
>>> I followed the user manual trying to build RISC-V targets and RTEMS<br>
>>> (aaf7f8b84) and here are a few comments:<br>
>>><br>
>>> * .waf bsp_defaults doesn't give an error when mistyping the BSP name,<br>
>>> but just outputs an empty .ini file.<br>
>><br>
>> If there is no matching BSP, then you get nothing. I think this is the<br>
>> right thing to do. Doing a<br>
>><br>
>> ./waf bsp_defaults --rtems-bsps=riscv/rv64imac_medany > bsps.ini<br>
>><br>
>> is not a recommended use case. You should only set the necessary minimum<br>
>> of options.<br>
>><br>
> Not sure, I only wanted to build a specific BSP variant without having<br>
> to build all variants. Is that not recommended?<br>
<br>
This is fine, but I would not dump all options into the config.ini, <br>
maybe just:<br>
<br>
[riscv/rv64imac_medany]<br>
COMPILER = clang<br>
BUILD_TESTS = True<br>
<br>
> <br>
>>> * ./waf complains about not finding gcc if I don't give it the<br>
>>> --prefix, even though it's in my PATH<br>
>><br>
>> Yes, this is currently the intentional behaviour. Should this be changed to<br>
>><br>
>> conf.find_program(XYZ, path_list=tools +<br>
>> environ.get('PATH','').split(os.pathsep))<br>
>><br>
>> ?<br>
> I think that makes sense (also for default prefix?), but it would<br>
> still be useful to be able to override that with --prefix to use<br>
> different installed toolchains if needed.<br>
<br>
Chris, what is your opinion on this?<br></blockquote><div><br></div><div>I think the PATH should be honored unless a tools path option is specified.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> <br>
>><br>
>>> * dltests fail to build on RISC-V when BUILD_TESTS = True<br>
>><br>
>> Yes, this is work in progress. I should work now.<br>
>><br>
> Thanks.<br>
> <br>
>>> * Can't find any "*.exe" after a default build:<br>
>><br>
>> Ok, this is a bug, you should find the samples.<br>
>><br>
> Is it reproducible?<br>
<br>
I will have a look at this later.<br>
<br>
> <br>
>>> * Can't notice a difference when I pass rtems-compiler=clang, it still<br>
>>> builds with gcc.<br>
>><br>
>> You have to set the compiler in the config.ini file, see latest user<br>
>> documentation:<br>
>><br>
> Thanks it works fine when I add the flag to config.ini. Is<br>
> rtems-compiler=clang useless this way?<br>
<br>
This option is useful to get the default values depending on the <br>
selected compiler, see example in:<br>
<br>
> <br>
>> <a href="https://ftp.rtems.org/pub/rtems/people/sebh/user.pdf" rel="noreferrer" target="_blank">https://ftp.rtems.org/pub/rtems/people/sebh/user.pdf</a><br>
>><br>
>><br>
>> --<br>
>> Sebastian Huber, embedded brains GmbH<br>
>><br>
>> Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
>> Phone : +49 89 189 47 41-16<br>
>> Fax : +49 89 189 47 41-09<br>
>> E-Mail : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
>> PGP : Public key available on request.<br>
>><br>
>> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone : +49 89 189 47 41-16<br>
Fax : +49 89 189 47 41-09<br>
E-Mail : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
PGP : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div>