2008-07-15 Joel Sherrill <joel.sherrill@oarcorp.com>

* rtems/include/rtems.h, sapi/Makefile.am: Add simple helper to get
	RTEMS version string.
	* sapi/src/getversionstring.c: New file.
This commit is contained in:
Joel Sherrill
2008-07-15 22:56:45 +00:00
parent fc1b5cf558
commit 4d47256b4b
4 changed files with 37 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2008-07-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/include/rtems.h, sapi/Makefile.am: Add simple helper to get
RTEMS version string.
* sapi/src/getversionstring.c: New file.
2008-07-10 Peter Rasmussen <Peter.Rasmussen@embedded-brains.de>
* score/cpu/m68k/cpu_asm.S, cpukit/score/cpu/m68k/rtems/asm.h,

View File

@@ -77,6 +77,15 @@ extern "C" {
#include <rtems/rtems/support.h>
#include <rtems/score/sysstate.h>
/**
* @brief Obtain the RTEMS Version String
*
* This method may be used to obtain the RTEMS version string.
*
* @return This method returns a pointer to the version string.
*/
const char *rtems_get_version_string(void);
/**
* This constant indicates whether this processor variant has
* hardware floating point support.

View File

@@ -26,7 +26,7 @@ libsapi_a_SOURCES = src/debug.c src/extension.c src/extensioncreate.c \
src/exshutdown.c src/io.c src/ioclose.c src/iocontrol.c src/iodata.c \
src/ioinitialize.c src/ioopen.c src/ioread.c src/ioregisterdriver.c \
src/iounregisterdriver.c src/iowrite.c src/itronapi.c src/posixapi.c \
src/rtemsapi.c src/extensiondata.c
src/rtemsapi.c src/extensiondata.c src/getversionstring.c
libsapi_a_CPPFLAGS = $(AM_CPPFLAGS)
include $(srcdir)/preinstall.am

View File

@@ -0,0 +1,21 @@
/*
* COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
* $Id$
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include <rtems/system.h>
const char *rtems_get_version_string(void)
{
return _RTEMS_version;
}