Discussion:
[Linuxptp-devel] [PATCH RFC 0/5] Add version information to the programs
Richard Cochran
2012-12-10 14:26:13 UTC
Permalink
Looking forward to an official 1.0 release, this series adds version
strings to the programs. When compiling from git, the string includes
the information that you would get from the Linux kernel option
CONFIG_LOCALVERSION_AUTO.

Each program will print the version when run with the -v flag. For
ptp4l, this flag meant "verbose" and would cause the messages to go to
stdout, so this has been changed to -m instead, so that all the
programs work the same way.

The last patch is not really related, but I throw it out there now,
because I think it should go into the 1.0 release.

Thanks,
Richard


Richard Cochran (5):
Add a shell script to generate the version string.
Add a compile time version string definition.
Add utility functions to get the software version string.
Add command line options to print the software version.
Add asymmetry correction.

config.c | 7 +++++-
ds.h | 1 +
hwstamp_ctl.8 | 5 ++++
hwstamp_ctl.c | 8 ++++++-
makefile | 25 ++++++++++++++++++----
phc2sys.8 | 5 ++++
phc2sys.c | 7 +++++-
pmc.8 | 5 ++++
pmc.c | 7 +++++-
port.c | 8 +++---
ptp4l.8 | 21 +++++++++++++++----
ptp4l.c | 15 +++++++++----
version.c | 35 ++++++++++++++++++++++++++++++++
version.h | 37 ++++++++++++++++++++++++++++++++++
version.sh | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15 files changed, 224 insertions(+), 23 deletions(-)
create mode 100644 version.c
create mode 100644 version.h
create mode 100755 version.sh
--
1.7.2.5
Loading...