summaryrefslogtreecommitdiff
path: root/cpukit
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-27 06:23:29 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-27 09:36:56 +0100
commit642ef003ec0b62ede17acf5d2c4af2d2a3d35f66 (patch)
treecdf87e06a031af29ebe018cbc8b4b8442cd783aa /cpukit
parent0d5c795afaf9485a02d7de0bb3282407e91c2a38 (diff)
bsps: Provide <tm27.h> in each BSP
Since the <tm27.h> is highly BSP-dependent and used only by the tm27 test program we must provide this header file for each BSP. Without the preinstall build target each header file must have a unique source header file. Update #3254.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/Makefile.am2
-rw-r--r--cpukit/include/rtems/tm27-default.h52
-rw-r--r--cpukit/preinstall.am4
3 files changed, 58 insertions, 0 deletions
diff --git a/cpukit/Makefile.am b/cpukit/Makefile.am
index d905f2b73a..f6ee1bfbed 100644
--- a/cpukit/Makefile.am
+++ b/cpukit/Makefile.am
@@ -270,6 +270,8 @@ include_rtems_HEADERS += libmisc/untar/untar.h
## fsmount
include_rtems_HEADERS += libmisc/fsmount/fsmount.h
+include_rtems_HEADERS += include/rtems/tm27-default.h
+
## Driver manager
if LIBDRVMGR
include_drvmgrdir = $(includedir)/drvmgr
diff --git a/cpukit/include/rtems/tm27-default.h b/cpukit/include/rtems/tm27-default.h
new file mode 100644
index 0000000000..7fdb09a5ba
--- /dev/null
+++ b/cpukit/include/rtems/tm27-default.h
@@ -0,0 +1,52 @@
+/**
+ * @file
+ *
+ * @ingroup shared_tm27
+ *
+ * @brief Empty stub for tm27.h
+ */
+
+/*
+ * 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.
+ */
+
+#ifndef _RTEMS_TMTEST27
+#error "This is an RTEMS internal file you must not include directly."
+#endif
+
+#ifndef __tm27_h
+#define __tm27_h
+
+/**
+ * @defgroup shared_tm27 Time Test 27
+ *
+ * @ingroup shared_include
+ *
+ * @brief Stuff for Time Test 27
+ */
+
+#define MUST_WAIT_FOR_INTERRUPT 0
+
+void Install_tm27_vector(void (*_handler)())
+{
+}
+
+#define Cause_tm27_intr() \
+ do { \
+ ; \
+ } while (0)
+
+
+#define Clear_tm27_intr() \
+ do { \
+ ; \
+ } while (0)
+
+#define Lower_tm27_intr() \
+ do { \
+ ; \
+ } while (0)
+
+#endif
diff --git a/cpukit/preinstall.am b/cpukit/preinstall.am
index d595085ebe..b687fb3ae5 100644
--- a/cpukit/preinstall.am
+++ b/cpukit/preinstall.am
@@ -602,6 +602,10 @@ $(PROJECT_INCLUDE)/rtems/fsmount.h: libmisc/fsmount/fsmount.h $(PROJECT_INCLUDE)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/fsmount.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/fsmount.h
+$(PROJECT_INCLUDE)/rtems/tm27-default.h: include/rtems/tm27-default.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
+ $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/tm27-default.h
+PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/tm27-default.h
+
if LIBDRVMGR
$(PROJECT_INCLUDE)/drvmgr/$(dirstamp):
@$(MKDIR_P) $(PROJECT_INCLUDE)/drvmgr