Question about rels
joel.sherrill at OARcorp.com
Wed Aug 1 16:07:16 UTC 2001
Radzislaw Galler wrote:
> I want to improve a bit the console driver in gensh2 BSP. All code is written
> and tested and now I want to put it into RTEMS tree.
> As I noticed all objects in libbsp are linked into *.rel files. I have put
> all initialized variables into a file named config.c. It would be easy to
> replace the configuration in application by redefining the variables but the
> file config.c always gets linked causing link error.
> I thought about putting config.o out of console.rel as a separate module but
> right now I don't know if it is right approach (my gut-instinct tells me that
> it is not).
> Could someone point me into right direction?
I don't think many of the wrapup/Makefile.am for the BSPs actually put the
.rel into the libbsp.a. I think they wildcard to pick up the .o's from the
appropriate directories. The .rel is (a) a relic and (b) a target to
build all the .o's for.
I suppose a sweep of all the bsps for the following is in order.
(1) wrapup/Makefile.am should reference the .o's
(2) libbsp/.../Makefile.am probably should not do a $(make-rel) since it
> P.S. Background info for gensh2 maintainers: I have managed to write
> "libchip-style" termios console serial driver able to work in interrupt and
> event driven mode. It uses c/src/lib/libsp/shared/console.c instead of
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users