summaryrefslogtreecommitdiffstats
path: root/bsps
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-04-03 07:09:11 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-04-04 10:13:26 +0200
commit4f0dca3ad265e1871f9558497647a522548f62d5 (patch)
treedc4557123df7bcabd9f7936d1d4029fa0366c031 /bsps
parentbsps: Add shared-sources.am (diff)
downloadrtems-4f0dca3ad265e1871f9558497647a522548f62d5.tar.bz2
bsps: Move version.c and use bspopts.h
This patch is a part of the BSP source reorganization. Update #3285. Update #3375.
Diffstat (limited to 'bsps')
-rw-r--r--bsps/shared/rtems-version.c29
-rw-r--r--bsps/shared/shared-sources.am1
2 files changed, 30 insertions, 0 deletions
diff --git a/bsps/shared/rtems-version.c b/bsps/shared/rtems-version.c
new file mode 100644
index 0000000000..16f74070bc
--- /dev/null
+++ b/bsps/shared/rtems-version.c
@@ -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 ) ")";
diff --git a/bsps/shared/shared-sources.am b/bsps/shared/shared-sources.am
index e69de29bb2..854710d804 100644
--- a/bsps/shared/shared-sources.am
+++ b/bsps/shared/shared-sources.am
@@ -0,0 +1 @@
+libbsp_a_SOURCES += ../../../../../../bsps/shared/rtems-version.c