<div dir="ltr">RTEMS BSPs place a bunch of pkg-config files under $prefix/lib/pkgconfig which are named after the various BSPs.  I've just been using those to pick out the correct CFLAGS for my application.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 28, 2020 at 6:16 PM Charles Manning <<a href="mailto:cdhmanning@gmail.com">cdhmanning@gmail.com</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">Thanks for the quick response Chris<br>
<br>
It looks like I'm back in action.<br>
<br>
<br>
<br>
<br>
On Wed, Jan 29, 2020 at 1:56 PM Chris Johns <<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>> wrote:<br>
><br>
> On 29/1/20 11:25 am, Charles Manning wrote:<br>
> > Hi All<br>
> ><br>
> > I need to get going with RTEMS, so I thought I'd follow the quickstart guild.<br>
> ><br>
> > All good until I got to the bit where I wanted to build an app.<br>
> ><br>
> > <a href="https://docs.rtems.org/branches/master/user/start/app.html" rel="noreferrer" target="_blank">https://docs.rtems.org/branches/master/user/start/app.html</a>: TODO<br>
><br>
> Yes, this section needs some effort and no one has stepped up to add it.<br>
><br>
> > I have the following in the PATH:<br>
> ><br>
> > /home/charles/quick-start/rtems/5/bin:<br>
> ><br>
> > So I fetched the examples-v2 from git and tried make.<br>
><br>
> Do you mean rtems-examples? The repo was renamed last year.<br>
<br>
No, it was  git://<a href="http://git.rtems.org/jennifer/examples-v2.git" rel="noreferrer" target="_blank">git.rtems.org/jennifer/examples-v2.git</a><br>
<br>
<br>
I tried again with<br>
git clone git://<a href="http://git.rtems.org/rtems-examples.git" rel="noreferrer" target="_blank">git.rtems.org/rtems-examples.git</a><br>
cd rtems-examples<br>
export RTEMS_MAKEFILE_PATH=/home/charles/quick-start/rtems/5/sparc-rtems5/erc32<br>
make<br>
<br>
That seems to have built properly.<br>
I see there are also better READMEs.<br>
<br>
><br>
> > s-v2$ make<br>
> > Makefile:1: /Makefile.inc: No such file or directory<br>
> > Makefile:3: /make/directory.cfg: No such file or directory<br>
> > make: *** No rule to make target '/make/directory.cfg'.  Stop.<br>
> ><br>
> > A quick sniff in the Makefile indicates that there are at least 3 RTEMS_xxx<br>
> > paths that need to be set.<br>
><br>
> This uses the Makefile.inc support which I do not know much about.<br>
><br>
> > Is there a script I need to run to set those up?<br>
><br>
> The examples also use waf. The waf README provides some help ..<br>
><br>
> <a href="https://git.rtems.org/rtems-examples/tree/README.waf" rel="noreferrer" target="_blank">https://git.rtems.org/rtems-examples/tree/README.waf</a><br>
><br>
> The RTEMS waf support uses the rtems_waf.git repo and this lets you build an<br>
> application for your BSP.<br>
><br>
> Chris<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Jonathan Brandmeyer<br>Vice President of Software Engineering<br>PlanetiQ</div>