This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Adding library to libtarget.a
- From: Heiko Panther <heiko dot panther at web dot de>
- To: Andrew Lunn <andrew at lunn dot ch>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 12 Feb 2004 14:27:25 +0100
- Subject: Re: [ECOS] Adding library to libtarget.a
- References: <402B55BB.90804@web.de> <20040212120703.GA2622@lunn.ch>
I have a libmylib.a which is needed by my serial I/O code. Usually, I
link it when I link my app. Now when I want to build redboot, I don't
know how to link it. It would be fine for me to always link libmylib.a
into libtarget.a, as a part of the HAL package probably. How can I do that?
What you are talking about is adding a new package to eCos. The eCos
build system will then build the package when it builds the rest of
eCos and make you new package part of libtarget.a. Take a look at the
http://ecos.sourceware.org/docs-latest/cdl-guide/cdl-guide.html and
look at some of the other packages in eCos. The cdl file in each
package is the key to all this.
Right. My question should have been, "How do I use a library in a
package?". I've seen how you add source files to a package - with the
compile statement. I found no similar statement to add a library. I only
have the library, not the source files.
Heiko Panther
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss