RTEMS
rtems-version.c
1 /*
2  * COPYRIGHT (c) 2003, Ralf Corsepius, Ulm, Germany.
3  * COPYRIGHT (c) 2003, On-Line Applications Research Corporation (OAR).
4  *
5  * The license and distribution terms for this file may be
6  * found in the file LICENSE in this distribution or at
7  * http://www.rtems.org/license/LICENSE.
8  */
9 
10 #include <rtems/version.h>
11 #include <rtems/score/copyrt.h>
12 #include <rtems/score/cpu.h>
13 
14 #include <bspopts.h>
15 
16 #ifndef RTEMS_VERSION
17 #error "Missing RTEMS_VERSION"
18 #endif
19 #ifndef CPU_NAME
20 #error "Missing CPU_NAME"
21 #endif
22 #ifndef CPU_MODEL_NAME
23 #error "Missing CPU_MODEL_NAME"
24 #endif
25 #ifndef RTEMS_BSP
26 #error "Missing RTEMS_BSP"
27 #endif
28 
29 const char _RTEMS_version[] =
30  "rtems-" RTEMS_VERSION " (" CPU_NAME "/" CPU_MODEL_NAME "/"
31  RTEMS_XSTRING( RTEMS_BSP ) ")";
32 
33 const char *rtems_board_support_package( void )
34 {
35  return RTEMS_XSTRING( RTEMS_BSP );
36 }
Copyright Notice for RTEMS.
#define CPU_MODEL_NAME
Definition: sparc.h:91
#define RTEMS_XSTRING(_x)
Stringifies the expansion of _x.
Definition: basedefs.h:295
const char _RTEMS_version[]
This constant provides the RTEMS version string.
Definition: rtems-version.c:29
#define CPU_NAME
Definition: sparc.h:99
const char * rtems_board_support_package(void)
Returns the board support package name.
Definition: rtems-version.c:33
SPARC CPU Department Source.
Version API.