Can't install user extensions?

Alexandre Constantino alexandre.constantino at edisoft.pt
Fri Aug 3 16:29:40 UTC 2007


On Friday 03 August 2007, Joel Sherrill wrote:
> Robert S. Grimes wrote:
> > Hi,
> >
> > Trying to create user extensions, but get error 5 "too many".  I have
> > this defined before confdefs.h
> >
> >     #define CONFIGURE_MAXIMUM_USER_EXTENSIONS   10
> >
> > I started with 1 or 2, but still no luck
> >
> > My code looks like this:
> >
> >       rtems_name name_;
> >       rtems_id   id_;
> >       rtems_extensions_table extTable;
> >
> >       extTable.thread_begin   = taskBegin;
> >       extTable.thread_create  = taskCreate;
> >       extTable.thread_delete  = taskDelete;
> >       extTable.thread_exitted = taskExitted;
> >       extTable.thread_restart = taskRestart;
> >       extTable.thread_start   = taskStart;
> >       extTable.thread_switch  = taskSwitch;
> >       extTable.fatal          = userFatalError;
> >
> >       name_ = rtems_build_name('R', 'M', 'o', 'n');
> >       rtems_status_code status = rtems_extension_create(name_,
> >     &extTable, &id_);
> >
> >
> > The call to rtems_extension_create fails, again with the "too many"
> > error.  By the way, this is being called from the user's Init function.
> >
> > I step into the rtems call, but quickly get lost
> >
> > I see no significant (and relevant) difference between my code and the
> > sp07 test program.  What I'm doing seems identical.  A search of the
> > Wiki and mailing list archives turned up nothing relevant.  Any ideas?
> >
> >   
> is the manager configured or do you have the stub?
> > As an aside, I can't figure out how the tests are created.  The
> > README.configure suggests using --enable-tests, which I did, and "do a
> > 'make test'  to build the full test suite', but make complains that
> > 'test' is not a valid target.  So I can't report wheter the sp07 test
> > program works or not...

The tests are built and installed in conjunction with RTEMS.
When you do ./configure and pass --enable-tests corresponding Makefiles are written that specify the tests to be built and installed at commands make && make install.
To build a test on your own you must edit its Makefile and maybe add some files from other directories and make some tweaks on the code.
AFAIK there is no "testsuite 2 sample code" converter that allows you to build a test (from the testsuite) with a single make.



> >
> > Thanks!
> > -Bob
> >
> > _______________________________________________
> > rtems-users mailing list
> > rtems-users at rtems.com
> > http://rtems.rtems.org/mailman/listinfo/rtems-users
> >   
> 
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
> 





More information about the users mailing list