forked from Imagelibrary/rtems
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:
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
21
cpukit/sapi/src/getversionstring.c
Normal file
21
cpukit/sapi/src/getversionstring.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user