mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-20 03:05:47 +08:00
bsps: Move version.c and use bspopts.h
This patch is a part of the BSP source reorganization. Update #3285. Update #3375.
This commit is contained in:
29
bsps/shared/rtems-version.c
Normal file
29
bsps/shared/rtems-version.c
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 2003, Ralf Corsepius, Ulm, Germany.
|
||||
* COPYRIGHT (c) 2003, 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.org/license/LICENSE.
|
||||
*/
|
||||
|
||||
#include <rtems/system.h>
|
||||
|
||||
#include <bspopts.h>
|
||||
|
||||
#ifndef RTEMS_VERSION
|
||||
#error "Missing RTEMS_VERSION"
|
||||
#endif
|
||||
#ifndef CPU_NAME
|
||||
#error "Missing CPU_NAME"
|
||||
#endif
|
||||
#ifndef CPU_MODEL_NAME
|
||||
#error "Missing CPU_MODEL_NAME"
|
||||
#endif
|
||||
#ifndef RTEMS_BSP
|
||||
#error "Missing RTEMS_BSP"
|
||||
#endif
|
||||
|
||||
const char _RTEMS_version[] =
|
||||
"rtems-" RTEMS_VERSION " (" CPU_NAME "/" CPU_MODEL_NAME "/"
|
||||
RTEMS_XSTRING( RTEMS_BSP ) ")";
|
||||
@@ -0,0 +1 @@
|
||||
libbsp_a_SOURCES += ../../../../../../bsps/shared/rtems-version.c
|
||||
|
||||
Reference in New Issue
Block a user