mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
/*
|
||||
|
||||
@@ -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
|
||||
|
||||
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