Using helper functions

Joel Sherrill joel at rtems.org
Mon Feb 6 15:53:02 UTC 2017


On Mon, Feb 6, 2017 at 9:20 AM, punit vara <punitvara at gmail.com> wrote:

> On Mon, Feb 6, 2017 at 8:31 PM, Tanu Hari Dixit <tokencolour at gmail.com>
> wrote:
> > Hello Punit, Gedare,
>
> > I cloned the repo you linked to in your previous mail. However, I am
> unable
> > to figure out how to run the application. I have kept it outside the
> rtems
> > tree. I know how executables for tests are made i.e. by the configure
> script
> > at the top. But I don't know how I will be able to run an application
> > outside of testsuites. For example, my question is rtems_gsoc16/gpio has
> no
> > configure.ac file.
>
> You don't have to create separate configure.ac. In case of
> rtems_gsoc16/gpio copy gpio directory under samples. To execute that
> testcase you need to add one line
>
> gpio/Makefile
>
> in configure.ac at testsuits/samples/configure.ac
>
> Then do bootstrap
>
> $ ./bootstrap; ./bootstrap -p
>
> I hope you know where to do it.
>
> > What example did you take to learn how to make an application (and run
> it)?
>
> I wasn't able to find any app at that time so I have figured out own
> my own and created this simple app to test GPIO. Carefully follow my
> testcase I think you will understand once you compile.
>
>
An alternative is to look at the examples-v2 repo. It shows how to
builds RTEMS applications external to the RTEMS tree using waf.

--joel


> > On Thu, Feb 2, 2017 at 11:16 PM, Gedare Bloom <gedare at rtems.org> wrote:
> >>
> >> see rtems.git/testsuites/fstests for examples of some filesystem usage.
> >>
> >> On Thu, Feb 2, 2017 at 12:03 PM, punit vara <punitvara at gmail.com>
> wrote:
> >> > Hi
> >> >
> >> > Which file system API you are talking about ? Can you please send me
> >> > the file location ?
> >> >
> >> > I have used some of GPIO APIs for BBB board. Have a look at this
> example
> >> >
> >> > https://github.com/punitvara/rtems_gsoc16/blob/master/gpio/init.c
> >> >
> >> > Similarly you can create application for any APIs.
> >> >
> >> > P.S. Always add devel mailing list as CC so that other person also can
> >> > help you :)
> >> >
> >> > Thanks
> >> > PV
> >> >
> >> > On Wed, Feb 1, 2017 at 11:25 PM, Tanu Hari Dixit <
> tokencolour at gmail.com>
> >> > wrote:
> >> >> Hello Punit,
> >> >> I have been reading the docs as you suggested. But I want to execute
> >> >> the various directives and helper functions and test for myself in an
> >> >> isolated example. For example I want to test the various API
> functions
> >> >> available for the filesystem (In memory Filesystem) in RTEMS. How do
> I
> >> >> go about doing that?
> >> >> Thanks,
> >> >> Tanu Hari Dixit.
> >> > _______________________________________________
> >> > devel mailing list
> >> > devel at rtems.org
> >> > http://lists.rtems.org/mailman/listinfo/devel
> >
> >
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20170206/35ba06b4/attachment-0002.html>


More information about the devel mailing list