2008-08-08 Joel Sherrill <joel.sherrill@OARcorp.com>

* rtems/include/rtems.h, sapi/Makefile.am: Add Add simple helper to get
	RTEMS version string.
	* sapi/src/getversionstring.c: New file.
This commit is contained in:
Joel Sherrill
2008-08-08 15:56:13 +00:00
parent e5a39e3282
commit 0185851c44
4 changed files with 38 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2008-08-08 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/include/rtems.h, sapi/Makefile.am: Add Add simple helper to get
RTEMS version string.
* sapi/src/getversionstring.c: New file.
2008-08-06 Brett Swimley <brett.swimley@aedbozeman.com>
PR 1192/filesystem

View File

@@ -68,6 +68,15 @@ extern "C" {
#include <rtems/rtems/support.h>
#include <rtems/score/sysstate.h>
/*
* Obtain the RTEMS Version String
*
* This method may be used to obtain the RTEMS version string.
*
* This method returns a pointer to the version string.
*/
const char *rtems_get_version_string(void);
#define RTEMS_HAS_HARDWARE_FP CPU_HARDWARE_FP
/*

View File

@@ -26,7 +26,8 @@ AM_CPPFLAGS += -D__RTEMS_INSIDE__
noinst_LIBRARIES = libsapi.a
libsapi_a_SOURCES = src/debug.c src/extension.c src/extensioncreate.c \
src/extensiondelete.c src/extensionident.c src/fatal.c src/exinit.c \
src/io.c src/itronapi.c src/posixapi.c src/rtemsapi.c
src/io.c src/itronapi.c src/posixapi.c src/rtemsapi.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;
}