This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Access version number string of eCos to check the compile date
Hi Carlos
Carlos Sobrinho wrote:
Andrew Lunn wrote:
Getting the version string is hard. Most versions of eCos don't have a
version, they are just the "current" anoncvs.
A version if its a release, a CVS version of Changelog (seems to be the most
updated file) or other file if its CVS?
----------------------------------------------------------------
File: ChangeLog Status: Up-to-date
Working revision: 1.122
Repository revision:
1.122 /cvs/ecos/ecos/packages/kernel/current/ChangeLog,v
----------------------------------------------------------------
So cyg_(kernel_)version would return something like:
"eCos v1.122 (Compiled on xx/01/2005 for ROM(/RAM))"
To regard the CVS revision of a single file in the eCos repository as an
"eCos version" would be misleading.
The eCos library is built from a collection of eCos packages each of
which can potentially have a different version number. Also, the same
set of packages can be configured in many ways resulting in different
behaviour. The presence of a version string within the eCos library
would therefore convey little about the precise behaviour of the library.
A timestamp seems the best way to differentiate between builds.
John Dallaway
eCosCentric Limited
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss