source: rtems/bsps/shared/rtems-version.c @ 20d472d

Last change on this file since 20d472d was 20d472d, checked in by Sebastian Huber <sebastian.huber@…>, on Jan 31, 2019 at 1:45:17 PM

Add rtems_board_support_package()

  • Property mode set to 100644
File size: 814 bytes
Line 
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/system.h>
12
13#include <bspopts.h>
14
15#ifndef RTEMS_VERSION
16#error "Missing RTEMS_VERSION"
17#endif
18#ifndef CPU_NAME
19#error "Missing CPU_NAME"
20#endif
21#ifndef CPU_MODEL_NAME
22#error "Missing CPU_MODEL_NAME"
23#endif
24#ifndef RTEMS_BSP
25#error "Missing RTEMS_BSP"
26#endif
27
28const char _RTEMS_version[] =
29  "rtems-" RTEMS_VERSION " (" CPU_NAME "/" CPU_MODEL_NAME "/"
30  RTEMS_XSTRING( RTEMS_BSP ) ")";
31
32const char *rtems_board_support_package( void )
33{
34  return RTEMS_XSTRING( RTEMS_BSP );
35}
Note: See TracBrowser for help on using the repository browser.