<div dir="ltr"><div>I checked that erc32 is using     rtems-sparc.bset      file</div><div>Inside it i found, it is using   rsb/rtems/config/tools/rtems-gcc-7.4.0-newlib-1d35a003f   file</div><div>.<br></div><div>I added following lines to     rsb/rtems/config/tools/rtems-gcc-7.4.0-newlib-1d35a003f.cfg<br></div><div><br></div><div><span style="font-family:courier new,monospace">%prep<br>  %patch setup newlib -p1</span></div><div><span style="font-family:courier new,monospace">.</span></div><div><span style="font-family:courier new,monospace">.</span></div><div><span style="font-family:courier new,monospace">.</span></div><div><span style="font-family:courier new,monospace">%patch add newlib file://0001-Port-ndbm.patch<br>%hash md5 0001-Port-ndbm.patch 706d8f63c0b625fd4da666ae5e0fc089</span></div><div><br></div><div><br></div><div>Now do I need to run the following command?<br></div><div><span style="font-family:courier new,monospace"> </span><span id="gmail-:7v.co" class="gmail-tL8wMe gmail-EMoHub" style="text-align:left" dir="ltr"><span style="font-family:courier new,monospace">../source-builder/sb-set-builder --prefix=/home/varodek/development/rtems/5 5/rtems-sparc </span><br></span></div><div><span id="gmail-:7v.co" class="gmail-tL8wMe gmail-EMoHub" style="text-align:left" dir="ltr"><br></span></div><div><span id="gmail-:7v.co" class="gmail-tL8wMe gmail-EMoHub" style="text-align:left" dir="ltr">I mean I need to build tool-chain for sparc using rsb again?<br></span></div><div><span id="gmail-:7v.co" class="gmail-tL8wMe gmail-EMoHub" style="text-align:left" dir="ltr">?</span></div><div><span id="gmail-:7v.co" class="gmail-tL8wMe gmail-EMoHub" style="text-align:left" dir="ltr"><br></span></div><div><span id="gmail-:7v.co" class="gmail-tL8wMe gmail-EMoHub" style="text-align:left" dir="ltr">Vaibhav Gupta<br></span></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 14, 2019 at 1:31 AM Gedare Bloom <<a href="mailto:gedare@rtems.org">gedare@rtems.org</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 Thu, Jun 13, 2019 at 10:31 AM Vaibhav Gupta <<a href="mailto:vaibhavgupta40@gmail.com" target="_blank">vaibhavgupta40@gmail.com</a>> wrote:<br>
><br>
> Hello,<br>
> To test the codes I have ported, it is necessary to make tesuites.<br>
> .<br>
> I have compiled newlib for sparc and arm architecture and have<br>
> kept them in separate folders.<br>
> RTEMS is present in a different folder.<br>
> .<br>
> I want to know how to use compiled newlib in RTEMS?<br>
><br>
<br>
You can use the RSB with custom patches applied during the build<br>
process. There is an example exactly about newlib in the docs, have a<br>
read through: <a href="https://docs.rtems.org/branches/master/user/rsb/project-sets.html#patches" rel="noreferrer" target="_blank">https://docs.rtems.org/branches/master/user/rsb/project-sets.html#patches</a><br>
<br>
> Thank you<br>
> Vaibhav Gupta<br>
</blockquote></div>